/* ===========================
   Stanley Pakistan - Main CSS
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1a1a1a;
    --secondary: #c8a96e;
    --accent: #e8d5b0;
    --red: #c0392b;
    --bg-light: #f8f6f3;
    --text: #1a1a1a;
    --text-light: #666;
    --border: #e8e4df;
    --white: #ffffff;
    --font: 'Inter', sans-serif;
    --radius: 4px;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --transition: 0.25s ease;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
    overflow: hidden;
}
.announcement-ticker {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}
@keyframes ticker {
    0% { transform: translateX(5%); }
    100% { transform: translateX(-100%); }
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 0px;
}
.site-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}
.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
}
.logo-sub {
    font-size: 10px;
    letter-spacing: 6px;
    color: var(--secondary);
    font-weight: 500;
}

/* NAV */
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; display: flex; gap: 5px; align-items: center; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    transition: color var(--transition);
    white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li a.sale-link { color: var(--red); }
.main-nav ul li a i { font-size: 10px; }
.main-nav ul li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
}
.main-nav ul li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-nav ul li .dropdown a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    border-bottom: 1px solid var(--border);
}
.main-nav ul li .dropdown a:last-child { border-bottom: none; }
.main-nav ul li .dropdown a:hover { background: var(--bg-light); color: var(--secondary); }

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.search-btn, .cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--primary);
    padding: 8px;
    position: relative;
    transition: color var(--transition);
}
.search-btn:hover, .cart-btn:hover { color: var(--secondary); }
.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--primary);
}

/* SEARCH BAR */
.search-bar {
    display: none;
    background: var(--bg-light);
    padding: 15px 0;
    border-top: 1px solid var(--border);
}
.search-bar.open { display: block; }
.search-bar .container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
}
.search-input:focus { border-color: var(--secondary); }
.search-bar button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}
.search-bar button:hover { background: var(--secondary); }
#closeSearch { background: none; color: var(--text-light); }
#closeSearch:hover { background: none; color: var(--red); }

/* MOBILE NAV */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}
.mobile-overlay.open { display: block; }
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}
.mobile-nav.open { left: 0; }
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
}
.mobile-nav nav a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}
.mobile-nav nav a:hover { color: var(--secondary); }

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3142 100%);
    color: var(--white);
    min-height: 850px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity:unset;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 60px 0;
}
.hero-tag {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 2px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 35px;
    max-width: 460px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary);
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-dark {
    background: var(--primary);
    color: var(--white);
}
.btn-dark:hover { background: var(--secondary); color: var(--white); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outlineMessi {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

    .btn-outlineMessi:hover {
        background: var(--white);
        color:black;
    }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* ===== SECTION STYLES ===== */
.section { padding: 15px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--primary); color: var(--white); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.section-header p { color: var(--text-light); font-size: 16px; }
.section-header.light h2, .section-dark .section-header h2 { color: var(--white); }
.section-header.light p, .section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}
.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.product-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-cardModel-Text {
    position: absolute;
    top: 60%;
    left: 35%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    text-align:left;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-gridModel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(291px, 1fr));
    gap: 15px;
}

.product-cardModel {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
}

    .product-cardModel:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    }

.product-card-imgModel {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}

    .product-card-imgModel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.product-cardModel:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card-actionsModel {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    padding: 10px;
    display: flex;
    gap: 8px;
    transition: bottom var(--transition);
}

.product-cardModel:hover .product-card-actionsModel {
    bottom: 10px;
}


.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}
.product-badge.badge-new { background: var(--primary); }
.product-badge.badge-featured { background: var(--secondary); }
    .product-badge.badge-outofstock {
        background: var(--secondary);
        top: 85px;
        left: 45px;
    }
.product-card-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 10px;
    display: flex;
    gap: 8px;
    transition: bottom var(--transition);
}
.product-card:hover .product-card-actions { bottom: 10px; }
.btn-add-cart {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}
.btn-add-cart:hover { background: var(--secondary); }
.product-card-body { padding: 18px; color:black; }
.product-card-body h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-body a:hover h3 { color: var(--secondary); }
.price-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-sale {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.price-original {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}
.price-regular { font-size: 18px; font-weight: 700; }

/* SECTION LINK */
.section-link {
    text-align: center;
    margin-top: 35px;
}
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 3px;
    transition: color var(--transition), border-color var(--transition);
}
.btn-link:hover { color: var(--secondary); border-color: var(--secondary); }

/* ===== CATEGORIES GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
}
.category-card:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.category-card i { font-size: 32px; color: var(--secondary); margin-bottom: 12px; }
.category-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.category-card span { font-size: 12px; color: var(--text-light); }

/* ===== FEATURES STRIP ===== */
.features-strip {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.feature-item i { font-size: 28px; color: var(--secondary); margin-bottom: 10px; }
.feature-item h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 4px; }
.feature-item p { font-size: 12px; color: var(--text-light); }

/* ===== SALE BANNER ===== */
.sale-banner {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}
.sale-banner h2 { font-size: clamp(28px, 5vw, 48px); font-weight: 700; margin-bottom: 10px; }
.sale-banner p { font-size: 18px; opacity: 0.9; margin-bottom: 25px; }

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail { padding: 50px 0; }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.product-images .main-image {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 15px;
}
.product-images .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.product-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: border-color var(--transition);
}
.product-thumbs img:hover, .product-thumbs img.active { border-color: var(--secondary); }
.product-info { padding-top: 10px; }
.product-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 12px;
}
.product-info h1 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.product-price-wrap { margin-bottom: 20px; }
.product-price-sale { font-size: 28px; font-weight: 700; color: var(--primary); }
.product-price-original { font-size: 18px; color: var(--text-light); text-decoration: line-through; margin-left: 10px; }
.product-price-regular { font-size: 28px; font-weight: 700; }
.sale-badge-inline {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 2px;
    margin-left: 10px;
    vertical-align: middle;
}
.product-divider { height: 1px; background: var(--border); margin: 20px 0; }
.product-description { font-size: 15px; line-height: 1.7; color: var(--text-light); margin-bottom: 25px; }
   
.product-fulldescription {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-left:5px;
}
    .product-fulldescription ul li {
        margin-left: 25px;
        line-height: 190%;
    }

.qty-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.qty-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 42px;
    background: var(--bg-light);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background var(--transition);
}
.qty-btn:hover { background: var(--border); }
.qty-input {
    width: 60px;
    height: 42px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}
.btn-add-to-cart {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
    margin-bottom: 12px;
}
.btn-add-to-cart:hover { background: var(--secondary); }
.product-meta { margin-top: 25px; }
.product-meta-item { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; color: var(--text-light); }
.product-meta-item i { color: var(--secondary); width: 18px; }

/* ===== CART PAGE ===== */
.cart-page { padding: 50px 0; }
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 12px;
    border-bottom: 2px solid var(--border);
}
.cart-table td { padding: 20px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.cart-item-name { font-weight: 600; font-size: 15px; }
.cart-summary {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border);
    width:max-content;
}
.cart-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.summary-row.total { font-size: 18px; font-weight: 700; border-top: 2px solid var(--border); padding-top: 15px; margin-top: 5px; }
.free-shipping { color: green; font-weight: 600; }
.btn-checkout {
    display: block;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
    transition: background var(--transition);
}
.btn-checkout:hover { background: var(--secondary); }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty i { font-size: 64px; color: var(--border); margin-bottom: 20px; }
.cart-empty h3 { font-size: 24px; margin-bottom: 10px; }
.cart-empty p { color: var(--text-light); margin-bottom: 25px; }

/* ===== CHECKOUT PAGE ===== */
.checkout-page { padding: 50px 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--secondary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition);
}
.payment-option:has(input:checked) { border-color: var(--secondary); background: var(--bg-light); }

/* ===== ADMIN STYLES ===== */
.admin-body { background: #f0f2f5; font-family: var(--font); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--primary);
    color: var(--white);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar-logo {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.admin-sidebar-logo .logo-text { font-size: 18px; }
.admin-nav { padding: 20px 0; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    border-left-color: var(--secondary);
}
.admin-nav a i { width: 18px; font-size: 15px; }
.admin-main { margin-left: 260px; min-height: 100vh; }
.admin-topbar {
    background: var(--white);
    padding: 15px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.admin-topbar h1 { font-size: 20px; font-weight: 700; }
.admin-content { padding: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}
.stat-icon.blue { background: #3498db; }
.stat-icon.green { background: #27ae60; }
.stat-icon.orange { background: #e67e22; }
.stat-icon.red { background: #e74c3c; }
.stat-info h3 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.stat-info p { font-size: 13px; color: var(--text-light); }
.admin-card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 25px;
}
.admin-card-header {
    padding: 18px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-card-header h2 { font-size: 16px; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 12px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-light); }
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}
.btn-sm.btn-edit { background: #3498db; color: var(--white); }
.btn-sm.btn-edit:hover { background: #2980b9; }
.btn-sm.btn-delete { background: #e74c3c; color: var(--white); }
.btn-sm.btn-delete:hover { background: #c0392b; }
.btn-sm.btn-view { background: var(--bg-light); color: var(--text); border: 1px solid var(--border); }
.btn-sm.btn-view:hover { background: var(--border); }
.btn-primary-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition);
}
.btn-primary-admin:hover { background: var(--secondary); }
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-pending { background: #fef9e7; color: #d4ac0d; }
.badge-processing { background: #ebf5fb; color: #2980b9; }
.badge-shipped { background: #eaf7fb; color: #17a589; }
.badge-delivered { background: #eafaf1; color: #27ae60; }
.badge-cancelled { background: #fdedec; color: #e74c3c; }
.badge-active { background: #eafaf1; color: #27ae60; }
.badge-inactive { background: #fdedec; color: #e74c3c; }
.admin-form { padding: 25px; }
.form-section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.checkbox-group { display: flex; flex-wrap: wrap; gap: 20px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.img-preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.img-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .img-del {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.alert-success { background: #eafaf1; color: #27ae60; border: 1px solid #a9dfbf; }
.alert-error { background: #fdedec; color: #e74c3c; border: 1px solid #f5b7b1; }

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3142 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}
.login-card .logo-text { font-size: 26px; margin-bottom: 5px; }
.login-card h2 { font-size: 22px; font-weight: 700; margin: 20px 0 30px; }
.login-form { text-align: left; }

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--bg-light);
    padding: 35px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}
.page-header h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 700; margin-bottom: 8px; }
.breadcrumb { font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .sep { margin: 0 8px; }

/* PRODUCT FILTERS */
.product-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}
.filter-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-cat {
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-light);
    text-transform: uppercase;
    text-decoration: none;
}
.filter-cat:hover, .filter-cat.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.sort-select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all var(--transition);
}
.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
}
.toast.show { transform: translateX(0); }
.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }

/* ===== FOOTER ===== */
.site-footer { background: #111; color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo .logo-text { color: var(--white); }
.footer-logo .logo-sub { color: var(--secondary); }
.site-footer p { font-size: 14px; line-height: 1.7; margin: 15px 0; opacity: 0.75; }
.social-links { display: flex; gap: 12px; margin-top: 15px; }
.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--white);
    transition: background var(--transition);
}
.social-links a:hover { background: var(--secondary); }
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--secondary); }
.contact-list { list-style: none; }
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}
.contact-list li i { color: var(--secondary); margin-top: 3px; width: 14px; }
.payment-icons { display: flex; gap: 8px; margin-top: 15px; }
.payment-icons span {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-sidebar { width: 0; overflow: hidden; }
    .admin-main { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .announcement-ticker {  }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-content { padding: 40px 0; }
}

.reviews-section {
    border-top: 2px solid #eee;
    padding-top: 40px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

    .reviews-header h2 {
        margin: 0;
    }

.reviews-list {
    margin-top: 30px;
}

.review-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-date {
    color: #999;
    font-size: 14px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.star {
    color: #ddd;
}

    .star.filled {
        color: #ffc107;
    }

.rating-number {
    font-weight: 600;
    color: #333;
}

.review-comment {
    margin: 10px 0;
    line-height: 1.6;
}

.review-image {
    margin-top: 15px;
}

    .review-image img {
        max-width: 200px;
        border-radius: 4px;
    }

.no-reviews {
    text-align: center;
    color: #666;
    padding: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

    .page-link.active {
        background: #007bff;
        color: white;
        border-color: #007bff;
    }

    .page-link:hover {
        border-color: #007bff;
    }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in;
}

    .modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

@@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
}

@@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

    .modal-header h3 {
        margin: 0;
        font-size: 20px;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        color: #333;
    }

.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-weight: 600;
        margin-bottom: 8px;
        color: #333;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="file"],
    .form-group textarea {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-family: inherit;
        font-size: 14px;
    }

        .form-group input[type="text"]:focus,
        .form-group input[type="email"]:focus,
        .form-group input[type="file"]:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        }

    .form-group small {
        color: #666;
        font-size: 12px;
        margin-top: 4px;
    }

.star-rating {
    display: flex;
    gap: 10px;
    font-size: 24px;
}

    .star-rating .star {
        color: #ddd;
        cursor: pointer;
        transition: color 0.2s;
    }

        .star-rating .star:hover,
        .star-rating .star.active {
            color: #ffc107;
        }

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid #eee;
}


@@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

        .reviews-header button {
            width: 100%;
        }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-footer {
        flex-direction: column;
    }

        .modal-footer button {
            width: 100%;
        }
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.stars {
    display: flex;
    gap: 4px;
    font-size: 20px;
}

.star {
    color: #ddd;
}

    .star.filled {
        color: #ffc107;
    }

.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background: #5a6268;
    }

