
/* =========================================
   ROOT VARIABLES
========================================= */

:root{
    --primary:#f57224;
    --secondary:#26abd4;
    --bg:#eff0f5;
    --text:#212121;
    --light-text:#757575;
    --border:#f0f0f0;
    --white:#ffffff;
}

/* =========================================
   GLOBAL RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Roboto',sans-serif;
    -webkit-tap-highlight-color:transparent;
}

body{
    background:var(--bg);
    color:var(--text);
    line-height:1.4;
    overflow-x:hidden;
    width:100%;
}

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

button,
input,
textarea,
select{
    font-family:inherit;
}

/* =========================================
   HEADER
========================================= */

.main-header{
    background:var(--white);
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:1000;
    height:60px;
    width:100%;
}

.header-container{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    gap:15px;
}

.header-left{
    width:240px;
    display:flex;
    align-items:center;
    gap:15px;
    flex-shrink:0;
}

.store-logo{
    font-size:24px;
    font-weight:700;
    color:var(--primary);
    text-decoration:none;
    letter-spacing:-1px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.header-right{
    display:flex;
    align-items:center;
    gap:15px;
    flex:1;
    justify-content:flex-end;
}

.icon-btn{
    text-decoration:none;
    color:var(--text);
    font-size:25px;
    font-weight:700;
    position:relative;
    transition:.2s;
    background:none;
    border:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.icon-btn:hover{
    color:var(--primary);
}

.cart-badge{
    position:absolute;
    top:-5px;
    right:-8px;
    background:var(--primary);
    color:#fff;
    font-size:10px;
    min-width:16px;
    height:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-weight:bold;
    padding:2px;
}

.mobile-menu-btn{
    display:none;
    background:none;
    border:none;
    font-size:20px;
    cursor:pointer;
    color:var(--text);
}

/* =========================================
   OVERLAY
========================================= */

.mobile-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:1999;
    opacity:0;
    visibility:hidden;
    transition:.3s;
}

.mobile-overlay.active{
    opacity:1;
    visibility:visible;
}

/* =========================================
   SIDEBAR
========================================= */

.mobile-drawer{
    position:fixed;
    top:60px;
    left:0;
    width:240px;
    height:calc(100vh - 60px);
    background:var(--white);
    z-index:999;
    border-right:1px solid var(--border);
    overflow-y:auto;
    overflow-x:hidden;
}

.drawer-header{
    display:none;
}

.drawer-links{
    padding:15px 0;
}

.drawer-links a{
    display:flex;
    align-items:center;
    gap:15px;
    padding:12px 20px;
    text-decoration:none;
    color:var(--text);
    font-weight:500;
    font-size:14px;
    transition:.2s;
}

.drawer-links a i{
    width:20px;
    color:var(--light-text);
    flex-shrink:0;
}

.drawer-links a:hover{
    background:#f8f8f8;
    color:var(--primary);
}

.accordion-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.accordion-header a{
    flex:1;
    min-width:0;
}

.toggle-icon{
    padding:12px 20px;
    cursor:pointer;
    transition:transform .3s ease;
    color:var(--light-text);
    flex-shrink:0;
}

.accordion-content{
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease-out;
    background:#fafafa;
}

.accordion-item.active .accordion-content{
    max-height:1000px;
}

.accordion-item.active .toggle-icon{
    transform:rotate(180deg);
}

.accordion-content a{
    padding-left:45px !important;
}

.accordion-content a i{
    margin-right:10px;
    width:20px;
    text-align:center;
}

/* =========================================
   CONTAINER
========================================= */

.container{
    margin-left:240px;
    width:calc(100% - 240px);
    max-width:none;
    background:transparent;
    padding:10px;
}

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

.product-section{
    display:grid;
    grid-template-columns:440px 1fr;
    gap:1px;
    margin-bottom:1px;
    width:100%;
}

.gallery-box,
.details-box,
.delivery-box{
    background:var(--white);
    padding:16px;
    box-shadow:0 1px 2px rgba(0,0,0,.1);
    min-width:0;
    width:100%;
    height:auto;
}

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

.gallery-box{
    border-right:1px solid var(--border);
}

.slider-viewport{
    width:100%;
    aspect-ratio:1/1;
    overflow:hidden;
    position:relative;
    background:#fff;
    touch-action:pan-y;
}

.slider-track{
    display:flex;
    width:100%;
    height:100%;
    transition:transform .3s ease;
    will-change:transform;
}

.slider-track img{
    min-width:100%;
    width:100%;
    height:100%;
    object-fit:contain;
    flex-shrink:0;
    user-select:none;
    pointer-events:none;
}

/* =========================================
   THUMBNAILS
========================================= */

.thumb-wrapper{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
    width:100%;
}

.thumb-row{
    display:flex;
    gap:8px;
    overflow-x:auto;
    scrollbar-width:none;
    flex:1;
    scroll-behavior:smooth;
}

.thumb-row::-webkit-scrollbar{
    display:none;
}

.thumb-row img{
    width:62px;
    height:62px;
    object-fit:cover;
    border:1px solid var(--border);
    flex-shrink:0;
    cursor:pointer;
    background:#fff;
    padding:1px;
}

.thumb-row img.active{
    border:2px solid var(--primary);
}

.thumb-arrow{
    width:32px;
    height:32px;
    border-radius:50%;
    border:1px solid #ddd;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    flex-shrink:0;
    transition:.2s;
}

.thumb-arrow:hover{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}

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

.details-box{
    padding:16px 20px;
}

.p-title{
    font-size:16.5px;
    margin-bottom:10px;
    word-break:break-word;
    font-weight: normal;
}

.breadcrumb{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    font-size:13px;
    margin-bottom:12px;
    line-height:1.6;
}

.breadcrumb a{
    color:var(--secondary);
    text-decoration:none;
}

.p-price-row{
    padding:12px 0;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
    margin-bottom:16px;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

.p-price-now{
    font-size:28px;
    color:var(--primary);
    font-weight:500;
}

.p-price-old{
    font-size:14px;
    color:var(--light-text);
    text-decoration:line-through;
}

.p-discount{
    font-size:14px;
    color:var(--primary);
    font-weight:bold;
}

/* =========================================
   VARIANTS
========================================= */

.v-label{
    font-size:13px;
    color:var(--light-text);
    margin-bottom:8px;
    display:block;
    font-weight:bold;
}

.swatch-container,
.size-container{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:20px;
}

.swatch-item{
    width:40px;
    height:40px;
    border:1px solid var(--border);
    padding:1px;
    cursor:pointer;
    flex-shrink:0;
}

.swatch-item.active{
    border:2px solid var(--primary);
}

.swatch-item img,
.swatch-item .color-box{
    width:100%;
    height:100%;
    object-fit:cover;
}

.size-item{
    min-width:45px;
    height:32px;
    border:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 10px;
    font-size:13px;
    cursor:pointer;
    background:#fff;
}

.size-item.active{
    border-color:var(--primary);
    color:var(--primary);
    background:#fff1e8;
}

/* =========================================
   QUANTITY
========================================= */

.qty-row{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:25px;
}

.qty-box{
    display:flex;
    border:1px solid var(--border);
}

.qty-btn{
    width:32px;
    height:32px;
    border:none;
    background:#fafafa;
    cursor:pointer;
    font-size:18px;
}

#qty-count{
    width:40px;
    line-height:32px;
    text-align:center;
    font-weight:bold;
}

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

.btn-row{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.btn{
    width:100%;
    min-height:48px;
    border:none;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    text-transform:uppercase;
}

.btn-buy{
    background:var(--primary);
    color:#fff;
}

.btn-cart{
    background:var(--secondary);
    color:#fff;
}

/* =========================================
   DELIVERY
========================================= */

/* Delivery Section Styles */
.delivery-header { font-size: 12px; color: var(--light-text); font-weight: bold; margin-bottom: 12px; text-transform: uppercase; }
.delivery-item { display: flex; gap: 12px; margin-bottom: 15px; align-items: flex-start; }
.delivery-item i { color: #9e9e9e; font-size: 18px; margin-top: 2px; width: 20px; text-align: center; }
.delivery-text { display: flex; flex-direction: column; }
.delivery-title { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.2; }
.delivery-sub { font-size: 12px; color: var(--light-text); margin-top: 2px; }
/* =========================================
   CONTENT GRID
========================================= */

.content-grid{
    display:grid;
    grid-template-columns:1fr 350px;
    gap:12px;
    margin-top:12px;
    align-items:start;
}

.left-col,
.sidebar{
    min-width:0;
}

.card{
    background:var(--white);
    padding:16px;
    margin-bottom:12px;
    box-shadow:0 1px 2px rgba(0,0,0,.05);
    overflow:hidden;
}

.card-title{
    font-size:18px;
    font-weight:500;
    padding:8px;
    background:#f8f8f8;
    border-left:3px solid var(--primary);
    margin-bottom:12px;
}

.highlights-list{
    margin:0;
    padding:0 0 0 18px;
    list-style-type:disc;
    font-size:14px;
    color:#444;
    line-height:1.7;
}

.highlights-list li{
    margin-bottom:5px;
    padding-left:5px;
    word-break:break-word;
}

/* =========================================
   CHECKOUT
========================================= */

.checkout-area{
    position:sticky;
    top:75px;
    border:1px solid var(--primary);
    z-index:10;
}

.f-group{
    margin-bottom:12px;
}

.f-group label{
    display:block;
    font-size:13px;
    font-weight:bold;
    margin-bottom:4px;
    color:var(--light-text);
}

.f-group input,
.f-group select,
.f-group textarea{
    width:100%;
    padding:10px 12px;
    border:1px solid var(--border);
    font-size:14px;
    outline:none;
    border-radius:3px;
    background:#fff;
}

.f-group textarea{
    resize:vertical;
}

/* =========================================
   CART IMAGE
========================================= */

.cart-img-box{
    width:70px !important;
    height:70px !important;
    border:1px solid #eee;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:2px;
    flex-shrink:0;
}

.cart-img-box img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}

/* =========================================
   FOOTER
========================================= */

.main-footer{
    background:var(--white);
    border-top:1px solid var(--border);
    padding:45px 0 0;
    width:100%;
    margin-top:20px;
}

.footer-container{
    margin:0 auto;
    padding:0 20px;
    max-width:1200px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin-bottom:35px;
}

.footer-col{
    min-width:0;
}

.footer-col h4{
    font-size:16px;
    font-weight:700;
    margin-bottom:18px;
    color:var(--text);
    text-transform:uppercase;
    display:flex;
    align-items:center;
    gap:8px;
}

.footer-desc{
    font-size:14px;
    color:var(--light-text);
    line-height:1.8;
    margin-bottom:20px;
    word-break:break-word;
}

.footer-col ul{
    list-style:none;
}

.footer-col ul li{
    margin-bottom:12px;
}

.footer-col ul li a{
    text-decoration:none;
    color:var(--light-text);
    font-size:14px;
    transition:.2s;
    display:flex;
    align-items:flex-start;
    gap:8px;
    line-height:1.6;
}

.contact-info p{
    font-size:14px;
    color:var(--light-text);
    margin-bottom:10px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    line-height:1.7;
    word-break:break-word;
}

.contact-info p i,
.footer-col h4 i,
.footer-col ul li a i{
    color:var(--primary);
    min-width:16px;
}

.footer-bottom{
    background:var(--bg);
    padding:18px;
    text-align:center;
    border-top:1px solid var(--border);
}

/* =========================================
   TABLET
========================================= */

@media (max-width:992px){

    .mobile-menu-btn{
        display:block;
    }

    .mobile-drawer{
        top:0;
        left:-280px;
        width:280px;
        height:100vh;
        z-index:2001;
        transition:.3s;
    }

    .mobile-drawer.active{
        left:0;
    }

    .drawer-header{
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:20px;
        border-bottom:1px solid var(--border);
        background:#fff;
        position:sticky;
        top:0;
        z-index:5;
    }

    .container{
        margin-left:0;
        width:100%;
        padding:8px;
    }

    .product-section{
        grid-template-columns:440px 1fr;
    }

    .content-grid{
        grid-template-columns:1fr 350px;
    }

    .footer-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width:768px){

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

    .gallery-box{
        border-right:none;
    }

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

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

    .checkout-area{
        position:static;
    }

    .slider-viewport{
        max-height:85vw;
    }

    .btn-row{
        grid-template-columns:repeat(2,1fr);
    }

    .thumb-row img{
        width:55px;
        height:55px;
    }

    .p-price-now{
        font-size:24px;
    }

    .btn{
        min-height:46px;
        font-size:15px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width:480px){

    .gallery-box,
    .details-box,
    .delivery-box,
    .card{
        padding:12px;
    }

    .thumb-row img{
        width:50px;
        height:50px;
    }

    .size-item{
        min-width:42px;
        font-size:12px;
    }

    .btn{
        min-height:44px;
        font-size:14px;
    }

    .p-price-now{
        font-size:22px;
    }

}

