html{
    margin: 0;
    padding: 0;
}
body{
    background-color: #f8f8f8;
    color: #222222;
    margin: 0 auto;
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    min-height: 100vh;
    max-width: 2000px;
    border: solid 1px #666;
    display: flex;
    flex-direction: column;   
}
main{
    flex: 1;
}
/*-----------------Global Sytling-----------*/
* {
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

a:focus:not(:focus-visible),
a:active,
.btn:focus:not(:focus-visible),
.btn:active {
  outline: none;
  box-shadow: none;
}
h1{
    font-size:25px ;
    font-weight: 700;    
}
h2{
    font-size: 25px;
}
h3{
    font-size: 20px;
    font-weight: 500;
    font-family: Arial;
}
h4{
    font-size: 18px;
    font-weight: 700;
    font-family: Arial;
}
.container{
    margin: 0 ;
    padding:0 20px;
    overflow: hidden;
}

ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
.item, .box{
    margin: 0 auto;
}

.btn{
    cursor: pointer;
    margin:10px auto 0;
    padding:7px 5px;
    width: fit-content;
    max-width:100%;
    background-color: #ff6b35;
    color: #ffffff;
    font-size:12px;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    outline: none;
    text-decoration:none;
    -webkit-user-select:none;
}
.btn:hover {
    background-color: #e2551f;
}
/* ---------- Show/hide password toggle ---------- */
.password-wrapper{
    position: relative;
    display: flex;
}
.password-wrapper input[type="password"],
.password-wrapper input[type="text"]{
    flex: 1;
    padding-right: 40px;
}
.password-toggle-btn{
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
}
.password-toggle-btn:hover{
    color: #ff6b35;
}

/*------------- Page Header----------------- */
header{
    position: sticky;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: #1a1a2e;
    color: #ffffff;
    border-bottom: solid 1px #666;
    display: block;
    margin: 0 auto;
    padding: 0;
    min-height: 50px;
    height: auto;
    width: 100%;
}

/*========================= Side bar navigation center ========================*/

#navWrapper {
    position: absolute;
    top:50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: transparent;
    display: inline-block;
}

#navToggle {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #ffffff;
    border-radius: 6px;
    font-size: 2rem;
    cursor: pointer;
}

.nav-toggle-dot{
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b30;
    border: 2px solid #1a1a2e;
    pointer-events: none;
}

.sidebar {
    position: absolute;
    top: 100%;
    left: 0;
    height: 100vh;
    max-height: 100vh;
    width: 65vw;
    max-width: 280px;
    background-color: #1a1a2e;
    padding-top: 0;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
   
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#navWrapper:hover .sidebar {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sidebar nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    display: block;
    min-height: 100%;
    background: #1a1a2e;
}

.sidebar nav ul li {
    padding: 16px 20px;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.sidebar nav ul li a{
    display: block;
    margin: 0;
    padding: 0;
}

.sidebar nav ul li:hover {
    background-color: rgba(255,255,255,0.15);
}


/*======================End of side-bar navigation styling===================*/

header .container{
    display:flex;
    align-items:center;
    justify-content:space-between;    
    flex-wrap: wrap;
    flex-direction: row;
    min-height: 50px;
    margin-left: 50px;
}    
#branding{
    font-size:20px;
    font-family: cursive;
    font-weight:1000;
    letter-spacing:1px;
    text-transform:uppercase;
    margin: 0;
    /*color: white;
    text-shadow: 
      -1px -1px 0 #ff0000,
      1px -1px 0 #00ff00,
      -1px 1px 0 #0000ff,
      1px 1px 0 #ff00ff;*/
}

nav ul{
    font-size: 12px;
    display:flex;
    flex-wrap: wrap;
    flex-direction: row;
}
nav li{
    margin: auto 15px;
    padding:0;
    padding-bottom: 0px;
    font-weight: 700;
}
nav a, a{
    color: #ffffff;
    font-family: "Work Sans", sans-serif;
    font-weight: 700;
    text-decoration:none;    
}
nav .current a {
    color: #ff6b35;
    border-bottom: 2px solid #ff6b35;
}

header .cart{
    margin: 0;
    font-size: 1.2em;
}
header img{
    max-width:30px;
    
}
header #cart-count{
    font-size: 0.90em;
}

/* main showcase styling */
#showcase{
    display: block;
    min-height: 100px;
    overflow: hidden;
    /*border: solid red 2px;*/
    
    
}
#showcase .container{
    position: relative;
    width: 100%;
    /*border: solid green 2px;*/
}
#showcase .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%);
  z-index: 1;
}
#showcase img{
   width: 100%;
   height: auto;
   max-height:350px;
   
}
.slider-wrapper {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

.slider-track {
        display: flex;
        transition: transform 0.6s ease-in-out;
    }

.slide {
        width: 100%;
        flex-shrink: 0;
        user-select: none;
        -webkit-user-drag: none;
    }

.quote {
        display:block;
        color: #ffffff;
        position: absolute;
        top: 50%;
        left: 5%;
        transform: translateY(-50%);
        z-index: 2;
    }
#showcase .quote *{
    margin: 10px auto;
}
.dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 3;
    }

.dot {
        margin: 2px;;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #fff;
        border: 1px solid #999;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

.dot.active {
        background-color: #000;
        border-color: #000;
    }
    
    /*===*/
    
#showcase h1{
    font-family: "Poppins", sans-serif;
}
#showcase p{
    font-family: "Courier New", monospace;
    font-weight: 700;
}
    
/* Products */
#products{
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
}

#products h2{
    margin: 0 auto 10px;
}

#products .item{
    /*margin: 0 auto;*/
    margin-bottom: 15px;
    padding: 20px 0px;
    /*padding-bottom: 10px;*/
    width: 200px;
    min-height: 350px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#products .item img{
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f7f7f9;
    border-radius: 12px;
}
#products .item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* About Section */
#about-us{
    margin-top: 20px;
}
#about-us .boxes{
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
}
#about-us h1{
    margin: 10px 0;
}
#about-us p{
    text-align: justify;
    margin: 0;
    line-height: 1.6;
}
.about{
    background: #1a1a2e;
    border-radius: 10px;
    color: white;
}
#about-us aside{
    /* Side by side when there's room for both at a readable width,
       automatically stacks full-width on narrower screens — no fixed
       breakpoint needed. */
    flex: 1 1 320px;
    max-width: 100%;
    padding: 24px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
aside.wardrobe{
    flex: 1 1 320px;
    padding: 0;
    overflow: hidden;
}
aside.wardrobe > img{
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 440px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}


/* footer */

footer{
    background-color: #111827;
    color: #ffffff;
    margin: 0 auto;
    padding: 20px;
    min-height: 100px;
    width: 100%;
    height: auto;
}
footer ul{
    display: block;
    padding: 0;
}
/*footer nav a{
    text-decoration: none;
    color: #ffffff;
}*/
footer #links li{
    margin: 0;
    margin-bottom: 10px;
    
}
footer .social-button li{
    display: inline-block;
    padding: 5px;
}
footer #links img{
    max-width: 50px;
    width: 20px;
    height: auto;
}
.copyright{
    margin: 20px auto 0;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Flex Boxes */
.boxes{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

/*===================================================
STYLE SHEET FOR DIFFERENT SCREEN SIZES DEVICE
=====================================================*/

/* Media queires screen size 1000px above*/
@media(min-width:1000px){
    body{
        font: 18px/1.5 Arial, Helvetica, sans-serif;
    }
    #branding, h1, h2{
        font-size: 26px;
    }
    h3, h4{
        font-size: 20px;
    }
    p{
        font-size: 16px;
    }
    .btn{
        width: 150px;
        font-size: 16px;
        padding: 10px 10px;
        border-radius: 10px;
        
    }
    header{
        padding: 15px 0 10px;
        min-height: 100px;
        height: auto;
}
    nav ul{
        font-size:18px;
        flex-direction: row;
}
    nav ul li{
        margin: auto 50px;
        padding-bottom: 10px;
}

    header img{
        max-width:50px;
    
}

    #showcase img{
        max-height: 700px;
    }
    #products .item{
    width: 350px;
    min-height: 400px;
    border-radius: 20px;
}

}


/* Media queires screen size 1500px above*/
@media(min-width:1500px){
    body{
        font: 22px/1.5 Arial, Helvetica, sans-serif;
    }
    #branding, h1, h2{
        font-size: 32px;
    }
    h3, h4{
        font-size: 28px;
    }
    p{
        font-size: 22px;
    }
    .btn{
        width: 200px;
        font-size: 22px;
        padding: 15px 15px;
        border-radius: 10px;
        
    }
    header{
        padding: 15px 0 10px;
        min-height: 50px;
        height: auto;
}
header .container{
    margin-left: 100px;
}
#navToggle {
    width: 50px;
    height: 50px;
    font-size: 3rem;
}
    nav ul{
        font-size:22px;
        flex-direction: row;
}
    nav ul li{
        margin: auto 50px;
        padding-bottom: 10px;
}

    header img{
        max-width:50px;
    
}

    #showcase img{
        max-height: 700px;
    }
    #products .item{
    width: 350px;
    min-height: 400px;
    border-radius: 20px;
}

}


/*----------- Media queires screen size 2000px above------------*/
@media(min-width:2000px){
    body{
        font: 28px/1.5 Arial, Helvetica, sans-serif;
    }
    #branding, h1, h2{
        font-size: 40px;
    }
    h3, h4{
        font-size: 36px;
    }
    p{
        font-size: 28px;
    }
    .btn{
        width: 250px;
        font-size: 30px;
        padding: 20px;
        border-radius: 20px;
    }
    header{
        padding: 25px 0 20px;
        /*min-height: 50px;*/
        height: auto;
}
#navToggle {
    width: 100px;
    height: 100px;
    font-size: 3rem;
}
    nav ul{
        font-size:30px;
        flex-direction: row;
}
    nav ul li{
        margin: auto 70px;
        padding-bottom: 10px;
}

    header img{
        max-width:100px;
    
}

    #showcase img{
        max-height: 1000px;
    }
    #products .item{
    width: 450px;
    min-height: 550px;
    padding: 40px 0px;
    border-radius: 20px;
}

footer #links img{
    max-width: 50px;
    width:40px;
    height: auto;
}

}

/*------------------- Media queires screen size 780px bellow----------------*/
@media(max-width:780px){
    body{
        font: 14px/1.5 Arial, Helvetica, sans-serif;
    }
    #branding, h1, h2{
        font-size: 20px;
    }
    h3, h4{
        font-size: 18px;
    }
    p{
        font-size: 14px;
    }
    .btn{
        width: 120px;
        font-size: 14px;
        padding: 10px;
        border-radius: 10px;
    }
    header{
        padding: 5px 0 5px;
        height: auto;
}
#navToggle {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
}
    nav ul{
        font-size:14px;
        flex-direction: row;
}
    nav ul li{
        margin: auto 20px;
        padding-bottom: 0;
}

    header img{
        max-width:40px;
    
}

    #showcase img{
        max-height: 500px;
        height: 300px;
    }
    #products .item{
    margin-bottom: 20px;
    width: 150px;
    min-height: 350px;
    max-width: 200px;
    border-radius: 20px;
}

footer #links img{
    max-width: 30px;
    width:20px;
    height: auto;
}
.boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.boxes > * {
  flex: 0 0 calc(50% - 5px); /* half the gap subtracted from each */
}
}

/* --------------------------Media queires screen size 580px bellow--------------*/
@media(max-width:580px){
    body{
        font: 12px/1.5 Arial, Helvetica, sans-serif;
    }
    #branding, h1, h2{
        font-size: 18px;
    }
    #branding{
        margin: 0 auto;
    }
    h3, h4{
        font-size: 16px;
    }
    p{
        font-size: 12px;
    }
    .btn{
        width: 100px;
        padding: 8px;
        font-size: 12px;
        border-radius: 5px;
    }
    .container{
        padding: 0 0;
        overflow: wrap;
    }
    header{
        padding: 5px 5px 5px;
        height: auto;
}
    header .container{
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-left: 0;
    }
    #branding{
        flex: 0 0 100%;
        text-align: center;
        margin: 0 auto 4px;
    }
    nav:not(.sidebar nav){
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
    }
    header .cart{
        flex-shrink: 0;
    }
nav ul{
    font-size: 12px;
}    
nav li{
    margin: 5px;
}
.sidebar{
    padding-top: 15px;
    left: -5px;
}

#showcase img{
        max-height: 350px;
        height: 300px;
    }
   
#products .item{
    margin-bottom: 20px;
    padding: 30px 0px;
    min-height: 300px;
    min-width: /*70%*/;
    border-radius: 20px;
}

footer {
   text-align: center;
}

footer #links img{
    max-width: 30px;
    width:15px;
    height: auto;
}
.boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.boxes > * {
  flex: 0 0 calc(50% - 5px); /* half the gap subtracted from each */
}
#about-us .boxes{
    gap: 14px;
}
#about-us aside{
    padding: 18px;
}
}

/*===================================================
   STORE FUNCTIONALITY: cart drawer, wishlist drawer,
   product modal, auth modal, search, toast, admin
=====================================================*/

/* Product card needs relative positioning for the wishlist heart */
#products .item, #shop .item {
    position: relative;
}

.wishlist-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #1a1a2e;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.wishlist-heart.active,
.wishlist-heart i.bi-heart-fill {
    color: #ff6b35;
}

.empty-msg{
    padding: 20px;
    text-align: center;
    color: #888;
}

/* ---------- Search bar (shop page) ---------- */
.search-bar{
    max-width: 500px;
    margin: 0 auto 20px;
    display: flex;
    gap: 8px;
    padding: 0 10px;
}
.search-bar input{
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}
.search-bar input:focus{
    outline: none;
    border-color: #ff6b35;
}

/* ---------- Overlay shared by drawers + modals ---------- */
.drawer-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    z-index: 1998;
}
.drawer-overlay.open{
    opacity: 1;
    visibility: visible;
}

/* ---------- Cart / Wishlist drawers ---------- */
.drawer{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.drawer.open{
    transform: translateX(0);
}
.drawer-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #eee;
    background: #1a1a2e;
    color: #fff;
}
.drawer-close{
    background: none;
    border: none;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.drawer-items{
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
.drawer-item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.drawer-item img{
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}
.drawer-item-info{
    flex: 1;
}
.drawer-item-name{
    font-weight: 700;
    font-size: 13px;
}
.drawer-item-price{
    color: #666;
    font-size: 12px;
}
.qty-controls{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.qty-controls button{
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}
.remove-btn{
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
}
.remove-btn:hover{
    color: #e2551f;
}
.drawer-footer{
    padding: 16px;
    border-top: 1px solid #eee;
}
.drawer-total{
    font-weight: 700;
    margin-bottom: 10px;
    text-align: right;
}

/* ---------- Product details modal ---------- */
.modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    z-index: 2000;
    padding: 20px;
}
.modal-overlay.open{
    opacity: 1;
    visibility: visible;
}
.modal-card{
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 20px 20px;
}
.modal-card-small{
    max-width: 360px;
}
.modal-card .drawer-close{
    position: absolute;
    top: 10px;
    right: 14px;
    color: #333;
}
.modal-body{
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.modal-body img{
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
}
.modal-price{
    color: #ff6b35;
    font-weight: 700;
    font-size: 18px;
    margin: 6px 0;
}
.modal-desc{
    color: #555;
    margin-bottom: 10px;
}
.qty-row{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.qty-row input{
    width: 60px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.modal-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-outline{
    background: #fff;
    color: #ff6b35;
    border: 1px solid #ff6b35;
}
.btn-outline:hover{
    background: #fff3ee;
}
.btn-outline.active{
    background: #ff6b35;
    color: #fff;
}

/* ---------- Auth modal (checkout login/signup) ---------- */
.auth-tabs{
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.auth-tab{
    flex: 1;
    padding: 8px;
    border: none;
    background: #eee;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}
.auth-tab.active{
    background: #1a1a2e;
    color: #fff;
}
.auth-error{
    color: #c0392b;
    font-size: 13px;
    min-height: 18px;
}
#authForm{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#authForm input{
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* ---------- Toast ---------- */
.toast{
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a2e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 2100;
    font-size: 13px;
}
.toast.show{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Admin dashboard ---------- */
.admin-wrap{
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}
.admin-login{
    max-width: 340px;
    margin: 80px auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}
.admin-login input{
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
.admin-form{
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.admin-form input, .admin-form textarea{
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    font-family: inherit;
}
.admin-form label.checkbox-label{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.admin-form .full-width{
    grid-column: 1 / -1;
}
.admin-table{
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.admin-table th, .admin-table td{
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.admin-table th{
    background: #1a1a2e;
    color: #fff;
}
.admin-table img{
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}
.admin-table .btn{
    margin: 0 4px 0 0;
    padding: 5px 8px;
    font-size: 11px;
}
.featured-toggle{
    cursor: pointer;
}

/* ---------- Admin dashboard tabs ---------- */
.admin-tabs{
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.admin-tab-btn{
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
}
.admin-tab-btn.active{
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}
.status-select{
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.suspend-btn.suspended{
    background: #c0392b;
}
.broadcast-item{
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

/* ---------- Admin: banner management ---------- */
.admin-banner-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.banner-card{
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.banner-card img{
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
.banner-card .delete-btn{
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}
.banner-card .default-tag{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    text-align: center;
    padding: 3px 0;
}

/* ---------- Admin: user cards ---------- */
.user-card{
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 16px;
    margin-bottom: 14px;
}
.user-card-top{
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.user-card-name{
    font-weight: 700;
    font-size: 15px;
}
.user-card-meta{
    color: #888;
    font-size: 12px;
}
.user-card-badge{
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
}
.user-card-badge.suspended{
    background: #fdecea;
    color: #c0392b;
}
.user-card-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.user-card-actions .btn{
    padding: 6px 12px;
    font-size: 12px;
    margin: 0;
}
.user-orders-panel{
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}
.user-orders-panel.open{
    display: block;
}

/* ---------- Admin: live chat ---------- */
.chat-admin-layout{
    display: flex;
    gap: 16px;
    min-height: 420px;
}
.chat-list{
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-y: auto;
    max-height: 500px;
}
.chat-list-item{
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 13px;
}
.chat-list-item:hover, .chat-list-item.active{
    background: #f7f8fa;
}
.chat-list-item .name{
    font-weight: 700;
}
.chat-list-item .preview{
    color: #888;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-list-item .unread-dot{
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b35;
    margin-right: 6px;
}
.chat-thread-wrap{
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-thread-header{
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    font-size: 14px;
}
.chat-thread{
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 300px;
}
.chat-bubble{
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}
.chat-bubble.from-user{
    align-self: flex-start;
    background: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 2px;
}
.chat-bubble.from-admin{
    align-self: flex-end;
    background: #ff6b35;
    color: #fff;
    border-bottom-right-radius: 2px;
}
.chat-bubble .chat-time{
    display: block;
    font-size: 10px;
    opacity: 0.7;
    margin-top: 3px;
}
.chat-reply-form{
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #f0f0f0;
}
.chat-reply-form input{
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

@media (max-width: 700px){
    .chat-admin-layout{
        flex-direction: column;
    }
    .chat-list{
        width: 100%;
        max-height: 200px;
    }
}

/* ---------- Customer-facing chat page ---------- */
.chat-page-wrap{
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 65vh;
    overflow: hidden;
}
.chat-page-header{
    padding: 16px;
    background: #1a1a2e;
    color: #fff;
    font-weight: 700;
}
.chat-page-thread{
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Notifications page layout ---------- */
.notif-section-title{
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}
.notif-card{
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 14px 16px;
    margin-bottom: 12px;
}
.notif-card .notif-date{
    color: #ff6b35;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 4px;
}
.notif-card p{
    margin: 0;
    font-size: 14px;
    color: #333;
}
.notif-prefs-card{
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---------- Shop category filter ---------- */
.shop-filters{
    max-width: 500px;
    margin: 0 auto 20px;
    display: flex;
    gap: 10px;
    padding: 0 10px;
}
.shop-filters select{
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    background: #fff;
}

/* ---------- Unread notifications dot (sidebar) ---------- */
.sidebar nav ul li{
    position: relative;
}
.nav-unread-dot{
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b35;
    margin-right: 6px;
}

/* ---------- Admin search inputs ---------- */
.admin-search-input{
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 16px;
}
.admin-search-input:focus{
    outline: none;
    border-color: #ff6b35;
}

/* ---------- Guest top bar (shown to anonymous visitors) ---------- */
.guest-topbar{
    position: relative;
    z-index: 1500;
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 14px;
    font-size: 12px;
    flex-wrap: wrap;
    text-align: center;
}
.guest-topbar-actions{
    display: flex;
    gap: 8px;
}
.guest-topbar button{
    border: 1px solid #ff6b35;
    background: transparent;
    color: #fff;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.guest-topbar .guest-signup-btn{
    background: #ff6b35;
}
.guest-topbar button:hover{
    opacity: 0.9;
}

/* ---------- Real-time slide-in toast (new notification/chat while online) ---------- */
.slide-toast{
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -120%);
    width: min(420px, 92vw);
    background: #1a1a2e;
    color: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    padding: 14px 16px;
    z-index: 3000;
    transition: transform 0.35s ease;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.slide-toast.show{
    transform: translate(-50%, 0);
}
.slide-toast .slide-toast-icon{
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.slide-toast .slide-toast-body{
    flex: 1;
    min-width: 0;
}
.slide-toast .slide-toast-title{
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
}
.slide-toast .slide-toast-msg{
    font-size: 12px;
    color: #d8d8e2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.slide-toast .slide-toast-close{
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-table-wrap{
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---------- Admin: Email tab ---------- */
.email-audience-btn{
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
}
.email-audience-btn.active{
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}
.email-recipient-list{
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 10px;
}
.email-recipient-row{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
}
.email-recipient-row:last-child{
    border-bottom: none;
}

/* ---------- Notification list delete button ---------- */
.broadcast-item{
    position: relative;
    padding-right: 70px;
}
.broadcast-item .delete-broadcast-btn{
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    color: #999;
}
.broadcast-item .delete-broadcast-btn:hover{
    color: #c0392b;
    border-color: #c0392b;
}
