/* ==========================================
   COMPRAR PAGE STYLES - LIGHT THEME (REPLICATING INSIDER STORE)
   ========================================== */

.comprar-page-body.light-theme {
    background-color: #FFFFFF !important;
    color: #111827 !important;
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.comprar-main-container {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 30px 0 60px 0;
    background-color: #FFFFFF;
}

/* ----------------------------------
   PRODUCT GRID LAYOUT
----------------------------------- */
.product-page-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr; /* 65% for gallery, 35% for configuration panel */
    gap: 40px;
    align-items: start;
}

/* ----------------------------------
   LEFT: 2x2 GALLERY GRID
----------------------------------- */
.product-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px; /* Tiny 4px gap matching reference */
    position: sticky;
    top: 100px;
}

.gallery-grid-card {
    aspect-ratio: 1;
    border-radius: 0;
    overflow: hidden;
    background-color: transparent;
    border: none; /* Removed border */
}

.gallery-grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.color-white-bg {
    background-color: #FAFAFA;
}

.color-light-bg {
    background-color: #F3F4F6;
}

.color-dark-bg {
    background-color: #121316;
}

.grid-card-tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #9CA3AF;
    text-transform: uppercase;
    align-self: flex-start;
}

.grid-card-footer-lbl {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: #4B5563;
}

.underwear-silhouette-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-silhouette-icon {
    width: 72px;
    height: 72px;
    color: #111827;
    opacity: 0.2;
}

/* Fabric Card */
.fabric-card {
    justify-content: flex-end;
    padding: 24px;
}

.fabric-zoom-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
    background-color: #1F2937;
}

.dots-grid-pattern {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 8px 8px;
}

.fabric-composition-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffffff;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* ----------------------------------
   DIAGRAM CARD WITH ANNOTATIONS
----------------------------------- */
.diagram-card {
    justify-content: center;
}

.diagram-silhouette {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.diagram-icon {
    width: 24px;
    height: 24px;
    color: #111827;
}

/* Pointers positioning inside Card 2 */
.diagram-pointer {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.pointer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.15);
    flex-shrink: 0;
}

.pointer-label {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    color: #1F2937;
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

.pointer-line {
    height: 1px;
    background-color: #D1D5DB;
    width: 20px;
    flex-shrink: 0;
}

/* Dynamic coordinate settings for pointers */
.pt-top-left {
    top: 15%;
    left: 8%;
    flex-direction: row;
}
.pt-top-left .pointer-line {
    order: 3;
}

.pt-mid-left {
    top: 45%;
    left: 5%;
    flex-direction: row;
}
.pt-mid-left .pointer-line {
    order: 3;
}

.pt-top-right {
    top: 20%;
    right: 8%;
    flex-direction: row-reverse;
}
.pt-top-right .pointer-line {
    order: 1;
}

.pt-mid-right {
    top: 48%;
    right: 6%;
    flex-direction: row-reverse;
}
.pt-mid-right .pointer-line {
    order: 1;
}

.pt-bot-right {
    top: 75%;
    right: 8%;
    flex-direction: row-reverse;
}
.pt-bot-right .pointer-line {
    order: 1;
}

/* ----------------------------------
   RIGHT: CONFIGURATOR PANEL
----------------------------------- */
.breadcrumbs {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: #9CA3AF;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumbs a {
    color: #9CA3AF;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #111827;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

/* Badges row */
.product-meta-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.badge-outline {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border: 1.5px solid #111827;
    border-radius: 4px;
    color: #111827;
}

.badge-discount-green {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background-color: #E8F5E9;
    color: #2E7D32;
    border-radius: 4px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #4B5563;
}

.product-rating-stars {
    display: flex;
    gap: 2px;
    margin-right: 4px;
}

.product-rating-stars i {
    width: 14px;
    height: 14px;
    color: #FBBF24;
    fill: #FBBF24;
}

.rating-val {
    font-weight: 700;
    color: #111827;
}

.reviews-count {
    color: #6B7280;
}

/* Price Box */
.price-display-container {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
}

.price-original {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

.price-current {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
}

.coupon-tag {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: #4B5563;
}

.coupon-tag strong {
    color: #111827;
    border-bottom: 1px dotted #111827;
}

/* Sections */
.config-section {
    border-top: 1px solid #F3F4F6;
    padding: 20px 0;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #111827;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Colors Row */
.colors-row {
    display: flex;
    gap: 10px;
}

.color-circle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D1D5DB;
}

.color-circle-btn.active-color {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.check-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
}

.color-circle-btn.disabled-color {
    opacity: 0.45;
    cursor: not-allowed;
}

.disabled-slash {
    position: absolute;
    width: 100%;
    height: 1.5px;
    background-color: #EF4444;
    transform: rotate(-45deg);
    top: 50%;
    left: 0;
}

/* Size Pills Grid */
.sizes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.size-pill-btn {
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #1F2937;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.size-pill-btn:hover:not(:disabled) {
    border-color: var(--color-btn-highlight);
    background-color: #F9FAFB;
}

.size-pill-btn.active-size {
    background-color: var(--color-btn-highlight);
    color: #ffffff;
    border-color: var(--color-btn-highlight);
}

.size-pill-btn.active-size:hover {
    background-color: #ffffff;
    color: var(--color-btn-highlight);
    border-color: var(--color-btn-highlight);
}

.size-pill-btn.size-out-of-stock {
    background: linear-gradient(to top right, transparent 48%, #D1D5DB 48%, #D1D5DB 52%, transparent 52%);
    color: #9CA3AF;
    border-color: #E5E7EB;
    cursor: not-allowed;
    opacity: 0.55;
}

/* Sizing Guide row */
.size-guide-row {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.size-question {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: #6B7280;
}

.guide-buttons {
    display: flex;
    gap: 12px;
}

.guide-link-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: #111827;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-link-btn:hover {
    color: #4B5563;
}

/* Quantity Selection Kits (Grid Horizontal) */
.quantity-kits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.quantity-kit-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quantity-kit-card:hover {
    border-color: var(--color-btn-highlight);
    background-color: #F9FAFB;
}

.quantity-kit-card.active-qty {
    border-color: var(--color-btn-highlight);
    border-width: 1.5px;
    background-color: #FAFAFA;
}

.kit-card-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
}

.kit-card-unit-price {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: #6B7280;
}

.quantity-kit-card.active-qty .kit-card-unit-price {
    color: #111827;
    font-weight: 600;
}

/* Checkmark badge circle */
.active-badge-circle {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background-color: var(--color-btn-highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.active-badge-circle i {
    width: 10px;
    height: 10px;
    stroke-width: 3px;
}

.quantity-kit-card.active-qty .active-badge-circle {
    opacity: 1;
    transform: scale(1);
}

/* CTA Action Box */
.buy-action-box {
    border-top: 1px solid #F3F4F6;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-cta-btn {
    width: 100%;
    background-color: var(--color-btn-highlight);
    color: #ffffff;
    padding: 18px 24px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
    display: block;
    transition: background-color 0.15s ease, transform 0.15s ease, filter 0.15s ease;
    cursor: pointer;
}

.cart-cta-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Stock notice */
.stock-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: #4B5563;
    padding: 10px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    background-color: #FAFAFA;
}

.stock-notice i {
    color: #111827;
}

.stock-notice strong {
    color: #111827;
}

/* WhatsApp row alternative */
.whatsapp-alt-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.whatsapp-or-text {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: #9CA3AF;
}

.whatsapp-purchase-link {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    color: #25D366;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.whatsapp-purchase-link:hover {
    color: #128C7E;
}

/* ----------------------------------
   COLLAPSIBLE ACCORDION
----------------------------------- */
.description-accordion {
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    margin-top: 12px;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    text-align: left;
}

.chevron-icon {
    width: 18px;
    height: 18px;
    color: #4B5563;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-header.active-header .chevron-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.6;
    color: #4B5563;
}

.accordion-content p {
    margin-bottom: 12px;
}

.accordion-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.accordion-content li {
    margin-bottom: 6px;
}

/* ----------------------------------
   MODAL WINDOW STYLINGS
----------------------------------- */
.size-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* lighter overlay for white theme */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.size-modal-overlay.active-modal {
    opacity: 1;
    pointer-events: auto;
}

.size-modal-content {
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 32px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.size-modal-overlay.active-modal .size-modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7280;
    transition: color 0.15s ease;
}

.close-modal-btn:hover {
    color: #111827;
}

.close-modal-btn i {
    width: 20px;
    height: 20px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.modal-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.size-chart-table th, 
.size-chart-table td {
    padding: 12px 14px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.8rem;
}

.size-chart-table th {
    background-color: #F9FAFB;
    color: #111827;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1.5px solid #E5E7EB;
}

.size-chart-table td {
    color: #4B5563;
    border-bottom: 1px solid #F3F4F6;
}

.size-chart-table tr:hover td {
    background-color: #F9FAFB;
    color: #111827;
}

.size-chart-table .bold-cell {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #111827;
}

.size-modal-footer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background-color: #FFFDE7; /* Light warning yellow */
    border: 1px solid #FFF59D;
    padding: 12px;
    border-radius: 8px;
}

.size-modal-footer i.info-icon {
    width: 16px;
    height: 16px;
    color: #FBC02D;
    flex-shrink: 0;
    margin-top: 1px;
}

.size-modal-footer span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #5D4037;
    line-height: 1.4;
}

/* ----------------------------------
   FLOATING STICKY MOBILE BUY BAR
----------------------------------- */
.mobile-sticky-buy-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100vw;
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #E5E7EB !important;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.04) !important;
    transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sticky-buy-bar.show-bar {
    bottom: 0;
}

.sticky-bar-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sticky-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
}

.sticky-price {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #111827 !important;
}

.sticky-buy-btn {
    background-color: var(--color-btn-highlight) !important;
    color: #ffffff !important;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.15s ease, filter 0.15s ease;
}

.sticky-buy-btn:hover {
    filter: brightness(1.1) !important;
}

/* ----------------------------------
   RESPONSIVENESS (MOBILE LAYOUT)
----------------------------------- */
@media (max-width: 900px) {
    .comprar-page-body.light-theme {
        padding-top: 80px;
    }

    .comprar-main-container {
        padding: 20px 0 50px 0;
    }

    .product-page-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-gallery-grid {
        position: relative;
        top: 0;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .quantity-kits-grid {
        gap: 8px;
    }

    .quantity-kit-card {
        padding: 12px 6px;
    }

    .kit-card-title {
        font-size: 0.8rem;
    }

    .kit-card-unit-price {
        font-size: 0.68rem;
    }

    .sizes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 550px) {
    /* Annotations scale down on small mobile screens to prevent overflow */
    .pointer-label {
        font-size: 0.55rem;
        padding: 1px 4px;
    }
    
    .pt-top-left { left: 4%; }
    .pt-mid-left { left: 2%; }
    .pt-top-right { right: 4%; }
    .pt-mid-right { right: 2%; }
    .pt-bot-right { right: 4%; }
    
    .diagram-pointer .pointer-line {
        width: 10px;
    }
}

@media (max-width: 480px) {
    .product-gallery-grid {
        grid-template-columns: 1fr;
    }

    .size-guide-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* Adjust depoimentos section spacing on the comprar page (no offset) */
.comprar-page-body .section-depoimentos {
    margin-top: 0 !important;
    padding-top: 100px !important;
    min-height: auto !important;
}

/* FAQ Side-by-Side Sticky Layout */
.faq-layout-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* 40% left, 60% right */
    gap: 64px;
    align-items: start;
    width: 100%;
}

.faq-left-col {
    position: relative;
    height: 100%;
}

.faq-sticky-header {
    position: sticky;
    top: 140px; /* Aligns header nicely relative to navigation */
}

.comprar-page-body .faq-sticky-header .faq-header {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .faq-layout-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .faq-sticky-header {
        position: relative;
        top: 0;
    }
    .comprar-page-body .faq-sticky-header .faq-header {
        align-items: center;
        text-align: center;
        margin-bottom: 32px;
    }
}
