/* ==========================================
   PRODUCT DETAILS
========================================== */

:root{
    --color-white:#fff;
    --color-bg:#fff;
    --color-text:#111;
    --color-text-secondary:#666;
    --color-text-muted:#999;
    --color-border:#e5e5e5;
    --color-border-light:#f3f3f3;
    --color-success:#0f9d58;
    --color-danger:#dc2626;

    --font-primary:'Inter',sans-serif;
}

*,
*::before,
*::after{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{
    font-family:var(--font-primary);
    background:var(--color-bg);
    color:var(--color-text);
    line-height:1.5;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

button{
    border:none;
    background:none;
    cursor:pointer;
    font-family:inherit;
}

/* ==========================================
   MAIN CONTENT
========================================== */

.main-content{
    max-width:1400px;
    margin:0 auto;
    padding:40px 24px 80px;
}

/* ==========================================
   BREADCRUMB
========================================== */

.breadcrumbs{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;

    margin-bottom:40px;

    font-size:12px;
    font-weight:500;
    letter-spacing:.08em;
    text-transform:uppercase;

    color:#888;
}

.breadcrumbs a{
    transition:.25s;
}

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

.breadcrumbs .current{
    color:#111;
}

/* ==========================================
   PRODUCT SECTION
========================================== */

.product-section{

    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:70px;

    margin-bottom:80px;

}

/* ==========================================
   GALLERY
========================================== */

.product-gallery{
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.thumbnails-container{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.thumbnail-btn{

    width:80px;
    height:100px;

    border:1px solid var(--color-border);

    border-radius:10px;

    overflow:hidden;

    opacity:.6;

    transition:.25s;

}

.thumbnail-btn img{

    width:100%;
    height:100%;

    object-fit:cover;

}

.thumbnail-btn:hover,
.thumbnail-btn.active{

    opacity:1;

    border-color:#111;

}

.main-image-container{

    flex:1;

    border-radius:14px;

    overflow:hidden;

    background:#fafafa;

}

.main-product-image{

    width:100%;

    aspect-ratio:4/5;

    object-fit:cover;

}

/* Zoom */

.product-gallery{
    position:relative;
}

.zoom-preview{

    width:420px;
    height:520px;

    position:absolute;
    left:105%;
    top:0;

    border:1px solid var(--color-border);

    border-radius:12px;

    background:#fff no-repeat;

    display:none;

    overflow:hidden;

    z-index:5;

}
/* ==========================================
   PRODUCT DETAILS
========================================== */

.product-details{
    display:flex;
    flex-direction:column;
}

.product-title{
    font-size:2.2rem;
    font-weight:400;
    line-height:1.2;
    margin-bottom:10px;
    letter-spacing:-.03em;
}

.product-price{
    font-size:1.6rem;
    font-weight:500;
    color:#111;
    margin-bottom:35px;
}

/* ==========================================
   SELECTORS
========================================== */

.selector-group{
    margin-bottom:28px;
}

.selector-label{
    font-size:.75rem;
    font-weight:600;
    letter-spacing:.12em;
    color:#888;
    margin-bottom:12px;
}

/* ==========================================
   SIZE
========================================== */

.size-options{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.size-btn{

    width:58px;
    height:58px;

    border:1px solid var(--color-border);

    border-radius:12px;

    background:#fff;

    color:#111;

    font-size:.95rem;
    font-weight:600;

    transition:.25s;

}

.size-btn:hover{

    border-color:#111;

    transform:translateY(-2px);

}

.size-btn.active{

    background:#111;

    color:#fff;

    border-color:#111;

}

/* ==========================================
   COLOR
========================================== */

.color-row{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

}

.color-options{

    display:flex;

    align-items:center;

    gap:16px;

}

.color-btn{

    width:26px;

    height:26px;

    border-radius:50%;

    border:none;

    transition:.25s;

}

.color-btn:hover{

    transform:scale(1.15);

}

.color-btn.active{

    outline:2px solid #111;

    outline-offset:4px;

}

.discount-badge{

    color:#0f9d58;

    font-weight:600;

    font-size:.95rem;

}

/* ==========================================
   STOCK
========================================== */

.stock-status{

    margin:10px 0 30px;

    color:#dc2626;

    font-weight:600;

}

/* ==========================================
   BUTTONS
========================================== */

.action-buttons{

    display:flex;

    flex-direction:column;

    gap:14px;

    margin-bottom:36px;

}

.btn{

    width:100%;

    height:50px;

    border-radius:8px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    font-size:.95rem;

    font-weight:600;

    transition:.25s;

}

.btn-secondary{

    background:#555;

    color:#fff;

}

.btn-secondary:hover{

    background:#333;

}

.btn-primary{

    background:#111;

    color:#fff;

}

.btn-primary:hover{

    opacity:.9;

}

.btn-outline{

    border:1px solid var(--color-border);

    background:#fff;

    color:#111;

}

.btn-outline:hover{

    border-color:#111;

}

.btn-wishlist svg{

    transition:.25s;

}

.btn-wishlist:hover svg{

    transform:scale(1.1);

}

/* ==========================================
   ERRORS
========================================== */

.field-error{

    padding:12px 15px;

    background:#fff1f1;

    color:#dc2626;

    border:1px solid #fecaca;

    border-radius:8px;

    font-size:.875rem;

    margin-bottom:12px;

}

/* ==========================================
   DESCRIPTION
========================================== */

.accordion-item{

    border-top:1px solid var(--color-border);

    border-bottom:1px solid var(--color-border);

}

.accordion-trigger{

    width:100%;

    height:58px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:.78rem;

    font-weight:600;

    letter-spacing:.12em;

    color:#111;

}

.chevron{

    transition:.25s;

}

.accordion-content{

    padding:18px 5px;

    color:#666;

    line-height:1.8;

    font-size:.95rem;

}
/* ==========================================
   RELATED PRODUCTS
========================================== */

.related-section{
    margin-top:80px;
    padding-top:60px;
    border-top:1px solid var(--color-border);
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;
}

.section-title{
    font-size:2rem;
    font-weight:400;
}

.carousel-nav{
    display:flex;
    gap:10px;
}

.nav-arrow{
    width:42px;
    height:42px;
    border:1px solid var(--color-border);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.25s;
}

.nav-arrow:hover{
    background:#111;
    color:#fff;
    border-color:#111;
}

.related-grid{
    display:flex;
    gap:24px;
    overflow-x:auto;
    scroll-behavior:smooth;
    scrollbar-width:none;
}

.related-grid::-webkit-scrollbar{
    display:none;
}

.product-card-link{
    flex:0 0 260px;
    color:inherit;
}

.product-card{
    display:flex;
    flex-direction:column;
}

.card-image-container{
    background:#f8f8f8;
    border-radius:14px;
    overflow:hidden;
    margin-bottom:14px;
}

.card-image-container img{
    width:100%;
    aspect-ratio:4/5;
    object-fit:cover;
    transition:.35s;
}

.product-card:hover img{
    transform:scale(1.05);
}

.card-title{
    font-size:.95rem;
    font-weight:500;
    margin-bottom:6px;
}

.card-price{
    color:#666;
    font-size:.9rem;
}

/* ==========================================
   REVIEWS
========================================== */

.reviews-section{
    margin-top:90px;
    padding-top:60px;
    border-top:1px solid var(--color-border);
}

.reviews-container{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:70px;
}

.reviews-summary{
    position:sticky;
    top:110px;
    height:max-content;
}

.sub-label{
    display:block;
    margin-bottom:10px;
    color:#888;
    font-size:.72rem;
    letter-spacing:.12em;
    font-weight:600;
}

.reviews-heading{
    font-size:2.1rem;
    font-weight:400;
    margin-bottom:30px;
}

.rating-large-block{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:30px;
}

.rating-number{
    font-size:4rem;
    font-weight:700;
    line-height:1;
}

.stars-container{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.stars-row{
    display:flex;
    gap:2px;
}

.star{
    font-size:18px;
}

.star.filled{
    color:#111;
}

.star.empty{
    color:#ddd;
}

.rating-count{
    font-size:.8rem;
    color:#777;
}

/* ==========================================
   RATING BARS
========================================== */

.rating-bars{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-bottom:35px;
}

.bar-row{
    display:flex;
    align-items:center;
    gap:10px;
}

.bar-label{
    width:50px;
    font-size:.85rem;
    color:#666;
}

.bar-track{
    flex:1;
    height:7px;
    background:#ececec;
    border-radius:999px;
    overflow:hidden;
}

.bar-fill{
    height:100%;
    background:#111;
}

.bar-percent{
    width:45px;
    text-align:right;
    font-size:.82rem;
}

/* ==========================================
   REVIEW BUTTON
========================================== */

.btn-write-review{
    width:100%;
    height:48px;
    border:1px solid var(--color-border);
    border-radius:8px;
    background:#fff;
    font-weight:600;
    transition:.25s;
}

.btn-write-review:hover{
    background:#111;
    color:#fff;
    border-color:#111;
}

/* ==========================================
   REVIEW LIST
========================================== */

.reviews-list{
    display:flex;
    flex-direction:column;
}

.review-card{
    padding-bottom:30px;
    margin-bottom:30px;
    border-bottom:1px solid var(--color-border);
}

.review-header{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-bottom:15px;
}

.review-stars-title{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.stars-row.small .star{
    font-size:15px;
}

.review-title{
    font-size:1rem;
    font-weight:600;
}

.review-meta{
    text-align:right;
}

.review-author{
    display:block;
    font-size:.9rem;
    font-weight:600;
}

.review-date{
    color:#888;
    font-size:.75rem;
}

.review-text{
    color:#666;
    line-height:1.8;
    margin-top:15px;
}

.load-more-btn{
    align-self:center;
    margin-top:20px;
    font-weight:600;
    color:#111;
    border-bottom:1px solid #111;
    padding-bottom:2px;
}

/* ==========================================
   REVIEW MODAL
========================================== */

.review-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
    padding:20px;
}

.review-modal.active{
    display:flex;
}

.review-modal-content{

    width:100%;
    max-width:500px;

    background:#fff;

    border-radius:18px;

    padding:28px;

    box-shadow:0 20px 60px rgba(0,0,0,.18);

}

.review-modal-content h3{

    text-align:center;

    font-size:1.4rem;

    margin-bottom:24px;

}

.rating-select{

    display:flex;

    justify-content:center;

    gap:12px;

    margin-bottom:24px;

}

.rating-star{

    font-size:36px;

    color:#ddd;

    cursor:pointer;

    transition:.25s;

}

.rating-star:hover,
.rating-star.active{

    color:#f4b400;

}

.review-title-field,
.review-modal textarea{

    width:100%;

    border:1px solid var(--color-border);

    border-radius:10px;

    padding:14px;

    font-family:inherit;

    font-size:.95rem;

    transition:.25s;

}

.review-title-field{

    margin-bottom:15px;

}

.review-modal textarea{

    min-height:140px;

    resize:vertical;

}

.review-title-field:focus,
.review-modal textarea:focus{

    outline:none;

    border-color:#111;

}

.review-modal-actions{

    display:flex;

    justify-content:flex-end;

    gap:12px;

    margin-top:20px;

}

.review-cancel-btn,
.review-send-btn{

    padding:12px 24px;

    border-radius:8px;

    font-weight:600;

    transition:.25s;

}

.review-cancel-btn{

    border:1px solid var(--color-border);

    background:#fff;

}

.review-cancel-btn:hover{

    background:#f5f5f5;

}

.review-send-btn{

    background:#111;

    color:#fff;

}

.review-send-btn:hover{

    opacity:.9;

}

/* ==========================================
   TOAST
========================================== */

#toast-container{

    position:fixed;

    top:25px;

    right:25px;

    z-index:99999;

}

.toast{

    min-width:320px;

    padding:16px 18px;

    margin-bottom:12px;

    border-radius:10px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    color:#fff;

    font-weight:600;

    box-shadow:0 15px 35px rgba(0,0,0,.15);

    animation:slideIn .35s ease;

}

.toast.success{

    background:#16a34a;

}

.toast.error{

    background:#dc2626;

}

.toast-close{

    color:#fff;

    font-size:18px;

    margin-left:15px;

    cursor:pointer;

}

@keyframes slideIn{

    from{

        opacity:0;

        transform:translateX(50px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}

/* ==========================================
   ZOOM
========================================== */

.zoom-preview{

    background-size:200%;

    background-position:center;

    background-repeat:no-repeat;

}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:992px){

    .product-section{

        grid-template-columns:1fr;

        gap:50px;

    }

    .reviews-container{

        grid-template-columns:1fr;

        gap:50px;

    }

    .reviews-summary{

        position:static;

    }

}

@media(max-width:768px){

    .main-content{

        padding:25px 18px 60px;

    }

    .breadcrumbs{

        font-size:11px;

        gap:6px;

        margin-bottom:25px;

    }

    .product-gallery{

        flex-direction:column-reverse;

    }

    .thumbnails-container{

        flex-direction:row;

        overflow-x:auto;

        padding-bottom:5px;

    }

    .thumbnail-btn{

        flex-shrink:0;

        width:70px;

        height:85px;

    }

    .main-image-container{

        width:100%;

    }

    .zoom-preview{

        display:none !important;

    }

    .product-title{

        font-size:1.8rem;

    }

    .product-price{

        font-size:1.35rem;

    }

    .section-header{

        flex-direction:column;

        align-items:flex-start;

        gap:20px;

    }

    .review-header{

        flex-direction:column;

    }

    .review-meta{

        text-align:left;

    }

}

@media(max-width:576px){

    .action-buttons{

        gap:12px;

    }

    .btn{

        height:46px;

        font-size:.9rem;

    }

    .review-modal{

        align-items:flex-end;

        padding:0;

    }

    .review-modal-content{

        max-width:100%;

        border-radius:20px 20px 0 0;

        padding:24px;

    }

    .review-modal-actions{

        flex-direction:column-reverse;

    }

    .review-cancel-btn,
    .review-send-btn{

        width:100%;

    }

    .toast{

        min-width:auto;

        width:calc(100vw - 30px);

    }

}
.price-original {
    text-decoration: line-through;
}