/*================================================================================
  PAGE: Product detail
  TEMPLATE: templates/shop/store/product_detail.html
  FILE: core/static/css/pages/product-detail.css
  LOADED BY: {% block extra_head %} on the template
  Edit THIS file (not collected /static/). Then collectstatic in production.
================================================================================*/

/*--------------------------------------------------------------------
  [1] Extracted style block 1
--------------------------------------------------------------------*/

/* Desktop Layout */
/* Modal Styles */
.main-images-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 1110px; /* Or your preferred height */
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-right: 10px;

    /* Hide scrollbar for all browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.main-images-vertical::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.main-images-vertical::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}
.main-images-vertical::-webkit-scrollbar-track {
    background: transparent;
}

.main-images-vertical::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.size-chart-modal {
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1100;
}

.size-chart-modal .modal-content {
    max-width: min(92vw, 700px);
    max-height: 82vh;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.size-chart-modal .close {
    top: 12px;
    right: 24px;
    color: #fff;
    font-size: 34px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: max-content;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.clickable-image {
    cursor: zoom-in;
    transition: transform 0.3s;
}

.clickable-image:hover {
    transform: scale(1.02);
}
.image-scroll-wrapper {
    overflow-y: auto;
    padding-right: 10px;
}

.product-image-gallery {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-shrink: 0;
}

.thumbnail-container-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 800px;
    width: 100px;
    flex-shrink: 0;
}

.thumbnail-item {
    width: 70px;
    height: 70px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #ff9900;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.thumbnail-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    pointer-events: none;
}

.main-product-video {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    background: #000;
}



.main-product-image {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    object-fit: contain;
}

/* Hide mobile by default */
.mobile-slider-wrapper {
    display: none;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .quick-right .list-text {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    /* Hide desktop layout */
    .image-scroll-wrapper {
        display: none !important;
    }

    .mobile-slider-wrapper {
        display: block;
        text-align: center;
        padding: 0 10px;
        width: 100%;         /* or a fixed value like 300px */
        height: auto;
    }

    .mobile-slider {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-slider::-webkit-scrollbar {
        display: none;
    }

    .mobile-slide {
        flex: 0 0 100%;
        scroll-snap-align: center;
        width: 100%;
        max-height: 500px;
        object-fit: contain;
        border-radius: 10px;
    }

    .mobile-slider-dots {
        margin-top: 10px;
        text-align: center;
    }

    .mobile-slider-dots .dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 0 5px;
        background-color: #ccc;
        border-radius: 50%;
    }

    .mobile-slider-dots .dot.active {
        background-color: #000;
    }
}

/*--------------------------------------------------------------------
  [2] Extracted style block 2
--------------------------------------------------------------------*/

.voucher-card {
position: relative;
background-color: #f5f5f5;
border: 2px dashed #66b2b2;
border-radius: 5px;
min-height: 50px;
padding: 8px 12px;
width: 100%;
max-width: 500px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 10px;
text-decoration: none;
color: #004c4c;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
overflow: hidden;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.voucher-card:hover {
background-color: #e0ffff;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.voucher-card::before {
content: '';
position: absolute;
top: 0;
left: -75%;
width: 50%;
height: 100%;
background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
);
animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
0% {
    left: -75%;
}
100% {
    left: 125%;
}
}

@media (max-width: 576px) {
    .voucher-card {
        max-width: 100%;
    }
    .share-earn-card-outer {
        max-width: 100% !important;
    }
}

/* Share & earn card — same family as voucher-card, separate from order CTAs */
.share-earn-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 50px;
    padding: 10px 14px;
    margin: 0;
    border: 2px dashed #e8a54b;
    border-radius: 5px;
    background: linear-gradient(180deg, #fffaf3 0%, #ffefd2 100%);
    color: #5c3d00;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(232, 165, 75, 0.2);
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
    font-family: inherit;
}
.share-earn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2.5s infinite;
}
.share-earn-card:hover {
    background: linear-gradient(180deg, #fff5e6 0%, #ffe8bc 100%);
    box-shadow: 0 6px 16px rgba(232, 165, 75, 0.28);
}
.share-earn-card:active {
    transform: scale(0.99);
}
.share-earn-card:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.share-earn-card__icon {
    font-size: 22px;
    flex-shrink: 0;
    color: #c67d12;
    position: relative;
    z-index: 1;
}
.share-earn-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.share-earn-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #5c3d00;
}
.share-earn-card__sub {
    font-size: 13px;
    font-weight: 500;
    color: #7a5c20;
    line-height: 1.25;
}
.share-gift-feedback {
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    color: #004c4c;
    line-height: 1.35;
    width: 100%;
}
.share-gift-feedback--success {
    color: #0d5c2e;
    font-weight: 600;
}
.share-gift-feedback--error {
    color: #8a1f1f;
    font-weight: 600;
    background: #fff5f5;
    border: 1px solid #f0caca;
    border-radius: 8px;
    padding: 10px 12px;
}
.share-earn-card__hint {
    font-size: 11px;
    color: #8a6d3a;
    margin-top: 6px;
    line-height: 1.3;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

/*--------------------------------------------------------------------
  [3] Extracted style block 3
--------------------------------------------------------------------*/

/* Futuristic Animated Button */
.bouncy-button {
position: relative;
display: inline-block;
padding: 12px 24px;
font-size: 18px;
font-weight: bold;
color: #004c4c;
background: linear-gradient(135deg, #b2d8d8, #66b2b2);
border: none;
border-radius: 8px;
cursor: pointer;
overflow: hidden;
z-index: 1;
transition: transform 0.3s ease, box-shadow 0.3s ease;
animation: bounceIntro 1.2s ease-in-out, pulseGlow 2s infinite ease-in-out;
box-shadow: 0 0 0 rgba(102, 178, 178, 0.4);
}

/* Glowing gradient border */
.bouncy-button::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(130deg, #00f7ff, #66b2b2, #00f7ff);
background-size: 300% 300%;
z-index: -1;
filter: blur(6px);
opacity: 0.6;
animation: borderGlow 5s infinite linear;
border-radius: 12px;
}

/* Shimmer on hover */
.bouncy-button::after {
content: '';
position: absolute;
top: 0;
left: -75%;
width: 50%;
height: 100%;
background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0.6), rgba(255,255,255,0.2));
transform: skewX(-20deg);
transition: left 0.6s ease;
z-index: 0;
}

.bouncy-button:hover::after {
left: 125%;
}

.bouncy-button:hover {
transform: scale(1.07) translateY(-3px);
animation: bounceHover 0.4s ease infinite alternate, pulseGlow 1.5s infinite ease-in-out;
box-shadow: 0 0 20px rgba(102, 178, 178, 0.9), 0 0 40px rgba(0, 255, 255, 0.3);
}

/* Bounce In Intro */
@keyframes bounceIntro {
0% { transform: scale(0.7) rotateX(15deg); opacity: 0.5; }
50% { transform: scale(1.1) rotateX(0deg); opacity: 1; }
100% { transform: scale(1); }
}

/* Pulse Glow */
@keyframes pulseGlow {
0%, 100% {
    box-shadow: 0 0 0 rgba(102, 178, 178, 0.4);
}
50% {
    box-shadow: 0 0 18px rgba(102, 255, 255, 0.9);
}
}

/* Hover Bounce */
@keyframes bounceHover {
0% { transform: translateY(0); }
100% { transform: translateY(-5px); }
}

/* Border Glow Animation */
@keyframes borderGlow {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}

/*--------------------------------------------------------------------
  [4] Extracted style block 4
--------------------------------------------------------------------*/

.accordion {
width: 100%;
font-family: 'Poppins', sans-serif;
}

.accordion-item {
border-bottom: 1px;
background: transparent;
}

.accordion-title {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 0;
cursor: pointer;
font-size: 15px;
font-weight: 500;
color: #333;
transition: color 0.3s ease;
}

.accordion-icon-label {
display: flex;
align-items: center;
gap: 10px;
}

.accordion-title i.arrow-icon {
font-size: 18px;
color: #666;
transition: transform 0.3s ease;
}

/* Flip arrow when active */
.accordion-title.active i.arrow-icon {
transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 32px; /* No top/bottom padding while collapsed */
    font-size: 14px;
    color: #444;
    line-height: 20px;
}

.accordion-content.active {
    max-height: 1000px; /* Or a value that fits your expected content */
    padding: 8px 0 12px 32px; /* Add padding when expanded */
}

/* Rich product HTML (charts, tables from admin) — mobile width & scroll */
.accordion-content--product-html.active {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    padding-left: 16px;
    padding-right: 10px;
}
.product-html-description {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    word-break: break-word;
}
.product-html-description img,
.product-html-description svg,
.product-html-description canvas,
.product-html-description video {
    max-width: 100%;
    height: auto !important;
}
.product-html-description iframe {
    max-width: 100%;
}
.product-html-description table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

/*--------------------------------------------------------------------
  [5] Extracted style block 5
--------------------------------------------------------------------*/

.compact-review-wrap .reviews-tab { margin-bottom: 8px; }
.compact-review-wrap .reviews-tab li a { font-size: 16px !important; color: #004c4c; }
.compact-review-wrap .your-rating { margin-bottom: 8px; }
.compact-review-wrap #reviewFormTitle { margin: 0 0 4px; color: #004c4c; font-size: 14px; font-weight: 600; text-transform: capitalize; }
.compact-review-wrap .custom-mess { margin-bottom: 8px; }
.compact-review-wrap .review-input,
.compact-review-wrap .review-textarea {
    border: 1px solid #7fb2b2;
    border-radius: 8px;
    font-size: 12px;
    color: #1f3f3f;
    background: #fff;
    box-shadow: none;
}
.compact-review-wrap .review-input { height: 34px; padding: 6px 10px; margin-bottom: 6px; }
.compact-review-wrap .review-textarea { padding: 8px 10px; resize: vertical; min-height: 62px; }
.compact-review-wrap .review-input:focus,
.compact-review-wrap .review-textarea:focus {
    border-color: #004c4c;
    box-shadow: 0 0 0 2px rgba(0, 76, 76, 0.08);
}
.compact-review-wrap .media-group { margin-bottom: 6px; }
.compact-review-wrap .media-label { color: #004c4c; font-size: 12px; margin-bottom: 3px; font-weight: 600; }
.compact-review-wrap .media-input {
    font-size: 11px;
    padding: 3px 6px;
    border: 1px dashed #89b8b8;
    border-radius: 8px;
    background: #ffffff;
    height: auto;
}
.compact-review-wrap .upload-status {
    display: none;
    margin-top: 6px;
    font-size: 11px;
    color: #0f5757;
    background: #edfafa;
    border: 1px solid #b9dede;
    border-radius: 6px;
    padding: 5px 8px;
}
.compact-review-wrap .submit-row { margin-top: 4px; }
.compact-review-wrap .submit-text {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}
.compact-review-wrap .review-btn {
    background: #004c4c;
    color: #edfafa;
    font-size: 12px;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
}
.compact-review-wrap .cancel-btn {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
    margin-right: 6px;
}

/*--------------------------------------------------------------------
  [6] Extracted style block 6
--------------------------------------------------------------------*/

.product-reviews-carousel .review-slider {
    position: relative;
    margin: 0 auto;
    padding: 0 2rem;
}
.product-reviews-carousel .review-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.product-reviews-carousel .review-viewport::-webkit-scrollbar {
    display: none;
}
.product-reviews-carousel .review-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: stretch;
    min-width: max-content;
}
.product-reviews-carousel .product-review-card {
    background: #ffffff;
    border: 1px solid #d7e7e7;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,76,76,0.05);
    width: 320px;
    min-width: 320px;
    flex: 0 0 320px;
}
.product-reviews-carousel .review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #0f5757;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.product-reviews-carousel .review-nav:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.product-reviews-carousel .product-review-prev { left: -8px; }
.product-reviews-carousel .product-review-next { right: -8px; }
@media (max-width: 700px) {
    .product-reviews-carousel .review-slider {
        padding: 0 1.7rem;
    }
    .product-reviews-carousel .product-review-card {
        width: 255px;
        min-width: 255px;
        flex-basis: 255px;
    }
    .product-reviews-carousel .product-review-prev { left: -2px; }
    .product-reviews-carousel .product-review-next { right: -2px; }
}
