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

.breadcrumb-bar{
    background:#f1f3f5;
    padding:16px 0;
    border-bottom:1px solid #e9ecef;
}

.breadcrumb{
    display:flex;
    align-items:center;
    gap:8px;
    list-style:none;
    font-size:14px;
    flex-wrap:wrap;
}

.breadcrumb li a{
    color:#666;
    text-decoration:none;
    transition:.3s;
}

.breadcrumb li a:hover{
    color:var(--forest);
}

.breadcrumb li::after{
    content:'/';
    margin-left:8px;
    color:#aaa;
}

.breadcrumb li:last-child::after{
    display:none;
}

.breadcrumb li.active{
    color:var(--forest);
    font-weight:600;
}

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

.product-detail{
    padding:50px 0;
}

.product-detail .container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:start;
}

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

.product-gallery{
    position:sticky;
    top:30px;
}

.main-image{
    position:relative;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
    margin-bottom:16px;
}

.main-image img{
    width:100%;
    height:450px;
    object-fit:cover;
    transition:transform .4s ease, opacity .3s ease;
    cursor:zoom-in;
}

.main-image .badge{
    position:absolute;
    top:16px;
    left:16px;
    background:var(--clay);
    color:#fff;
    padding:6px 16px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
    z-index:2;
}

.zoom-btn{
    position:absolute;
    bottom:16px;
    right:16px;
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(255,255,255,.9);
    border:none;
    color:#333;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 3px 12px rgba(0,0,0,.12);
    z-index:2;
}

.zoom-btn:hover{
    background:var(--forest);
    color:#fff;
}

/* Thumbnails */

.thumbnail-row{
    display:flex;
    gap:12px;
}

.thumb{
    flex:1;
    border:3px solid transparent;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    background:none;
    padding:0;
    transition:.3s;
    box-shadow:0 3px 10px rgba(0,0,0,.06);
}

.thumb img{
    width:100%;
    height:90px;
    object-fit:cover;
    transition:.3s;
}

.thumb:hover{
    border-color:var(--forest);
    transform:translateY(-3px);
}

.thumb.active{
    border-color:var(--forest);
    box-shadow:0 4px 15px rgba(31,111,74,.25);
}

/*=====================================================
                PRODUCT INFO
======================================================*/

.product-info{
    padding:10px 0;
}

.category-tag{
    display:inline-block;
    padding:5px 16px;
    background:rgba(31,111,74,.1);
    color:var(--forest);
    border-radius:20px;
    font-size:13px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.5px;
    margin-bottom:12px;
}

.product-info h1{
    font-size:32px;
    color:var(--ink);
    font-weight:700;
    line-height:1.3;
    margin-bottom:16px;
}

/* Rating Row */

.rating-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.stars{
    color:#ffc107;
    font-size:16px;
}

.stars.small{
    font-size:13px;
}

.review-count{
    color:#888;
    font-size:14px;
}

.rating-row .divider{
    color:#ddd;
    font-size:14px;
}

.stock-status{
    font-size:14px;
    font-weight:600;
}

.stock-status.in-stock{
    color:var(--forest);
}

.stock-status.out-of-stock{
    color:var(--clay);
}

/* Price Row */

.price-row{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:22px;
    flex-wrap:wrap;
}

.current-price{
    font-size:36px;
    font-weight:700;
    color:var(--forest);
}

.original-price{
    font-size:20px;
    color:#999;
    text-decoration:line-through;
}

.discount-tag{
    background:#fff3cd;
    color:#856404;
    padding:4px 12px;
    border-radius:6px;
    font-size:13px;
    font-weight:600;
}

/* Description */

.product-description{
    font-size:15px;
    color:#666;
    line-height:1.8;
    margin-bottom:28px;
}

/* Key Features */

.key-features{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-bottom:30px;
}

.feature{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 16px;
    background:#f8f9fa;
    border-radius:10px;
    transition:.3s;
}

.feature:hover{
    background:#e8f5e9;
    transform:translateX(4px);
}

.feature i{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--forest);
    color:#fff;
    border-radius:8px;
    font-size:14px;
    flex-shrink:0;
}

.feature span{
    font-size:14px;
    font-weight:500;
    color:#444;
}

/* Purchase Row */

.purchase-row{
    display:flex;
    gap:14px;
    margin-bottom:16px;
    flex-wrap:wrap;
}

.quantity-selector{
    display:flex;
    align-items:center;
    border:2px solid #e0e0e0;
    border-radius:12px;
    overflow:hidden;
}

.qty-btn{
    width:44px;
    height:48px;
    background:#f8f9fa;
    border:none;
    font-size:20px;
    color:#333;
    cursor:pointer;
    transition:.3s;
    display:flex;
    align-items:center;
    justify-content:center;
}

.qty-btn:hover{
    background:var(--forest);
    color:#fff;
}

.quantity-selector input{
    width:55px;
    height:48px;
    border:none;
    text-align:center;
    font-size:17px;
    font-weight:600;
    color:#333;
    outline:none;
    -moz-appearance:textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
}

.add-to-cart-btn{
    flex:1;
    min-width:200px;
    padding:14px 32px;
    background:var(--forest);
    color:#fff;
    border:none;
    border-radius:12px;
    font-size:17px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.add-to-cart-btn:hover{
    background:var(--forest-deep);
    transform:translateY(-3px);
    box-shadow:0 8px 25px rgba(31,111,74,.35);
}

.add-to-cart-btn.is-loading{
    opacity:.75;
    cursor:wait;
    transform:none;
}

.add-to-cart-btn.is-added{
    background:var(--amber);
    box-shadow:0 8px 25px rgba(217,130,43,.35);
}

/* Mini Add To Cart button used on related-product cards */
.add-to-cart-mini{
    background:var(--forest);
    color:#fff;
    border:none;
    padding:12px 28px;
    border-radius:40px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.add-to-cart-mini:hover{
    background:var(--forest-deep);
    transform:translateY(-3px);
}

.add-to-cart-mini.is-added{
    background:var(--amber);
}

.wishlist-btn{
    width:100%;
    padding:13px;
    background:transparent;
    border:2px solid #ddd;
    border-radius:12px;
    font-size:15px;
    font-weight:600;
    color:#555;
    cursor:pointer;
    transition:.3s;
    margin-bottom:28px;
}

.wishlist-btn:hover{
    border-color:var(--clay);
    color:var(--clay);
    background:rgba(231,76,60,.05);
}

.wishlist-btn i{
    margin-right:6px;
}

/* Product Meta */

.product-meta{
    padding:20px 0;
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
    margin-bottom:20px;
}

.product-meta p{
    font-size:14px;
    color:#666;
    margin-bottom:8px;
}

.product-meta p:last-child{
    margin-bottom:0;
}

.product-meta strong{
    color:#333;
    margin-right:6px;
}

.product-meta a{
    color:var(--forest);
    text-decoration:none;
    transition:.3s;
}

.product-meta a:hover{
    text-decoration:underline;
}

/* Share Row */

.share-row{
    display:flex;
    align-items:center;
    gap:12px;
}

.share-row span{
    font-size:14px;
    font-weight:600;
    color:#555;
}

.share-row a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#f1f3f5;
    color:#555;
    font-size:15px;
    transition:.3s;
    text-decoration:none;
}

.share-row a:hover{
    background:var(--forest);
    color:#fff;
    transform:translateY(-3px);
}

/*=====================================================
                PRODUCT TABS
======================================================*/

.product-tabs-section{
    background:#fff;
    padding:60px 0;
    margin-top:20px;
}

.tab-buttons{
    display:flex;
    gap:0;
    border-bottom:2px solid #eee;
    margin-bottom:35px;
    overflow-x:auto;
}

.tab-btn{
    padding:16px 30px;
    background:none;
    border:none;
    border-bottom:3px solid transparent;
    font-size:16px;
    font-weight:600;
    color:#888;
    cursor:pointer;
    transition:.3s;
    white-space:nowrap;
}

.tab-btn:hover{
    color:var(--forest);
}

.tab-btn.active{
    color:var(--forest);
    border-bottom-color:var(--forest);
}

/* Tab Content */

.tab-content{
    display:none;
}

.tab-content.active{
    display:block;
    animation:fadeIn .4s ease;
}

@keyframes fadeIn{
    from{ opacity:0; transform:translateY(10px); }
    to{ opacity:1; transform:translateY(0); }
}

.tab-content h3{
    font-size:24px;
    color:var(--ink);
    margin-bottom:18px;
    font-weight:700;
}

.tab-content h4{
    font-size:18px;
    color:var(--ink);
    margin:24px 0 14px;
    font-weight:600;
}

.tab-content p{
    font-size:15px;
    color:#666;
    line-height:1.8;
    margin-bottom:14px;
}

.tab-content ul{
    list-style:none;
    margin-bottom:14px;
}

.tab-content ul li{
    padding:10px 0;
    font-size:15px;
    color:#555;
    border-bottom:1px solid #f5f5f5;
    display:flex;
    align-items:center;
    gap:10px;
}

.tab-content ul li i{
    color:var(--forest);
    font-size:14px;
}

/* Spec Table */

.spec-table{
    width:100%;
    border-collapse:collapse;
}

.spec-table tr:nth-child(even){
    background:#f8f9fa;
}

.spec-table td{
    padding:14px 18px;
    font-size:15px;
    border-bottom:1px solid #eee;
}

.spec-table td:first-child{
    font-weight:600;
    color:#333;
    width:40%;
}

.spec-table td:last-child{
    color:#666;
}

/* Review Summary */

.review-summary{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:40px;
    background:#f8f9fa;
    border-radius:16px;
    padding:30px;
    margin-bottom:35px;
    align-items:center;
}

.review-average{
    text-align:center;
}

.big-rating{
    display:block;
    font-size:56px;
    font-weight:700;
    color:var(--ink);
    line-height:1;
    margin-bottom:8px;
}

.review-average .stars{
    margin-bottom:6px;
    font-size:18px;
}

.review-average span:last-child{
    font-size:13px;
    color:#888;
}

/* Rating Bars */

.bar-row{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:8px;
}

.bar-row span{
    font-size:13px;
    color:#888;
    min-width:32px;
}

.bar-row span:last-child{
    text-align:right;
}

.bar{
    flex:1;
    height:10px;
    background:#e9ecef;
    border-radius:5px;
    overflow:hidden;
}

.bar-fill{
    height:100%;
    background:linear-gradient(90deg,var(--forest),var(--forest-light));
    border-radius:5px;
    transition:width .6s ease;
}

/* Review Cards */

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

.review-card{
    background:#f8f9fa;
    border-radius:14px;
    padding:24px;
    transition:.3s;
}

.review-card:hover{
    box-shadow:0 5px 20px rgba(0,0,0,.06);
}

.review-header{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
    flex-wrap:wrap;
}

.reviewer-avatar{
    width:44px;
    height:44px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--forest),var(--forest-light));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:700;
    flex-shrink:0;
}

.review-header strong{
    font-size:15px;
    color:#333;
    display:block;
    margin-bottom:2px;
}

.review-date{
    margin-left:auto;
    font-size:13px;
    color:#999;
}

.review-card p{
    font-size:14px;
    color:#666;
    line-height:1.7;
    margin-bottom:12px;
}

.review-helpful button{
    background:none;
    border:1px solid #ddd;
    padding:6px 14px;
    border-radius:6px;
    font-size:13px;
    color:#888;
    cursor:pointer;
    transition:.3s;
}

.review-helpful button:hover{
    border-color:var(--forest);
    color:var(--forest);
    background:rgba(31,111,74,.05);
}

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

.related-products{
    padding:60px 0 20px;
}

.section-title{
    text-align:center;
    font-size:30px;
    color:var(--ink);
    font-weight:700;
    margin-bottom:40px;
    position:relative;
}

.section-title::after{
    content:'';
    display:block;
    width:60px;
    height:4px;
    background:var(--forest);
    border-radius:2px;
    margin:12px auto 0;
}

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

/*=====================================================
       RESPONSIVE - TABLET (max-width: 992px)
======================================================*/

@media(max-width:992px){

    .product-detail .container{
        gap:35px;
    }

    .main-image img{
        height:380px;
    }

    .product-info h1{
        font-size:28px;
    }

    .current-price{
        font-size:30px;
    }

    .key-features{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .review-summary{
        grid-template-columns:180px 1fr;
        gap:25px;
    }

    .big-rating{
        font-size:46px;
    }

    .related-products .product-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

/*=====================================================
       RESPONSIVE - MOBILE (max-width: 768px)
======================================================*/

@media(max-width:768px){

    .product-detail{
        padding:30px 0;
    }

    .product-detail .container{
        grid-template-columns:1fr;
        gap:30px;
    }

    .product-gallery{
        position:static;
    }

    .main-image img{
        height:320px;
    }

    .thumb img{
        height:70px;
    }

    .product-info h1{
        font-size:24px;
    }

    .current-price{
        font-size:28px;
    }

    .original-price{
        font-size:17px;
    }

    .key-features{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .feature{
        padding:12px;
    }

    .feature span{
        font-size:13px;
    }

    .purchase-row{
        flex-direction:column;
    }

    .add-to-cart-btn{
        min-width:100%;
    }

    /* Tabs */
    .tab-buttons{
        gap:0;
    }

    .tab-btn{
        padding:14px 18px;
        font-size:14px;
    }

    .tab-content h3{
        font-size:20px;
    }

    /* Review Summary */
    .review-summary{
        grid-template-columns:1fr;
        gap:20px;
        text-align:center;
    }

    .bar-row{
        max-width:400px;
        margin-left:auto;
        margin-right:auto;
    }

    /* Related Products */
    .section-title{
        font-size:24px;
    }

    .related-products .product-grid{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }
}

/*=====================================================
       RESPONSIVE - SMALL MOBILE (max-width: 480px)
======================================================*/

@media(max-width:480px){

    .breadcrumb{
        font-size:12px;
    }

    .product-detail{
        padding:20px 0;
    }

    .main-image img{
        height:260px;
    }

    .thumbnail-row{
        gap:8px;
    }

    .thumb img{
        height:55px;
    }

    .product-info h1{
        font-size:21px;
    }

    .current-price{
        font-size:26px;
    }

    .key-features{
        grid-template-columns:1fr;
        gap:8px;
    }

    .tab-btn{
        padding:12px 14px;
        font-size:13px;
    }

    .spec-table td{
        padding:10px 12px;
        font-size:13px;
    }

    .spec-table td:first-child{
        width:45%;
    }

    .review-card{
        padding:18px;
    }

    .reviewer-avatar{
        width:36px;
        height:36px;
        font-size:15px;
    }

    .related-products .product-grid{
        grid-template-columns:1fr;
    }

    .section-title{
        font-size:22px;
    }

    .share-row{
        flex-wrap:wrap;
    }
}