/* Base Styles */
body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}


/* MAIN CONTAINER */
.insight-content {
    font-family: "Inter", Arial, sans-serif;
    color: #222;
    font-size: 15px;
    line-height: 1.7;
}

/* HEADINGS */
.insight-content h1,
.insight-content h2,
.insight-content h3,
.insight-content h4,
.insight-content h5 {
    margin: 14px 0 8px;
    font-weight: 700;
    color: #111;
}
.insight-content h1 { font-size: 28px; }
.insight-content h2 { font-size: 24px; }
.insight-content h3 { font-size: 20px; }
.insight-content h4 { font-size: 18px; }

/* BOLD & ITALIC */
.insight-content strong,
.insight-content b {
    font-weight: 900 !important;
}
.insight-content em,
.insight-content i {
    font-style: italic;
}

/* PARAGRAPH */
.insight-content p {
    margin-bottom: 12px;
}

/* BULLET LIST */
.insight-content ul {
    padding-left: 20px;
    margin: 10px 0;
}
.insight-content ul li {
    list-style-type: disc;
    margin-bottom: 6px;
}

/* NUMBER LIST */
.insight-content ol {
    padding-left: 20px;
    margin: 10px 0;
}
.insight-content ol li {
    list-style-type: decimal;
    margin-bottom: 6px;
}

/* QUOTES */
.insight-content blockquote {
    border-left: 4px solid #000;
    padding-left: 12px;
    margin: 15px 0;
    font-style: italic;
    color: #444;
}

/* TABLES */
.insight-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
.insight-content th,
.insight-content td {
    /* border: 1px solid #e5e5e5; */
    padding: 8px;
}
.insight-content th {
    background: #f8f8f8;
    font-weight: 700;
}

/* IMAGES */
.insight-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    border-radius: 4px;
}

/* ALIGNMENTS */
.insight-content .align-left {
    float: left;
    margin-right: 15px;
    width: 40%;
}
.insight-content .align-right {
    float: right;
    margin-left: 15px;
    width: 40%;
}
.insight-content .align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* FIGURE + CAPTION */
.insight-content figure {
    margin: 12px auto;
    text-align: center;
}
.insight-content figcaption {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* CLEAR FLOATS */
.insight-content::after {
    content: "";
    display: table;
    clear: both;
}
/* MAIN CONTAINER */
.description-content {
    font-family: "Inter", Arial, sans-serif;
    color: #222;
    font-size: 15px;
    line-height: 1.7;
}

/* HEADINGS */
.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5 {
    margin: 14px 0 8px;
    font-weight: 700;
    color: #111;
}
.description-content h1 { font-size: 28px; }
.description-content h2 { font-size: 24px; }
.description-content h3 { font-size: 20px; }
.description-content h4 { font-size: 18px; }

/* BOLD & ITALIC */
.description-content strong,
.description-content b {
    font-weight: 900 !important;
}
.description-content em,
.description-content i {
    font-style: italic;
}

/* PARAGRAPH */
.description-content p {
    margin-bottom: 12px;
}

/* BULLET LIST */
.description-content ul {
    padding-left: 20px;
    margin: 10px 0;
}
.description-content ul li {
    list-style-type: disc;
    margin-bottom: 6px;
}

/* NUMBER LIST */
.description-content ol {
    padding-left: 20px;
    margin: 10px 0;
}
.description-content ol li {
    list-style-type: decimal;
    margin-bottom: 6px;
}

/* QUOTES */
.description-content blockquote {
    border-left: 4px solid #000;
    padding-left: 12px;
    margin: 15px 0;
    font-style: italic;
    color: #444;
}

/* TABLES */
.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
.description-content th,
.description-content td {
    border: 1px solid #e5e5e5;
    padding: 8px;
}
.description-content th {
    background: #f8f8f8;
    font-weight: 700;
}

/* IMAGES */
.description-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    border-radius: 4px;
}

/* ALIGNMENTS */
.description-content .align-left {
    float: left;
    margin-right: 15px;
    width: 40%;
}
.description-content .align-right {
    float: right;
    margin-left: 15px;
    width: 40%;
}
.description-content .align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* FIGURE + CAPTION */
.description-content figure {
    margin: 12px auto;
    text-align: center;
}
.description-content figcaption {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* CLEAR FLOATS */
.description-content::after {
    content: "";
    display: table;
    clear: both;
}


.price {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
}

.color-selector {
    /* margin: 20px 0; */
}

.size-selector {
    margin: 20px 0;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.size-option {
    border: 1px solid #ddd;
    /* padding: 3px 4px; */
    padding: 5px 15px;
    cursor: pointer;
    /* width: 40px;
    height: 30px; */
    text-align: center;
    font-size: 15px;
    /* color: rgba(var(--text-color), .5); */
}
.size-optionsW {
    border: 1px solid #ddd;
    /* padding: 3px 4px; */
    padding: 5px 15px;
    cursor: pointer;
    /* width: 40px;
    height: 30px; */
    text-align: center;
    font-size: 15px;
    /* color: rgba(var(--text-color), .5); */
}

.size-option.outofstock {
    color: #a3a3a3;
    background: linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(205, 205, 205, 0.5) 50%, transparent calc(50% + 1px)) no-repeat;
}
.size-optionsW.outofstock {
    color: #a3a3a3;
    background: linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(205, 205, 205, 0.5) 50%, transparent calc(50% + 1px)) no-repeat;
}

.size-option.selected {
    border-color: #8b0c2c;
}
.size-optionsW.selectedw {
    border-color: #8b0c2c;
}

.description-section {
    margin: 40px 0;
    border-top: 1px solid #eee;
}

.description-toggle {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    align-items: center;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    user-select: none;
}

.description-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    border-bottom: 1px solid transparent;
}

.description-content.active {
    max-height: 500px;
    /* Adjust based on your content height */
    padding: 15px 0;
    border-bottom-color: #eee;
    overflow: auto;
    scrollbar-width:none;
}

.description-toggle span {
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.description-toggle.active span {
    transform: rotate(180deg);
}

.description-content p,
.description-content ul {
    margin: 0 0 15px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.description-content.active p,
.description-content.active ul {
    opacity: 1;
    transform: translateY(0);
}

.description-content ul {
    padding-left: 20px;
}

.product_detail-con {
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 15px; */
    /* padding: 0 15px; */
    box-sizing: border-box;
    width: 100%;
    position: relative;
}

/* Product Container */
.product-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
    box-sizing: border-box;
    width: 100%;
    padding: 0 10px;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    width: 100%;
    gap: 10px;
    height: 100vh;
    width: 100vh;
    position: relative;
}

.main-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1/1;
}

.main-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.main-image.active {
    opacity: 1;
    position: relative;
}

/* Thumbnails */
.thumbnail-container {
    width: 80px;
    min-width: 80px;
    /* display: none; */
}

.thumbnail-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 100%;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: #000;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

h1 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 300;
    margin-bottom: 10px;
    /* text-transform: uppercase; */
    word-wrap: break-word;
}

/* Modal Styles (Unchanged from your original) */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

#modalImage {
    max-height: 90vh;
    margin: 0 auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

.modal-nav {
    position: absolute;
    top: 50%;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    padding: 10px;
    transform: translateY(-50%);
    z-index: 1001;
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
    border: 1px solid black;
    border-radius: 2px;
    padding-top:5px;
}

.modal-thumbnails {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.modal-thumbnails img.active {
    border-color: black;
}

#modalImage {
    transition: transform 0.3s ease;
    max-width: 90%;
    max-height: 90%;
    cursor: zoom-in;
}

#modalImage.zoomed {
    transform: scale(2.5);
    cursor: zoom-out;
}

/* Dots navigation */
.dots-nav {
    display: none;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
}

.dot.active {
    background: #000;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

}

/* Mobile Styles */
@media (max-width: 767px) {

    .product-info{
        padding: 15px;
    }
    .product-container {
        grid-template-columns: 1fr;
        /* gap: 20px; */
        gap: 0px;
        /* margin-top: 0px; */
        padding: 0px;
    }
    
    .product-gallery {
        flex-direction: column;
        height: 100%;
        width:100%;

    }
    
    .thumbnail-container {
        display: none;
    }
    
    .main-image-wrapper {
        padding-bottom: 100%;
    }
    
    .main-image,
    .main-image.active {
        position: absolute;
        width: 100%;
        height: 100%;
        padding: 0px 10px;
    }
    
    .nav-button {
        display: flex;
    }
    
    .dots-nav {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 10px 0;
    }
    
    .product_detail-con {
        /* padding: 10px; */
    }
    
    #modalImage {
        max-height: 50vh;
    }
    
    .modal-thumbnails {
        max-height: 50vh;
    }

      .products {

        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-left: 8px;
        margin-top: 35px;

    }
}

/* Overflow Prevention */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 18px;
    }
    
    .price {
        font-size: 16px;
    }
    
    .add-to-cart {
        padding: 12px;
        font-size: 14px;
    }
    
    .modal-thumbnails {
        left: 5px;
        gap: 5px;
    }
    
    .modal-thumbnails img {
        width: 50px;
        height: 50px;
    }
}