:root{

    --emerald:#0B5D3B;

    --terracotta:#C96A4A;

    --cream:#FAF6EF;

    --gold:#D4A24C;

    --text:#2D2D2D;

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:Arial, Helvetica, sans-serif;

    background:var(--cream);

    color:var(--text);

    overflow-x:hidden;

}
nav{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

    background:white;

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

}

.nav-container{

    max-width:1400px;

    margin:auto;

    padding:18px 6%;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo img{

    width:140px;

    display:block;

}

.nav-links{

    list-style:none;

    display:flex;

    gap:40px;

}

.nav-links a{

    position:relative;

    text-decoration:none;

    color:#0D6B3D;

    font-weight:600;

    transition:.3s ease;

}

/* Hover */

.nav-links a:hover{

    color:#D17A4A;

}

/* Active link */

.nav-links a.active{

    color:#D17A4A;

}

/* Underline animation */

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-6px;

    width:0;

    height:2px;

    background:#D17A4A;

    transition:.3s ease;

}

.nav-links a:hover::after,
.nav-links a.active::after{

    width:100%;

}
.nav-actions{
    display:flex;
    align-items:center;
    gap:30px;
}

.account-icon,
.cart-icon{
    display:flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    color:#006838;
    font-weight:600;
    position:relative;
    transition:.3s;
}

.account-icon:hover,
.cart-icon:hover{
    color:#d87c4a;
}

.account-icon i,
.cart-icon i{
    font-size:20px;
}

.cart-count{
    position:absolute;
    top:-8px;
    left:12px;

    width:20px;
    height:20px;

    background:#d87c4a;
    color:#fff;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:11px;
    font-weight:700;
}
.dropdown{
    position:relative;
}

.dropdown-menu{

    position:absolute;

    top:100%;
    left:0;

    min-width:220px;

    background:white;

    list-style:none;

    border-radius:12px;

    box-shadow:0 10px 30px rgba(0,0,0,.12);

    padding:10px 0;

    opacity:0;

    visibility:hidden;

    transform:translateY(10px);

    transition:.3s ease;

}

.dropdown:hover .dropdown-menu{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.dropdown-menu li{
    width:100%;
}

.dropdown-menu a{

    display:block;

    padding:14px 20px;

    text-decoration:none;

    color:var(--emerald);

}

.dropdown-menu a:hover{

    background:var(--cream);

    color:var(--terracotta);

}
.menu-toggle{
    display:none;
    font-size:2rem;
    color:var(--emerald);
    cursor:pointer;
}
.account-dropdown{

    position:relative;

}

.account-icon{

    display:flex;
    align-items:center;
    gap:8px;

    text-decoration:none;

    color:var(--emerald);

    font-weight:600;

    transition:.3s;

}

.account-icon:hover{

    color:var(--terracotta);

}

.dropdown-arrow{

    font-size:12px;

    margin-left:2px;

}

.account-menu{

    position:absolute;

    top:calc(100% + 12px);

    right:0;

    width:240px;

    background:#fff;

    border-radius:14px;

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

    overflow:hidden;

    opacity:0;

    visibility:hidden;

    transform:translateY(10px);

    transition:.25s ease;

    z-index:9999;

}

.account-dropdown:hover .account-menu{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.account-menu a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:15px 20px;

    text-decoration:none;

    color:#333;

    transition:.25s;

}

.account-menu a:hover{

    background:var(--cream);

    color:var(--emerald);

}

.account-menu hr{

    border:none;

    border-top:1px solid #eee;

}

.logout-link{

    color:#D17A4A !important;;

}

.logout-link:hover{

    background:#fff3f3;

    color:#c62828;

}
/* ==========================
   HERO
========================== */

.cart-hero{

    text-align:center;

    padding:80px 8% 40px;

}

.cart-hero h1{

    font-size:52px;

    color:#006838;

    margin-bottom:15px;

}

.cart-hero p{

    max-width:600px;

    margin:auto;

    color:#666;

    line-height:1.7;

}

/* ==========================
   CART SKELETON
========================== */

#cart-skeleton{

    display:flex;

    flex-direction:column;

    gap:25px;

}

.cart-skeleton-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:25px;

    border-radius:16px;

    background:#fff;

    box-shadow:0 5px 18px rgba(0,0,0,.05);

}

.skeleton-left{

    display:flex;

    align-items:center;

    gap:20px;

}

.skeleton-image{

    width:150px;

    height:150px;

    border-radius:12px;

    background:#e9e9e9;

}

.skeleton-text{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.skeleton-line{

    height:14px;

    border-radius:8px;

    background:#e9e9e9;

}

.skeleton-line.large{

    width:220px;

}

.skeleton-line.medium{

    width:160px;

}

.skeleton-line.small{

    width:100px;

}

.skeleton-right{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:15px;

}

.skeleton-price{

    width:90px;

    height:18px;

    border-radius:8px;

    background:#e9e9e9;

}

.skeleton-qty{

    width:90px;

    height:40px;

    border-radius:10px;

    background:#e9e9e9;

}

/* shimmer animation */

.skeleton-image,
.skeleton-line,
.skeleton-price,
.skeleton-qty{

    background:linear-gradient(
        90deg,
        #eeeeee 25%,
        #f8f8f8 50%,
        #eeeeee 75%
    );

    background-size:200% 100%;

    animation:skeleton-loading 1.2s infinite;

}
#cart-loading,
#summary-loading,
#cart-content,
#summary-content{

    transition: opacity .3s ease;

}

@keyframes skeleton-loading{

    from{

        background-position:200% 0;

    }

    to{

        background-position:-200% 0;

    }

}

/* ==========================
   CART SECTION
========================== */

.cart-section{

    padding:20px 8% 80px;

}

.cart-layout{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:40px;

}
.cart-layout.empty{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:60vh;
}
.product-subtitle{

    color:#666;
    font-size:15px;
    margin-top:8px;
    margin-bottom:12px;

}

.product-meta{

    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:15px;

}

.category-tag{

    background:#eef8f2;
    color:#0a7a43;
    padding:6px 12px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;

}

.stock-tag{

    background:#f5f5f5;
    color:#444;
    padding:6px 12px;
    border-radius:30px;
    font-size:13px;
    font-weight:500;

}
.product-meta{

    display:flex;

    align-items:center;

    gap:12px;

    margin-top:8px;

}

.size-text{

    font-size:18px;

    font-weight:500;

    color:#222;

}

.stock-tag{

    display:flex;

    align-items:center;

    gap:6px;

    padding:8px 16px;

    border-radius:999px;

    background:#f2f5f3;

    color:#00743d;

    font-size:15px;

    font-weight:600;

}

/* ==========================
   PRODUCT CARD
========================== */

.cart-item{

    background:white;

    border-radius:24px;

    padding:25px;

    margin-bottom:25px;

    display:flex;

    align-items:center;

    gap:25px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}

.cart-item img{

    width:150px;

    height:150px;

    object-fit:cover;

    border-radius:18px;

}

.cart-info{

    flex:1;

}

.cart-info h3{

    font-size:28px;

    margin-bottom:10px;

    color:#006838;

}

.cart-info p{

    color:#666;

    margin-bottom:8px;

}

.remove-btn{

    background:none;
    border:none;
    color:#d96c3d;
    font-size:14px;
    font-weight:600;
    cursor:pointer;

    display:flex;
    align-items:center;
    gap:6px;

    margin-top:5px;

}

.remove-btn:hover{

    color:#b64d21;

}

.cart-right{

    text-align:right;

}

.item-price{

    color:#00723d;
    font-size:22px;
    font-weight:700;
    margin-bottom:20px;

}
.product-subtitle{

    color:#666;
    font-size:15px;
    margin-top:8px;
    margin-bottom:12px;
    line-height:1.5;

}

.product-details-row{

    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:16px;

}

.stock-tag{

    color:#0a7a43;
    font-size:14px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:6px;

}

.quantity-controls{

    display:flex;
    align-items:center;
    gap:12px;

}

.quantity-controls button{

    width:38px;
    height:38px;

    border:none;

    background:#00723d;

    color:white;

    font-size:18px;

    border-radius:8px;

    cursor:pointer;

}

.quantity-controls span{

    min-width:20px;

    text-align:center;

    font-size:18px;

    font-weight:600;

}
/* 
.quantity-controls button:hover{

    background:#00502c;

} */


/* ==========================
   SUMMARY
========================== */

.cart-summary{

    background:white;

    border-radius:24px;

    padding:30px;

    height:fit-content;

    position:sticky;

    top:120px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}

.cart-summary h2{

    color:#006838;

    margin-bottom:25px;

}

.summary-row{

    display:flex;

    justify-content:space-between;

    margin-bottom:20px;

}

.summary-divider{

    height:1px;

    background:#ddd;

    margin:20px 0;

}

.summary-total{

    display:flex;

    justify-content:space-between;

    font-size:24px;

    font-weight:700;

}

.checkout-btn{

    display:block;

    width:100%;

    background:#006838;

    color:#fff;

    text-align:center;

    padding:16px;

    border-radius:8px;

    text-decoration:none;

    font-size:20px;

    font-weight:700;

    margin-top:20px;

    transition:0.3s;

}

.checkout-btn:hover{

    background:#e07b17;

    transform:translateY(-2px);

}

.secure-checkout{

    margin-top:20px;

    text-align:center;

    color:#666;

    font-size:14px;

}

/* ==========================
   EMPTY CART
========================== */
.empty-cart{

    max-width:700px;

    width:100%;

    margin:auto;

    text-align:center;

    padding:70px 50px;

    background:#fff;

    border-radius:24px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}
.empty-cart i{

    font-size:90px;

    color:#006838;

    margin-bottom:30px;

}

.empty-cart h2{

    color:#006838;

    margin-bottom:18px;

}

.empty-cart p{

    color:#666;

    max-width:520px;

    margin:0 auto 35px;

    line-height:1.8;

}
.continue-shopping{

    display:inline-block;

    margin-top:25px;

    padding:16px 42px;

    border-radius:10px;

    background:#0b6b3a;

    color:#fff;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.continue-shopping:hover{

    background:#09572f;

    transform:translateY(-2px);

}

/* ==========================
   RECENTLY VIEWED
========================== */

.recently-viewed{
    padding:40px 8%;
    background: #fff;
}

.section-heading{
    text-align:center;
    margin-bottom:50px;
}

.section-heading h2{
    color:#006838;
    font-size:3.5rem;
    margin-bottom:10px;
}

.section-heading p{
    color:#666;
    font-size: 1.1rem;
}

.recently-viewed-wrapper{

    display:flex;

    align-items:center;

    gap:20px;

}

.recent-scroll{

    display:flex;

    gap:25px;

    overflow-x:auto;

    scroll-behavior:smooth;

    flex:1;

    scrollbar-width:none;

}

.recent-scroll::-webkit-scrollbar{
    display:none;
}
.recent-card{

    flex:0 0 260px;

    background:var(--cream);

    border-radius:20px;

    overflow:hidden;

}
.recent-arrow{

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:#006838;

    color:white;

    font-size:28px;

    cursor:pointer;

    flex-shrink:0;

}

.recent-arrow:hover{

    background:#008c52;

}

.recent-card:hover{
    transform:translateY(-6px);
}

.recent-card img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
}

.recent-content{
    padding:20px;
}

.recent-content h3{
    color:#006b3f;
    margin-bottom:8px;
}

.recent-category{
    color:#777;
    font-size:14px;
    margin-bottom:15px;
}

.recent-price{
    font-size:24px;
    font-weight:700;
    color:#006b3f;
    margin-bottom:15px;
}

.recent-btn{
    width:100%;
    background:#006b3f;
    color:white;
    border:none;
    padding:12px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
}

.recent-btn:hover{
    background:#008c52;
}

/* ==========================
   MOBILE
========================== */
@media(max-width:768px){

    .cart-item{

        flex-direction:column;

        text-align:center;

    }

    .cart-right{

        text-align:center;

    }

    .quantity-controls{

        justify-content:center;

    }

    .cart-item img{

        width:100%;

        height:260px;

    }

    .cart-hero h1{

        font-size:40px;

    }

}
/* ==========================
   REMOVE MODAL
========================== */

.modal{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.45);

    display:none;

    justify-content:center;
    align-items:center;

    z-index:10000;

}

.modal.show{

    display:flex;

}

.modal-content{

    background:#fff;

    width:90%;
    max-width:420px;

    border-radius:16px;

    padding:30px;

    text-align:center;

    animation:pop .25s ease;

}

.modal-content h2{

    color:#1b5e20;

    margin-bottom:15px;

}

.modal-content p{

    color:#555;

    line-height:1.6;

    margin-bottom:25px;

}

.modal-buttons{

    display:flex;

    gap:15px;

    justify-content:center;

}

.cancel-btn{

    padding:12px 28px;

    border:none;

    border-radius:8px;

    cursor:pointer;

    background:#ddd;

}

.remove-confirm-btn{

    padding:12px 28px;

    border:none;

    border-radius:8px;

    cursor:pointer;

    background:#b71c1c;

    color:white;

}


@keyframes pop{

    from{

        transform:scale(.9);
        opacity:0;

    }

    to{

        transform:scale(1);
        opacity:1;

    }

}
.toast{

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    background: #0f9d58;

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 18px;

    transform: translateY(-100%);

    transition: .35s ease;

    z-index: 99999;

}

.toast.show{

    transform: translateY(0);

}
/* FOOTER */

.footer{

    background:var(--emerald);

    color:white;

    width:100vw;

    margin-left:calc(50% - 50vw);
    margin-top: 70px;

}

.footer-container{

    max-width:1400px;

    margin:auto;

    padding:60px 8%;

    display:grid;

    grid-template-columns:
    2fr 1fr 1fr 1fr;

    gap:50px;

}

.footer-brand img{

    width:140px;

    background:white;

    padding:10px;

    border-radius:12px;

    margin-bottom:20px;

}

.footer-brand p{

    line-height:1.9;

    color:rgba(255,255,255,.85);

}

.footer h4{

    margin-bottom:20px;

    color:var(--gold);

    font-size:1.2rem;

}

.footer-links ul{

    list-style:none;

}

.footer-links li{

    margin-bottom:12px;

}

.footer-links a,
.footer-social a{

    text-decoration:none;

    color:white;

    transition:.3s;

}

.footer-links a:hover,
.footer-social a:hover{

    color:var(--gold);

}

.footer-contact p{

    margin-bottom:12px;

}

.footer-social{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.footer-bottom{

    text-align:center;

    padding:25px;

    border-top:
    1px solid rgba(255,255,255,.15);

}

.footer-bottom p{

    color:rgba(255,255,255,.8);

}
.footer-social h4{
    color:#d6a84f;
    font-size:1.2rem;
    margin-bottom:18px;
}
.social-icons{
    display:flex;
    gap:28px;
    align-items:center;
}

.social-icons a{
    color:#fff;
    font-size:28px;
    text-decoration:none;
    transition:0.3s ease;
}

.social-icons a:hover{
    color:#d6a84f;
    transform:translateY(-3px);
}



