/* ==========================================================
   GLOBAL STYLES
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f5f5f5;
    overflow-x:hidden;
}

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

a{
    text-decoration:none;
}

hr{
    border:none;
    border-top:1px solid #eee;
    margin:15px 0;
}

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

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
    padding:18px 40px;
    background:#ffffff;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo p{
    margin-top:6px;
    color:#777;
    font-size:13px;
    font-weight:600;
}

.search-box{
    display:flex;
    align-items:center;
    width:100%;
    max-width:500px;
}

.search-box input{
    flex:1;
    min-width:0;
    padding:12px 18px;
    border:2px solid #e63946;
    border-right:none;
    border-radius:30px 0 0 30px;
    outline:none;
    font-size:15px;
}

.search-box button{
    padding:12px 20px;
    background:#e63946;
    color:#fff;
    border:none;
    border-radius:0 30px 30px 0;
    cursor:pointer;
    font-weight:bold;
    white-space:nowrap;
    transition:.3s;
}

.search-box button:hover{
    background:#222;
}

.right-header{
    display:flex;
    align-items:center;
    gap:25px;
}

.contact{
    text-align:right;
    font-size:13px;
    line-height:1.8;
    color:#555;
}

.header-icons{
    display:flex;
    align-items:center;
    gap:18px;
}

.header-icons a{
    text-decoration:none;
    color:#222;
    font-weight:bold;
    padding:8px 12px;
    border-radius:8px;
    transition:.3s;
}

.header-icons a:hover{
    background:#e63946;
    color:#fff;
}

/* ==========================================================
   NAVIGATION MENU
========================================================== */

nav a{
    color:#ff6b00;
    text-decoration:none;
    margin-left:20px;
    transition:.3s;
}

nav a:hover{
    color:#e63946;
}

.menu{
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:30px;
    padding:15px;
    position:sticky;
    top:88px;
    z-index:999;
}

.menu a{
    text-decoration:none;
    color:#222;
    font-weight:bold;
    transition:.3s;
    padding:6px 0;
}

.menu a:hover{
    color:#e63946;
    border-bottom:3px solid #e63946;
}

/* ==========================================================
   ANNOUNCEMENT BAR
========================================================== */

.announcement{
    background:#ff6b00;
    border:none;
    padding:10px;
    color:#fff;
    font-weight:bold;
    font-size:14px;
    text-align:center;
}

/* ==========================================================
   HERO SECTION
========================================================== */

.hero{
    position:relative;
    min-height:520px;
    background:#ffffff;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    overflow:hidden;
    padding:60px 20px;
}

.hero::before{
    content:"";
    position:absolute;
    width:700px;
    height:700px;
    background:url("images/logo.png") no-repeat center;
    background-size:contain;
    opacity:.07;
    filter:blur(2px);
    z-index:0;
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
}

.hero h1{
    font-size:60px;
    color:#222;
    margin-bottom:20px;
    line-height:1.2;
}

.hero p{
    font-size:24px;
    color:#e63946;
    font-weight:bold;
    margin-bottom:15px;
}

.hero-text{
    display:block;
    color:#555;
    font-size:18px;
    line-height:1.8;
    margin-bottom:40px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

.shop-btn{
    background:#e63946;
    color:#ffffff;
    text-decoration:none;
    padding:15px 35px;
    border-radius:8px;
    font-weight:bold;
    transition:.3s;
    display:inline-block;
}

.shop-btn:hover{
    background:#222;
}

.view-btn{
    background:#ffffff;
    color:#222;
    border:2px solid #e63946;
    text-decoration:none;
    padding:15px 35px;
    border-radius:8px;
    font-weight:bold;
    transition:.3s;
    display:inline-block;
}

.view-btn:hover{
    background:#e63946;
    color:#ffffff;
}

/* ==========================================================
   WHY CHOOSE INTER MART
========================================================== */

.why-us{
    background:#f8f9fa;
    padding:70px 20px;
    text-align:center;
}

.why-us h2{
    font-size:38px;
    color:#222;
    margin-bottom:50px;
}

.why-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:25px;
}

.why-card{
    background:#fff;
    padding:30px 20px;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.why-card:hover{
    transform:translateY(-8px);
}

.icon{
    font-size:50px;
    margin-bottom:15px;
}

.why-card h3{
    color:#e63946;
    margin-bottom:10px;
}

.why-card p{
    color:#666;
    line-height:1.7;
}

/* ==========================================================
   CATEGORIES
========================================================== */

.categories{
    padding:70px 20px;
    background:#fff;
    text-align:center;
}

.categories h2{
    font-size:38px;
    color:#222;
    margin-bottom:50px;
}

.category-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.category-card{
    background:#f8f9fa;
    padding:35px 20px;
    border-radius:15px;
    text-decoration:none;
    color:#222;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
    text-align:center;
    font-size:40px;
}

.category-card:hover{
    background:#e63946;
    color:#fff;
    transform:translateY(-8px);
}

.category-card h3{
    margin-top:20px;
    font-size:22px;
}

.categories-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    padding:30px;
}

.categories-grid .category-card{
    background:#fff;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.categories-grid .category-card:hover{
    transform:translateY(-5px);
    background:#fff7e6;
    color:#000;
}

/* ==========================================================
   PRODUCTS SECTION
========================================================== */

.products{
    padding:50px 20px;
}

.products h2{
    text-align:center;
    margin-bottom:40px;
    color:#222;
}

.category-title{
    text-align:center;
    font-size:32px;
    color:#ff6b00;
    margin:40px 0 30px;
    font-weight:bold;
}

.product-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    align-items:stretch;
}

.product-card{
    width:100%;
    background:#ffffff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    transition:.3s;
    display:flex;
    flex-direction:column;
    text-align:center;
    position:relative;
}

.product-card:hover{
    transform:translateY(-8px);
}

.product-card img{
    width:100%;
    height:230px;
    object-fit:contain;
    padding:15px;
}

.product-card h3{
    color:#222;
    font-size:20px;
    margin:10px 15px;
}

.description{
    font-size:14px;
    color:#555;
    line-height:1.6;
    padding:0 15px;
    margin:10px 0;
    text-align:center;
    min-height:50px;
}

.rating{
    margin:5px 0;
}

.price{
    color:#ff6b00;
    font-size:22px;
    font-weight:bold;
    margin-bottom:15px;
}

.product-buttons{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:auto;
    padding:15px;
}

.product-card button{
    background:#ff6b00;
    color:#ffffff;
    border:none;
    padding:12px 20px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

.product-card button:hover{
    background:#222;
}

/* ==========================================================
   PRODUCT BADGES
========================================================== */

.new-badge{
    position:absolute;
    top:12px;
    left:12px;
    background:linear-gradient(135deg,#ff6b00,#ff3b30);
    color:#fff;
    font-size:11px;
    font-weight:700;
    padding:6px 12px;
    border-radius:20px;
    text-transform:uppercase;
    letter-spacing:1px;
    box-shadow:0 4px 10px rgba(0,0,0,.2);
    z-index:10;
}

.out-stock-badge{
    position:absolute;
    top:10px;
    left:10px;
    background:red;
    color:#fff;
    padding:5px 10px;
    border-radius:5px;
    font-size:12px;
    font-weight:bold;
    z-index:10;
}

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

.back-btn{
    display:inline-block;
    margin:30px;
    padding:12px 25px;
    background:#ff6b00;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
    transition:.3s;
}

.back-btn:hover{
    background:#222;
}

.product-details{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:60px;
    padding:60px;
    background:#fff;
    margin:40px;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
}

.product-image{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
}

.product-image img{
    width:320px;
    max-width:100%;
    height:auto;
    border-radius:10px;
}

.second-image{
    width:220px;
    max-width:100%;
    border:2px solid #ddd;
    padding:10px;
    border-radius:10px;
    transition:.3s;
}

.second-image:hover{
    transform:scale(1.05);
    border-color:#ff6b00;
}

.product-info{
    max-width:500px;
}

.product-info h1{
    color:#222;
    margin-bottom:15px;
}

.product-info h3{
    margin-top:25px;
    color:#ff6b00;
}

.specifications{
    margin-top:20px;
    list-style:none;
    padding:0;
    line-height:2;
}

.specifications li{
    font-size:16px;
    color:#333;
}

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

.wishlist-btn{
    background:#fff;
    color:#ff6b00;
    border:2px solid #ff6b00;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

.cart-btn{
    background:#ff6b00;
    color:#fff;
    border:none;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

.wishlist-btn:hover{
    background:#ff6b00;
    color:#fff;
}

.cart-btn:hover{
    background:#222;
}

/* ==========================================================
   SHOPPING CART
========================================================== */

.cart-page{
    width:95%;
    max-width:1100px;
    margin:50px auto;
}

#cart-items{
    background:#fff;
    border-radius:15px;
    padding:30px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    min-height:200px;
}

.cart-product{
    display:flex;
    align-items:center;
    gap:20px;
    padding:15px;
    border:1px solid #ddd;
    border-radius:10px;
    margin-bottom:15px;
    background:#fff;
}

.cart-image{
    width:90px;
    height:90px;
    object-fit:contain;
    border-radius:8px;
    flex-shrink:0;
}

.cart-details{
    flex:1;
}

.cart-details h3{
    margin-bottom:8px;
    font-size:20px;
    color:#222;
}

.cart-details p{
    margin:5px 0;
    color:#555;
}

.cart-summary{
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.cart-total{
    text-align:right;
    margin-top:20px;
    font-size:22px;
    font-weight:bold;
    color:#ff6600;
}

.checkout-btn{
    text-align:right;
    margin-top:20px;
}

.checkout-btn button{
    padding:12px 25px;
    font-size:18px;
    background:#ff6600;
    color:#fff;
    border:none;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
}

.checkout-btn button:hover{
    background:#e65c00;
}

/* ==========================================================
   COUPON
========================================================== */

.coupon-input{
    width:100%;
    padding:12px;
    margin:10px 0;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:16px;
}

.apply-coupon-btn{
    width:100%;
    padding:12px;
    background:#ff6600;
    color:#fff;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-size:16px;
    font-weight:bold;
}

.apply-coupon-btn:hover{
    background:#e65c00;
}

#couponMessage{
    margin-top:10px;
    font-weight:bold;
}

#discountRow{
    color:green;
}

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

.checkout-container{
    width:95%;
    max-width:500px;
    margin:40px auto;
    padding:30px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,.12);
}

.checkout-container h2{
    margin-bottom:15px;
    color:#222;
}

.checkout-container input,
.checkout-container textarea{
    width:100%;
    padding:12px;
    margin:10px 0;
    font-size:16px;
    border:1px solid #ddd;
    border-radius:8px;
    outline:none;
    transition:.3s;
}

.checkout-container input:focus,
.checkout-container textarea:focus{
    border:2px solid #ff6600;
}

.checkout-container button{
    width:100%;
    padding:15px;
    margin-top:15px;
    font-size:18px;
    font-weight:bold;
    background:#ff6600;
    color:#fff;
    border:none;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
}

.checkout-container button:hover{
    background:#e65c00;
}

/* ==========================================================
   FORMS
========================================================== */

textarea{
    width:100%;
    padding:12px;
    margin:10px 0;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:16px;
    resize:vertical;
    font-family:Arial,sans-serif;
}

/* ==========================================================
   LOGIN / REGISTER
========================================================== */

.login-container{
    max-width:420px;
    width:95%;
    margin:50px auto;
    padding:30px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 0 15px rgba(0,0,0,.15);
    text-align:center;
}

.login-container img{
    margin-bottom:15px;
}

.login-container h2{
    color:#ff6b00;
    margin-bottom:25px;
}

.login-container input{
    width:100%;
    padding:12px;
    margin:10px 0;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:16px;
}

.login-container input:focus{
    border:2px solid #ff6b00;
    outline:none;
}

.login-container button{
    width:100%;
    padding:12px;
    margin-top:10px;
    background:#ff6600;
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

.login-container button:hover{
    background:#e65c00;
}

.login-container a{
    color:#ff6b00;
    text-decoration:none;
    font-weight:bold;
}

.login-container a:hover{
    text-decoration:underline;
}

/* ==========================================================
   CUSTOMER DASHBOARD
========================================================== */

.dashboard-container{
    width:95%;
    max-width:500px;
    margin:40px auto;
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 0 15px rgba(0,0,0,.15);
    text-align:center;
}

.dashboard-container img{
    margin:0 auto 15px;
}

.dashboard-menu{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:30px;
}

.dashboard-menu a{
    background:#ff6600;
    color:#fff;
    padding:15px;
    text-decoration:none;
    border-radius:8px;
    font-size:18px;
    font-weight:bold;
    transition:.3s;
    display:block;
}

.dashboard-menu a:hover{
    background:#e65c00;
}

.profile-card{
    text-align:left;
    background:#f8f8f8;
    padding:20px;
    border-radius:10px;
    margin-top:20px;
}

.profile-card p{
    margin:8px 0;
    font-size:17px;
    line-height:1.6;
}

/* ==========================================================
   ORDER CARD
========================================================== */

.order-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:12px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.order-card h3{
    color:#ff6600;
    margin-bottom:10px;
}

.order-card hr{
    border:none;
    border-top:1px solid #eee;
    margin:10px 0;
}

.order-card ul{
    list-style:disc;
    padding-left:20px;
    margin:10px 0;
}

.order-card ul li{
    margin:5px 0;
    font-size:15px;
    color:#333;
}

/* ==========================================================
   ADMIN PANEL - NEW DESIGN
========================================================== */

.admin-layout{
    display:flex;
    min-height:100vh;
    background:#f0f2f5;
}

.admin-sidebar{
    width:250px;
    background:#1a1f36;
    color:#fff;
    display:flex;
    flex-direction:column;
    flex-shrink:0;
    position:sticky;
    top:0;
    height:100vh;
    overflow-y:auto;
}

.sidebar-logo{
    padding:24px 20px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.sidebar-logo img{
    margin:0 auto;
}

.sidebar-nav{
    flex:1;
    padding:12px 0;
}

.sidebar-nav a{
    display:flex;
    align-items:center;
    gap:14px;
    padding:13px 24px;
    color:rgba(255,255,255,.65);
    text-decoration:none;
    font-size:15px;
    font-weight:500;
    transition:.2s;
    border-left:3px solid transparent;
}

.sidebar-nav a i{
    width:20px;
    text-align:center;
    font-size:16px;
}

.sidebar-nav a:hover{
    color:#fff;
    background:rgba(255,255,255,.06);
}

.sidebar-nav a.active{
    color:#fff;
    background:rgba(255,255,255,.1);
    border-left-color:#6c5ce7;
}

.sidebar-logout{
    padding:16px 20px;
    border-top:1px solid rgba(255,255,255,.08);
}

.sidebar-logout a{
    display:flex;
    align-items:center;
    gap:14px;
    padding:13px 20px;
    color:#fff;
    background:#e74c3c;
    text-decoration:none;
    font-size:15px;
    font-weight:600;
    border-radius:10px;
    transition:.2s;
}

.sidebar-logout a:hover{
    background:#c0392b;
}

.sidebar-logout a i{
    width:20px;
    text-align:center;
}

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

.admin-main{
    flex:1;
    padding:30px;
    overflow-y:auto;
}

.admin-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.admin-topbar h1{
    font-size:26px;
    color:#1a1f36;
    font-weight:700;
}

.admin-topbar h1 i{
    margin-right:10px;
    color:#6c5ce7;
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:16px;
}

.topbar-icon{
    width:42px;
    height:42px;
    border-radius:12px;
    border:1px solid #e0e0e0;
    background:#fff;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    color:#555;
    transition:.2s;
}

.topbar-icon:hover{
    background:#f5f5f5;
}

.topbar-avatar{
    width:42px;
    height:42px;
    border-radius:12px;
    background:linear-gradient(135deg,#6c5ce7,#a29bfe);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:14px;
}

/* ==========================================================
   STATS CARDS
========================================================== */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:24px;
}

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

.stat-card{
    background:#fff;
    padding:22px;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:18px;
    box-shadow:0 1px 4px rgba(0,0,0,.06);
    transition:.2s;
}

.stat-card:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(0,0,0,.1);
}

.stat-icon{
    width:52px;
    height:52px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    flex-shrink:0;
}

.stat-icon.blue{ background:#e8f0fe; color:#4285f4; }
.stat-icon.green{ background:#e6f4ea; color:#34a853; }
.stat-icon.purple{ background:#f3e8fd; color:#9c27b0; }
.stat-icon.orange{ background:#fef3e2; color:#f57c00; }
.stat-icon.yellow{ background:#fff8e1; color:#fbc02d; }
.stat-icon.red{ background:#fde7e7; color:#e74c3c; }
.stat-icon.teal{ background:#e0f2f1; color:#009688; }

.stat-info p{
    font-size:13px;
    color:#888;
    margin-bottom:4px;
}

.stat-info h2{
    font-size:24px;
    color:#1a1f36;
    font-weight:700;
}

/* ==========================================================
   ADMIN TABLES & STATUS BADGES
========================================================== */

.table-card{
    background:#fff;
    border-radius:14px;
    box-shadow:0 1px 4px rgba(0,0,0,.06);
    overflow:hidden;
    margin-bottom:24px;
}

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

.data-table th{
    padding:14px 18px;
    text-align:left;
    font-size:13px;
    font-weight:600;
    color:#888;
    text-transform:uppercase;
    letter-spacing:.5px;
    border-bottom:1px solid #f0f0f0;
    background:#fafafa;
}

.data-table td{
    padding:14px 18px;
    font-size:14px;
    color:#333;
    border-bottom:1px solid #f5f5f5;
}

.data-table tr:hover{
    background:#f9f9ff;
}

.data-table tr:last-child td{
    border-bottom:none;
}

.status-badge-pill{
    display:inline-block;
    padding:5px 14px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
}

.status-pending{ background:#fff3cd; color:#856404; }
.status-confirmed{ background:#d4edda; color:#155724; }
.status-processing{ background:#cce5ff; color:#004085; }
.status-picked{ background:#e2d9f3; color:#5a3d8a; }
.status-shipped{ background:#fff3cd; color:#856404; }
.status-delivered{ background:#d1ecf1; color:#0c5460; }
.status-cancelled{ background:#f8d7da; color:#721c24; }

/* ==========================================================
   ADMIN ACTION BUTTONS
========================================================== */

.action-eye,
.action-approve,
.action-edit,
.action-delete{
    width:34px;
    height:34px;
    border-radius:8px;
    border:none;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    transition:.2s;
    margin:0 3px;
}

.action-eye{
    background:#e8f0fe;
    color:#4285f4;
}

.action-eye:hover{
    background:#4285f4;
    color:#fff;
}

.action-edit{
    background:#e8f0fe;
    color:#6c5ce7;
}

.action-edit:hover{
    background:#6c5ce7;
    color:#fff;
}

.action-approve{
    background:#e6f4ea;
    color:#34a853;
}

.action-approve:hover{
    background:#34a853;
    color:#fff;
}

.action-delete{
    background:#fde7e7;
    color:#e74c3c;
}

.action-delete:hover{
    background:#e74c3c;
    color:#fff;
}

/* ==========================================================
   ORDER TABS
========================================================== */

.order-tabs{
    display:flex;
    gap:8px;
    margin-bottom:24px;
    flex-wrap:wrap;
}

.tab-btn{
    padding:10px 22px;
    border:1px solid #e0e0e0;
    border-radius:10px;
    background:#fff;
    color:#666;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    transition:.2s;
}

.tab-btn:hover{
    border-color:#6c5ce7;
    color:#6c5ce7;
}

.tab-btn.active{
    background:#6c5ce7;
    color:#fff;
    border-color:#6c5ce7;
}

/* ==========================================================
   TABLE PAGINATION
========================================================== */

.table-pagination{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 20px;
    border-top:1px solid #f0f0f0;
}

.table-pagination p{
    font-size:14px;
    color:#888;
}

.pagination-btns{
    display:flex;
    gap:6px;
}

.pagination-btns button{
    width:36px;
    height:36px;
    border-radius:8px;
    border:1px solid #e0e0e0;
    background:#fff;
    color:#555;
    cursor:pointer;
    font-size:14px;
    font-weight:500;
    transition:.2s;
}

.pagination-btns button:hover{
    border-color:#6c5ce7;
    color:#6c5ce7;
}

.pagination-btns button.active{
    background:#6c5ce7;
    color:#fff;
    border-color:#6c5ce7;
}

.pagination-btns button:disabled{
    opacity:.4;
    cursor:not-allowed;
}

/* ==========================================================
   ADMIN FORMS
========================================================== */

.form-card{
    background:#fff;
    border-radius:14px;
    box-shadow:0 1px 4px rgba(0,0,0,.06);
    padding:28px;
    margin-bottom:24px;
}

.form-card h2{
    font-size:20px;
    color:#1a1f36;
    margin-bottom:20px;
    font-weight:700;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    font-size:13px;
    font-weight:600;
    color:#555;
    margin-bottom:6px;
}

.form-group input,
.form-group select,
.form-group textarea{
    padding:11px 14px;
    border:1px solid #e0e0e0;
    border-radius:10px;
    font-size:14px;
    outline:none;
    transition:.2s;
    background:#fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#6c5ce7;
    box-shadow:0 0 0 3px rgba(108,92,231,.12);
}

.form-action{
    display:flex;
    align-items:flex-end;
    justify-content:flex-end;
}

.btn-primary{
    padding:12px 28px;
    background:#6c5ce7;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.btn-primary:hover{
    background:#5a4bd1;
    transform:translateY(-1px);
}

.btn-danger{
    padding:12px 28px;
    background:#e74c3c;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.btn-danger:hover{
    background:#c0392b;
}

/* ==========================================================
   EMPTY STATE
========================================================== */

.empty-state{
    text-align:center;
    padding:60px 20px;
    color:#999;
}

.empty-state i{
    font-size:48px;
    margin-bottom:16px;
    color:#ccc;
}

.empty-state h2{
    font-size:22px;
    color:#555;
    margin-bottom:8px;
}

.empty-state p{
    font-size:15px;
}

/* ==========================================================
   REVIEW FORM
========================================================== */

.review-form{
    margin:20px 0;
}

.review-form input,
.review-form select,
.review-form textarea{
    width:100%;
    padding:12px;
    margin-bottom:12px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:15px;
}

.review-form button{
    background:#ff7a00;
    color:#fff;
    border:none;
    padding:12px 20px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

/* ==========================================================
   DEALS SECTION
========================================================== */

.deals-section{
    text-align:center;
    padding:50px 20px;
}

.deals-section h1{
    color:#ff6600;
    font-size:40px;
    margin-bottom:30px;
}

.no-deals-box{
    max-width:700px;
    margin:auto;
    background:#fff;
    padding:40px;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
}

.no-deals-box h2{
    font-size:32px;
    margin-bottom:15px;
}

.no-deals-box p{
    font-size:18px;
    color:#666;
    margin-bottom:30px;
}

.continue-shopping-btn{
    display:inline-block;
    background:#ff6600;
    color:#fff;
    padding:12px 25px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
}

.continue-shopping-btn:hover{
    background:#e65c00;
}

/* ==========================================================
   CONTACT SECTION
========================================================== */

.contact-section{
    text-align:center;
    padding:50px 20px;
}

.contact-section h1{
    color:#ff6600;
    font-size:40px;
    margin-bottom:30px;
}

.contact-box,
.contact-form{
    max-width:700px;
    margin:30px auto;
    background:#fff;
    padding:35px;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
}

.contact-box p{
    font-size:18px;
    margin:10px 0;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:12px;
    margin:10px 0;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:15px;
}

.contact-form h2{
    margin-bottom:20px;
}

.whatsapp-btn{
    display:inline-block;
    margin-top:20px;
    background:#25D366;
    color:#fff;
    text-decoration:none;
    padding:15px 30px;
    border-radius:8px;
    font-weight:bold;
    transition:.3s;
}

.whatsapp-btn:hover{
    background:#1ebc59;
}

.send-message-btn{
    display:inline-block;
    margin-top:15px;
    background:#ff6600;
    color:#fff;
    text-decoration:none;
    padding:15px 30px;
    border-radius:8px;
    font-weight:bold;
    font-size:16px;
    cursor:pointer;
    border:none;
    transition:.3s;
}

.send-message-btn:hover{
    background:#e65c00;
}

/* ==========================================================
   INVOICE
========================================================== */

.invoice-container{
    max-width:850px;
    margin:40px auto;
    background:#fff;
    padding:30px;
    border-radius:10px;
    box-shadow:0 0 15px rgba(0,0,0,.15);
}

.invoice-header{
    text-align:center;
}

.invoice-header h2{
    color:#ff6600;
}

.invoice-table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

.invoice-table th,
.invoice-table td{
    border:1px solid #ddd;
    padding:10px;
    text-align:center;
}

.invoice-table th{
    background:#ff6600;
    color:#fff;
}

.invoice-buttons{
    text-align:center;
    margin-top:25px;
}

.invoice-buttons button{
    padding:12px 25px;
    margin:10px;
    background:#ff6600;
    color:#fff;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
}

.invoice-buttons button:hover{
    background:#e65c00;
}

/* ==========================================================
   SOCIAL LINKS
========================================================== */

.social-links{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:15px;
}

.social-links a{
    display:flex;
    align-items:center;
    gap:12px;
    color:#ddd;
    text-decoration:none;
    transition:.3s;
}

.social-links a i{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
    color:#fff;
}

.social-links a:nth-child(1) i{
    background:#E4405F;
}

.social-links a:nth-child(2) i{
    background:#1877F2;
}

.social-links a:nth-child(3) i{
    background:#25D366;
}

.social-links a:hover{
    color:#ff9800;
    transform:translateX(6px);
}

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

.footer{
    background:#222;
    color:#fff;
    padding:50px 20px 20px;
    margin-top:60px;
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:35px;
}

.footer-section h3{
    color:#e63946;
    margin-bottom:20px;
}

.footer-section p{
    margin:10px 0;
    color:#ddd;
    line-height:1.7;
}

.footer-section a{
    color:#ddd;
    text-decoration:none;
    transition:.3s;
}

.footer-section a:hover{
    color:#e63946;
}

.footer hr{
    margin:35px 0 20px;
    border:1px solid #444;
}

.copyright{
    text-align:center;
    color:#aaa;
    font-size:14px;
    line-height:1.6;
}

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

@media (max-width:992px){

    header{
        padding:18px 20px;
    }

    .hero{
        min-height:450px;
    }

    .hero h1{
        font-size:48px;
    }

    .hero p{
        font-size:22px;
    }

    .hero-text{
        font-size:17px;
    }

    .product-container{
        grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    }

}

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

@media (max-width:768px){

    /* Header */
    header{
        flex-direction:column;
        justify-content:center;
        align-items:center;
        text-align:center;
        padding:15px;
        gap:15px;
    }

    .logo{
        width:100%;
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
        text-align:center;
    }

    .logo img{
        width:140px;
        height:auto;
        display:block;
        margin:0 auto;
    }

    .logo p{
        margin-top:8px;
        font-size:12px;
        text-align:center;
    }

    .search-box{
        width:100%;
        max-width:100%;
    }

    .search-box input{
        font-size:14px;
    }

    .search-box button{
        padding:10px 15px;
    }

    .right-header{
        width:100%;
        flex-direction:column;
        gap:10px;
    }

    .contact{
        text-align:center;
    }

    .header-icons{
        justify-content:center;
        flex-wrap:wrap;
        gap:8px;
    }

    .header-icons a{
        font-size:13px;
        padding:8px 10px;
    }

    /* Menu */
    .menu{
        position:relative;
        top:auto;
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
        padding:10px;
    }

    .menu a{
        margin:0;
        font-size:14px;
    }

    /* Hero */
    .hero{
        min-height:auto;
        padding:50px 20px;
    }

    .hero::before{
        width:450px;
        height:450px;
    }

    .hero h1{
        font-size:36px;
    }

    .hero p{
        font-size:18px;
    }

    .hero-text{
        font-size:15px;
        margin-bottom:30px;
    }

    .hero-buttons{
        flex-direction:column;
        gap:15px;
    }

    .shop-btn{
        width:100%;
        max-width:280px;
    }

    /* Products */
    .products{
        padding:35px 15px;
    }

    .product-container{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .product-card img{
        height:140px;
    }

    .product-card h3{
        font-size:14px;
    }

    .price{
        font-size:16px;
    }

    .description{
        font-size:12px;
        min-height:auto;
    }

    .product-buttons{
        flex-direction:column;
        gap:6px;
        padding:10px;
    }

    .product-buttons button{
        width:100%;
        font-size:12px;
        padding:8px;
    }

    /* Why Choose */
    .why-us h2{
        font-size:30px;
    }

    .why-container{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    .why-card{
        width:100%;
        padding:20px 12px;
    }

    .icon{
        font-size:36px;
    }

    .why-card h3{
        font-size:16px;
    }

    .why-card p{
        font-size:13px;
    }

    /* Categories */
    .categories h2{
        font-size:30px;
    }

    .category-container{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    .categories-grid{
        grid-template-columns:1fr;
    }

    .category-card{
        font-size:32px;
        padding:25px 15px;
    }

    .category-card h3{
        font-size:18px;
    }

    /* Product Details */
    .product-details{
        flex-direction:column;
        gap:30px;
        margin:20px;
        padding:30px 20px;
    }

    .product-image img{
        width:250px;
    }

    .second-image{
        width:180px;
    }

    .product-buttons{
        flex-direction:column;
    }

    .wishlist-btn,
    .cart-btn{
        width:100%;
    }

    .category-title{
        font-size:26px;
    }

    /* Cart */
    .cart-product{
        flex-direction:column;
        text-align:center;
    }

    .cart-image{
        width:120px;
        height:120px;
    }

    .cart-details h3{
        font-size:18px;
    }

    .cart-total{
        text-align:center;
        font-size:20px;
    }

    .checkout-btn{
        text-align:center;
    }

    .checkout-btn button{
        width:100%;
    }

    /* Dashboard */
    .dashboard-container{
        padding:20px;
    }

    .dashboard-menu a{
        font-size:16px;
        padding:14px;
    }

    .profile-card p{
        font-size:15px;
    }

    /* Admin */
    .admin-layout{
        flex-direction:column;
    }

    .admin-sidebar{
        width:100%;
        height:auto;
        position:relative;
        flex-direction:row;
        overflow-x:auto;
    }

    .sidebar-logo{
        display:none;
    }

    .sidebar-nav{
        display:flex;
        padding:0;
        gap:0;
        overflow-x:auto;
    }

    .sidebar-nav a{
        padding:12px 16px;
        border-left:none;
        border-bottom:3px solid transparent;
        white-space:nowrap;
        font-size:13px;
    }

    .sidebar-nav a span{
        display:none;
    }

    .sidebar-nav a i{
        font-size:18px;
    }

    .sidebar-nav a.active{
        border-bottom-color:#6c5ce7;
        border-left:none;
    }

    .sidebar-logout{
        padding:8px 12px;
    }

    .sidebar-logout a{
        padding:10px 16px;
        font-size:13px;
    }

    .sidebar-logout a span{
        display:none;
    }

    .admin-main{
        padding:20px 16px;
    }

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

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

    .form-grid{
        grid-template-columns:1fr;
    }

    .order-tabs{
        overflow-x:auto;
        flex-wrap:nowrap;
        padding-bottom:8px;
    }

    /* Deals & Contact */
    .deals-section h1,
    .contact-section h1{
        font-size:30px;
    }

    .contact-box,
    .contact-form,
    .no-deals-box{
        padding:20px;
    }

    /* Checkout */
    .checkout-container{
        padding:20px;
    }

    /* Footer */
    .footer{
        text-align:center;
    }

    .footer-container{
        flex-direction:column;
    }

    /* Invoice */
    .invoice-container,
    .checkout-container,
    .login-container,
    .contact-form,
    .contact-box{
        width:95%;
        margin:20px auto;
        padding:20px;
    }

    .invoice-table{
        display:block;
        overflow-x:auto;
    }

}

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

@media (max-width:480px){

    header{
        padding:12px;
    }

    .hero{
        padding:40px 15px;
    }

    .hero h1{
        font-size:30px;
    }

    .hero p{
        font-size:16px;
    }

    .hero-text{
        font-size:14px;
    }

    .hero::before{
        width:320px;
        height:320px;
    }

    .shop-btn{
        padding:14px 20px;
    }

    .product-container{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .product-card img{
        height:150px;
    }

    .product-card h3{
        font-size:13px;
    }

    .product-card .price{
        font-size:14px;
    }

    .product-buttons{
        flex-direction:column;
        gap:6px;
    }

    .product-buttons button{
        width:100%;
        padding:8px;
        font-size:12px;
    }

    .product-image img{
        width:220px;
    }

    .second-image{
        width:160px;
    }

    .categories{
        padding:50px 15px;
    }

    .categories h2{
        font-size:26px;
    }

    .why-us{
        padding:50px 15px;
    }

    .why-us h2{
        font-size:26px;
    }

    .sidebar{
        width:200px;
        padding:18px;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .stats-row{
        grid-template-columns:1fr;
    }

    .stat-card{
        padding:16px;
    }

    .stat-info h2{
        font-size:20px;
    }

    .dashboard-container{
        margin:20px auto;
        padding:15px;
    }

    .dashboard-menu a{
        font-size:15px;
    }

    .cart-image{
        width:100px;
        height:100px;
    }

    .cart-details h3{
        font-size:16px;
    }

    .cart-total{
        font-size:18px;
    }

    .checkout-btn button{
        font-size:16px;
        padding:12px;
    }

    .cart-page{
        width:100%;
        padding:10px;
    }

    #cart-items{
        padding:20px;
    }

    .checkout-container{
        width:100%;
        margin:20px auto;
        padding:15px;
    }

    .checkout-container button{
        font-size:16px;
    }

}

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

.cart-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    transition: opacity 0.3s;
}

.cart-sidebar-overlay.active {
    display: block;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: #1a1f36;
    color: #fff;
}

.cart-sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.cart-sidebar-close:hover {
    background: #e74c3c;
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-sidebar-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
}

.cart-sidebar-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8f8f8;
    padding: 5px;
    flex-shrink: 0;
}

.cart-sidebar-item-info {
    flex: 1;
}

.cart-sidebar-item-info h4 {
    font-size: 14px;
    color: #222;
    margin-bottom: 4px;
}

.cart-sidebar-item-info p {
    font-size: 13px;
    color: #888;
}

.cart-sidebar-item-info .item-price {
    color: #ff6b00;
    font-weight: 700;
    font-size: 15px;
    margin-top: 4px;
}

.cart-sidebar-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.cart-sidebar-item-qty button {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.cart-sidebar-item-qty button:hover {
    border-color: #6c5ce7;
    color: #6c5ce7;
}

.cart-sidebar-item-qty span {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-sidebar-item-remove {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: #fde7e7;
    color: #e74c3c;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.2s;
}

.cart-sidebar-item-remove:hover {
    background: #e74c3c;
    color: #fff;
}

.cart-sidebar-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cart-sidebar-empty i {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 16px;
}

.cart-sidebar-empty h3 {
    color: #555;
    margin-bottom: 8px;
}

.cart-sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.cart-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-sidebar-total span {
    font-size: 16px;
    color: #555;
}

.cart-sidebar-total strong {
    font-size: 22px;
    color: #ff6b00;
}

.cart-sidebar-buttons {
    display: flex;
    gap: 10px;
}

.cart-sidebar-buttons a,
.cart-sidebar-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
    border: none;
}

.btn-continue {
    background: #fff;
    color: #333;
    border: 2px solid #ddd !important;
}

.btn-continue:hover {
    border-color: #6c5ce7 !important;
    color: #6c5ce7;
}

.btn-checkout {
    background: #ff6b00;
    color: #fff;
}

.btn-checkout:hover {
    background: #e65c00;
}

/* ==========================================================
   CHECKOUT PAGE - REDESIGN
========================================================== */

.checkout-page {
    width: 95%;
    max-width: 1100px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.checkout-form-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 30px;
}

.checkout-form-card h2 {
    font-size: 20px;
    color: #1a1f36;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-form-card h2 i {
    color: #6c5ce7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    font-family: Arial, sans-serif;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.checkout-order-summary {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 24px;
    position: sticky;
    top: 20px;
}

.checkout-order-summary h3 {
    font-size: 18px;
    color: #1a1f36;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-order-summary h3 i {
    color: #6c5ce7;
}

.summary-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
}

.summary-item img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f8f8;
    padding: 4px;
    flex-shrink: 0;
}

.summary-item-info {
    flex: 1;
}

.summary-item-info h4 {
    font-size: 13px;
    color: #222;
    margin-bottom: 2px;
}

.summary-item-info p {
    font-size: 12px;
    color: #888;
}

.summary-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #ff6b00;
    white-space: nowrap;
}

.summary-totals {
    padding: 16px 0 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.summary-row.grand {
    border-top: 2px solid #f0f0f0;
    margin-top: 10px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1f36;
}

.summary-row.grand span:last-child {
    color: #ff6b00;
}

.place-order-btn {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.place-order-btn:hover {
    background: #e65c00;
    transform: translateY(-1px);
}

/* ==========================================================
   ORDER SUCCESS
========================================================== */

.order-success {
    display: none;
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    grid-column: 1 / -1;
}

.order-success.active {
    display: block;
}

.order-success i {
    font-size: 70px;
    color: #34a853;
    margin-bottom: 20px;
}

.order-success h2 {
    font-size: 26px;
    color: #1a1f36;
    margin-bottom: 10px;
}

.order-success p {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.order-success .order-id {
    font-size: 18px;
    color: #6c5ce7;
    font-weight: 700;
    margin: 15px 0;
}

.order-success-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.order-success-btns a {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.order-success-btns .btn-view-invoice {
    background: #6c5ce7;
    color: #fff;
}

.order-success-btns .btn-view-invoice:hover {
    background: #5a4bd1;
}

.order-success-btns .btn-continue-shopping {
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
}

.order-success-btns .btn-continue-shopping:hover {
    border-color: #ff6b00;
    color: #ff6b00;
}

/* Checkout Coupon */
.checkout-coupon {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    align-items: center;
}

.checkout-coupon input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.checkout-coupon button {
    padding: 10px 16px;
    background: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.checkout-coupon p {
    width: 100%;
    font-size: 12px;
    margin: 4px 0 0;
}

/* ==========================================================
   RESPONSIVE - CART SIDEBAR & CHECKOUT
========================================================== */

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .checkout-page {
        grid-template-columns: 1fr !important;
    }

    .checkout-order-summary {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================
   ORDER DETAIL MODAL
========================================================== */

.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.order-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.order-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
}

.order-modal-close:hover {
    color: #e74c3c;
}

.order-modal-body {
    padding: 24px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-detail-row:last-child {
    border-bottom: none;
}

.order-detail-label {
    font-weight: 600;
    color: #555;
    min-width: 140px;
}

.order-detail-value {
    color: #333;
    text-align: right;
}

.order-products-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.order-products-list th,
.order-products-list td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.order-products-list th {
    background: #f8f8f8;
    font-weight: 600;
    color: #555;
}

.order-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    gap: 10px;
}

.order-modal-footer select {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}

.order-modal-footer .btn-modal-save {
    padding: 10px 20px;
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.order-modal-footer .btn-modal-save:hover {
    background: #e55a00;
}

.order-modal-footer .btn-modal-delete {
    padding: 10px 20px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.order-modal-footer .btn-modal-delete:hover {
    background: #c0392b;
}