/* ================================================
   MENSWEAR E-COMMERCE - Main Stylesheet
   Aesthetic: Refined Editorial / Dark Luxury
   Fonts: Playfair Display + Jost
   ================================================ */

/* ─── Variables ──────────────────────────────── */
:root {
    --black: #0a0a0a;
    --dark: #111111;
    --dark-2: #1a1a1a;
    --dark-3: #242424;
    --mid: #3a3a3a;
    --border: #2e2e2e;
    --light-border: #e8e3dc;
    --cream: #f5f1eb;
    --cream-2: #faf8f5;
    --white: #ffffff;
    --gold: #c9a84c;
    --gold-light: #e8c96e;
    --text-light: #9a9a9a;
    --text-mid: #6b6b6b;
    --red: #c0392b;
    --success: #27ae60;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Jost', 'Helvetica Neue', sans-serif;
    --radius: 2px;
    --radius-lg: 4px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
}

/* ─── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--cream-2);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title .label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-title h2 { color: var(--dark); }
.section-title p { color: var(--text-mid); max-width: 540px; margin: 16px auto 0; }

/* ─── Flash Messages ─────────────────────────── */
.flash-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 14px 48px 14px 20px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
    max-width: 380px;
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.flash-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: 1.2rem; background: none; border: none; cursor: pointer; opacity: 0.6;
}
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── Header ─────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--dark); }

.header-top {
    background: var(--black);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 0.03em;
}
.header-top-links { display: flex; gap: 20px; }
.header-top-links a:hover { color: var(--gold); }

.header-main { padding: 0; }
.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 32px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.05em;
}
.logo span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color var(--transition);
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: -20px;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    border-radius: var(--radius);
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--text-light) !important;
}
.dropdown-menu a::after { display: none !important; }
.dropdown-menu a:hover { background: var(--dark-3); color: var(--gold) !important; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.action-btn {
    position: relative;
    color: var(--text-light);
    font-size: 1rem;
    transition: color var(--transition);
    padding: 4px;
}
.action-btn:hover { color: var(--gold); }
.cart-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--gold);
    color: var(--black);
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-preview { color: var(--text-light); font-size: 0.82rem; font-weight: 500; }
.cart-total { color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* Search Bar */
.search-bar {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.search-bar.open { max-height: 80px; padding: 16px 0; }
.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.search-form input {
    flex: 1;
    background: var(--dark-3);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}
.search-form input:focus { border-color: var(--gold); }
.search-form input::placeholder { color: var(--text-light); }
.search-form button {
    color: var(--text-light);
    font-size: 1rem;
    padding: 8px 12px;
    transition: color var(--transition);
}
.search-form button:hover { color: var(--gold); }

/* ─── Mobile Sidebar ─────────────────────────── */
.overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1100;
    opacity: 0; visibility: hidden;
    transition: all var(--transition);
}
.overlay.active { opacity: 1; visibility: visible; }

.mobile-sidebar {
    position: fixed;
    top: 0; left: -300px;
    width: 280px;
    height: 100%;
    background: var(--dark-2);
    z-index: 1200;
    transition: left var(--transition);
    overflow-y: auto;
    padding: 0 0 40px;
}
.mobile-sidebar.open { left: 0; }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; color: var(--white); }
.sidebar-logo span { color: var(--gold); }
.sidebar-close { color: var(--text-light); font-size: 1.5rem; }

.sidebar-nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all var(--transition);
}
.sidebar-nav a:hover { color: var(--gold); background: var(--dark-3); padding-left: 28px; }

.sidebar-auth { padding: 20px; }
.sidebar-auth a {
    display: block;
    padding: 10px 0;
    color: var(--text-light);
    font-size: 0.85rem;
    transition: color var(--transition);
}
.sidebar-auth a:hover { color: var(--gold); }

/* ─── Hero Section ───────────────────────────── */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(10,10,10,0.85) 40%, rgba(10,10,10,0.2) 100%);
    z-index: 1;
}
.hero-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.03); }
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 600;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}
.hero-title {
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 900;
}
.hero-title span { color: var(--gold); display: block; }
.hero-text {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    max-width: 420px;
    margin-bottom: 40px;
    line-height: 1.8;
}
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ─── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gold);
    color: var(--black);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.btn-dark {
    background: var(--dark);
    color: var(--white);
}
.btn-dark:hover {
    background: var(--dark-2);
    transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 0.75rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Banners ────────────────────────────────── */
.banners { padding: 80px 0; }
.banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}
.banner-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/5;
}
.banner-item:first-child {
    grid-column: 1 / 3;
    aspect-ratio: 16/9;
}
.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.banner-item:hover img { transform: scale(1.06); }
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 30%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}
.banner-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
}
.banner-title { font-size: 1.5rem; color: var(--white); margin-bottom: 16px; }
.banner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    font-weight: 600;
    border-bottom: 1px solid var(--white);
    padding-bottom: 2px;
    width: fit-content;
    transition: all var(--transition);
}
.banner-link:hover { color: var(--gold); border-color: var(--gold); }

/* ─── Products ───────────────────────────────── */
.products-section { padding: 80px 0; background: var(--cream-2); }
.products-section.dark-bg { background: var(--cream); }

.filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--light-border);
    padding-bottom: 0;
}
.filter-tab {
    padding: 12px 24px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.filter-tab.active, .filter-tab:hover {
    color: var(--dark);
    border-bottom-color: var(--gold);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    border: 1px solid var(--light-border);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--cream);
}
.product-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.07); }

.product-badge {
    position: absolute;
    top: 14px; left: 14px;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 2;
}
.badge-new { background: var(--dark); color: var(--gold); }
.badge-sale { background: var(--red); color: var(--white); }
.badge-hot { background: var(--gold); color: var(--black); }

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 3;
    white-space: nowrap;
}
.product-card:hover .product-actions { opacity: 1; }
.product-action-btn {
    background: var(--white);
    color: var(--dark);
    padding: 8px 18px;
    border-radius: 2px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    transition: all var(--transition);
    border: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    gap: 6px;
}
.product-action-btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.product-action-btn.wishlist-btn { padding: 8px 12px; }

.product-info { padding: 16px 20px 20px; }
.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card:hover .product-name { color: var(--gold); }

.product-rating { display: flex; gap: 2px; margin-bottom: 8px; font-size: 0.75rem; }
.star-filled { color: var(--gold); }
.star-empty { color: #ddd; }

.product-price { display: flex; align-items: center; gap: 10px; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.price-original { font-size: 0.85rem; color: var(--text-light); text-decoration: line-through; }
.price-sale { color: var(--red); }

/* ─── Categories / Deal ──────────────────────── */
.deal-section {
    padding: 80px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}
.deal-section::before {
    content: 'DEAL';
    position: absolute;
    font-family: var(--font-display);
    font-size: 18rem;
    font-weight: 900;
    color: rgba(255,255,255,0.02);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
}
.deal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.deal-categories h2 {
    color: var(--white);
    line-height: 1.3;
}
.deal-categories h2 span { color: var(--gold); display: block; }

.deal-image { position: relative; text-align: center; }
.deal-image img { max-height: 500px; width: auto; margin: 0 auto; filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5)); }
.deal-sticker {
    position: absolute;
    bottom: 20px;
    right: -10px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}
.deal-sticker .label { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; }
.deal-sticker .price { font-size: 1.1rem; font-family: var(--font-display); }

.deal-countdown-wrap {}
.deal-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 16px;
}
.deal-title { color: var(--white); margin-bottom: 32px; font-size: 1.6rem; }

.countdown { display: flex; gap: 16px; margin-bottom: 40px; }
.countdown-item { text-align: center; }
.countdown-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}
.countdown-lbl { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); }

/* ─── Blog ───────────────────────────────────── */
.blog-section { padding: 80px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--light-border);
    transition: all var(--transition);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.blog-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 24px; }
.blog-meta { font-size: 0.75rem; color: var(--text-light); letter-spacing: 0.08em; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.blog-meta i { color: var(--gold); }
.blog-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; line-height: 1.4; }
.blog-title a:hover { color: var(--gold); }
.blog-read-more {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color var(--transition);
}
.blog-read-more:hover { color: var(--gold); }

/* ─── Instagram ──────────────────────────────── */
.instagram-section { padding: 80px 0; background: var(--cream); }
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 40px;
}
.insta-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: var(--dark);
}
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: all var(--transition); }
.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(201,168,76,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    font-size: 1.5rem;
    color: var(--white);
}
.insta-item:hover .insta-overlay { opacity: 1; }
.insta-item:hover img { transform: scale(1.08); }

.instagram-cta { text-align: center; }
.instagram-cta h3 { margin-bottom: 8px; }
.instagram-cta p { color: var(--text-mid); margin-bottom: 20px; }
.instagram-handle { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); }

/* ─── Shop Page ──────────────────────────────── */
.shop-header {
    background: var(--dark);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.shop-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.shop-header h1 { color: var(--white); }
.shop-header .breadcrumb { color: var(--text-light); font-size: 0.82rem; margin-top: 10px; }
.shop-header .breadcrumb a { color: var(--gold); }
.shop-header .breadcrumb a:hover { text-decoration: underline; }

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 60px 0; }

.shop-sidebar h3 {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-border);
    color: var(--dark);
}
.sidebar-section { margin-bottom: 36px; }
.sidebar-links { display: flex; flex-direction: column; gap: 6px; }
.sidebar-links a {
    font-size: 0.88rem;
    color: var(--text-mid);
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.sidebar-links a:hover, .sidebar-links a.active { color: var(--dark); }
.sidebar-links a .count { font-size: 0.75rem; color: var(--text-light); }

.price-range { margin-top: 12px; }
.price-range input[type="range"] { width: 100%; accent-color: var(--gold); }
.price-range-labels { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-mid); margin-top: 8px; }

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-border);
}
.shop-count { font-size: 0.85rem; color: var(--text-mid); }
.shop-sort select {
    padding: 8px 12px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
    background: var(--white);
    color: var(--dark);
    outline: none;
    cursor: pointer;
}

/* ─── Product Detail ─────────────────────────── */
.product-detail { padding: 60px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.main-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; background: var(--cream); margin-bottom: 12px; }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: 10px; }
.thumb {
    width: 70px; height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition);
}
.thumb.active, .thumb:hover { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info h1 { font-size: 2rem; margin-bottom: 12px; }
.product-detail-price { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.detail-price { font-size: 1.6rem; font-weight: 700; font-family: var(--font-display); }
.detail-price-original { font-size: 1rem; text-decoration: line-through; color: var(--text-light); }

.product-detail-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.review-count { font-size: 0.82rem; color: var(--text-light); }

.product-description { color: var(--text-mid); line-height: 1.8; margin-bottom: 32px; border-top: 1px solid var(--light-border); padding-top: 24px; }

.size-select, .qty-select {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.size-select label, .qty-select label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    min-width: 60px;
}
.size-options { display: flex; gap: 8px; }
.size-btn {
    width: 40px; height: 40px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.size-btn:hover, .size-btn.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn { padding: 10px 14px; font-size: 1rem; color: var(--dark); transition: background var(--transition); }
.qty-btn:hover { background: var(--cream); }
.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--light-border);
    border-right: 1px solid var(--light-border);
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
}

.add-to-cart-area { display: flex; gap: 12px; margin-top: 24px; }

/* ─── Cart ───────────────────────────────────── */
.cart-page { padding: 60px 0; }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0 0 16px;
    border-bottom: 1px solid var(--light-border);
}
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--light-border); vertical-align: middle; }

.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product-img { width: 80px; height: 96px; object-fit: cover; border-radius: var(--radius); background: var(--cream); }
.cart-product-name { font-weight: 600; font-size: 0.9rem; }
.cart-product-meta { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.cart-remove { color: var(--text-light); font-size: 0.8rem; cursor: pointer; margin-top: 6px; transition: color var(--transition); }
.cart-remove:hover { color: var(--red); }

.cart-summary {
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky;
    top: 100px;
}
.cart-summary h3 { margin-bottom: 24px; font-size: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 0.9rem; }
.summary-row.total {
    border-top: 1px solid var(--light-border);
    padding-top: 14px;
    margin-top: 4px;
    font-weight: 700;
    font-size: 1rem;
}
.coupon-row { margin: 20px 0; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    outline: none;
}
.coupon-form input:focus { border-color: var(--gold); }

/* ─── Checkout ───────────────────────────────── */
.checkout-page { padding: 60px 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.form-section { background: var(--white); border: 1px solid var(--light-border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px; }
.form-section h3 { margin-bottom: 24px; font-size: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 6px; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--dark);
    outline: none;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color var(--transition);
}
.payment-option:has(input:checked) { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.payment-option input[type="radio"] { accent-color: var(--gold); }

/* ─── Auth Pages ─────────────────────────────── */
.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; padding: 60px 0; }
.auth-box {
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.auth-box h2 { margin-bottom: 8px; }
.auth-box p { color: var(--text-mid); margin-bottom: 32px; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--light-border); }
.auth-divider span { background: var(--white); padding: 0 12px; position: relative; font-size: 0.82rem; color: var(--text-light); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.88rem; color: var(--text-mid); }
.auth-footer a { color: var(--gold); font-weight: 600; }

/* ─── Pagination ─────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ─── Cart Notification ──────────────────────── */
.cart-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.4s ease;
    border-left: 3px solid var(--gold);
}
.cart-notification.show { transform: translateY(0); opacity: 1; }
.cart-notification i { color: var(--gold); }

/* ─── Back to Top ────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 80px;
    width: 44px; height: 44px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    border: 1px solid var(--border);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--black); }

/* ─── Footer ─────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: var(--text-light);
}

.footer-main {
    padding: 72px 0 48px;
    border-bottom: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 16px;
}
.footer-logo span { color: var(--gold); }

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 280px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.8rem;
    transition: all var(--transition);
}
.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,76,0.08);
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul li a {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-links ul li a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}
.footer-links ul li a:hover {
    color: var(--gold);
    padding-left: 4px;
}
.footer-links ul li a:hover::before {
    width: 12px;
}

.footer-newsletter h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 12px;
}
.footer-newsletter > p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.newsletter-input-wrap {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    transition: border-color var(--transition);
}
.newsletter-input-wrap:focus-within {
    border-color: var(--gold);
}
.newsletter-input-wrap input {
    flex: 1;
    background: var(--dark-2);
    border: none;
    color: var(--white);
    padding: 12px 14px;
    font-size: 0.85rem;
    outline: none;
    font-family: var(--font-body);
}
.newsletter-input-wrap input::placeholder {
    color: var(--text-light);
}
.newsletter-input-wrap button {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background var(--transition);
}
.newsletter-input-wrap button:hover {
    background: var(--gold-light);
}

.payment-icons {
    display: flex;
    gap: 10px;
    font-size: 1.6rem;
    color: var(--text-light);
}
.payment-icons i { opacity: 0.7; transition: opacity var(--transition); }
.payment-icons i:hover { opacity: 1; }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
}
.footer-bottom i {
    color: var(--red);
    font-size: 0.75rem;
}

/* Footer responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-brand { grid-column: 1; }
    .footer-main { padding: 48px 0 32px; }
}

/* ─── Empty State ────────────────────────────── */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .icon { font-size: 4rem; color: var(--text-light); margin-bottom: 20px; }
.empty-state h3 { margin-bottom: 12px; }
.empty-state p { color: var(--text-mid); margin-bottom: 28px; }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
    .deal-grid { grid-template-columns: 1fr 1fr; }
    .deal-image { display: none; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .cart-grid { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav, .header-top { display: none; }
    .hamburger { display: flex; }
    .header-main-inner { padding: 16px 0; }
    .banners-grid { grid-template-columns: 1fr; }
    .banner-item:first-child { grid-column: 1; }
    .blog-grid { grid-template-columns: 1fr; }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .deal-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero { height: 70vh; }
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-box { padding: 28px 20px; }
}
/* ─── Change Password Page ───────────────────────────────── */
.change-password-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: var(--cream-2);
}

.change-password-box {
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

/* Header */
.change-password-box h2 {
    margin-bottom: 8px;
    color: var(--dark);
}
.change-password-box > p {
    color: var(--text-mid);
    margin-bottom: 32px;
}

/* User Avatar */
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    margin: 0 auto 16px;
    border: 2px solid var(--gold);
}

.user-info {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--light-border);
}
.user-info h5 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 4px;
}
.user-info p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Form Fields */
.change-password-box .form-group {
    margin-bottom: 20px;
}
.change-password-box .form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 8px;
}
.change-password-box .form-group label i {
    color: var(--gold);
    font-size: 0.85rem;
}
.change-password-box .input-group {
    display: flex;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.change-password-box .input-group:focus-within {
    border-color: var(--gold);
}
.change-password-box .input-group input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--dark);
    outline: none;
    background: var(--white);
}
.change-password-box .input-group button {
    padding: 0 14px;
    background: var(--cream-2);
    border-left: 1px solid var(--light-border);
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}
.change-password-box .input-group button:hover {
    background: var(--cream);
    color: var(--gold);
}

/* Password Strength Bar */
.password-strength {
    height: 3px;
    margin-top: 8px;
    border-radius: var(--radius);
    background: var(--light-border);
    transition: width var(--transition), background var(--transition);
    width: 0%;
}
.strength-weak   { background: var(--red);     width: 25%; }
.strength-fair   { background: #c9a84c80;      width: 50%; }
.strength-good   { background: var(--gold);    width: 75%; }
.strength-strong { background: var(--success); width: 100%; }

.field-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

/* Match indicator */
.password-match-ok  { font-size: 0.78rem; color: var(--success); margin-top: 6px; }
.password-match-err { font-size: 0.78rem; color: var(--red);     margin-top: 6px; }

/* Buttons */
.change-password-box .btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
}

/* Responsive */
@media (max-width: 480px) {
    .change-password-box {
        padding: 28px 20px;
    }
}
/* ─── Profile Page ───────────────────────────────────────── */
.profile-page {
    padding: 60px 0;
    background: var(--cream-2);
    min-height: calc(100vh - 200px);
}

/* Profile Avatar */
.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.2rem;
    margin: 0 auto 16px;
    border: 2px solid var(--gold);
}

/* Cards */
.profile-card {
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.profile-card-header {
    background: var(--dark);
    padding: 18px 24px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-card-header h5,
.profile-card-header h6 {
    color: var(--white);
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.profile-card-header i { color: var(--gold); }

.profile-card-header.warning {
    background: var(--gold);
}
.profile-card-header.warning h5 { color: var(--black); }
.profile-card-header.warning i  { color: var(--black); }

.profile-card-body {
    padding: 28px;
}

.profile-card-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--light-border);
    background: var(--cream-2);
}

/* Role Badge */
.badge-role {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--radius);
}
.badge-admin  { background: var(--dark);    color: var(--gold);  }
.badge-staff  { background: var(--gold);    color: var(--black); }
.badge-user   { background: var(--cream);   color: var(--dark);  border: 1px solid var(--light-border); }

/* Stat Cards inside footer */
.stat-card .number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-card .label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Account Status labels */
.profile-card-body .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 4px;
}
.profile-card-body p.mb-0 {
    font-size: 0.88rem;
    color: var(--dark);
}

/* Status badge */
.status-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(39,174,96,0.08);
    padding: 6px 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(39,174,96,0.2);
}

/* Edit Profile Form */
.profile-form .form-group { margin-bottom: 20px; }
.profile-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 8px;
}
.profile-form input,
.profile-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--dark);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition);
}
.profile-form input:focus,
.profile-form select:focus { border-color: var(--gold); }
.profile-form input[readonly] {
    background: var(--cream-2);
    color: var(--text-light);
    cursor: not-allowed;
}
.profile-form .field-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Activity Timeline */
.timeline { display: flex; flex-direction: column; gap: 12px; }

.activity-item {
    padding: 14px 16px;
    border-radius: var(--radius);
    border-left: 3px solid var(--light-border);
    background: var(--cream-2);
    transition: all var(--transition);
}
.activity-item:hover { border-left-color: var(--gold); background: var(--cream); }
.activity-item.primary { border-left-color: var(--gold); }
.activity-item.success { border-left-color: var(--success); }

.activity-item strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}
.activity-item .time {
    font-size: 0.75rem;
    color: var(--text-light);
}
.activity-item .time-ago {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* Security Alerts */
.security-block {
    padding: 18px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--cream-2);
    margin-bottom: 12px;
}
.security-block h6 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.security-block h6 i { color: var(--gold); }
.security-block p {
    font-size: 0.82rem;
    color: var(--text-mid);
    margin-bottom: 12px;
}

/* Empty state for activity */
.empty-activity {
    text-align: center;
    padding: 40px 20px;
}
.empty-activity i {
    font-size: 3rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 12px;
}
.empty-activity p {
    color: var(--text-light);
    font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-form .form-row {
        grid-template-columns: 1fr;
    }
    .profile-card-body { padding: 20px; }
}
/* ─── Profile Page ───────────────────────────────────────── */
.profile-page { padding: 48px 0; min-height: 100vh; }

.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

/* Cards */
.profile-card {
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.profile-card-header {
    background: var(--dark);
    padding: 16px 22px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-card-header h5,
.profile-card-header h6 {
    color: var(--white);
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.profile-card-header i { color: var(--gold); font-size: 1rem; }
.profile-card-header.warning { background: var(--gold); border-bottom-color: var(--dark); }
.profile-card-header.warning h5,
.profile-card-header.warning i { color: var(--black); }

.profile-card-body   { padding: 24px; }
.profile-card-center { padding: 28px 24px; text-align: center; }
.profile-card-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--light-border);
    background: var(--cream-2);
}

/* Avatar */
.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.2rem;
    margin: 0 auto 16px;
    border: 2px solid var(--gold);
}
.profile-username {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 4px;
}
.profile-email {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* Role Badge */
.badge-role {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.badge-admin { background: var(--dark);  color: var(--gold);  }
.badge-staff { background: var(--gold);  color: var(--black); }
.badge-user  { background: var(--cream); color: var(--dark); border: 1px solid var(--light-border); }

/* Profile action buttons */
.profile-actions { display: flex; flex-direction: column; gap: 10px; }
.profile-actions .btn { justify-content: center; }

/* Stat Cards */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card { text-align: center; }
.stat-card .number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-card .label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Status labels */
.status-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 6px;
    display: block;
}
.status-value {
    font-size: 0.88rem;
    color: var(--dark);
    margin-bottom: 16px;
}
.status-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(39,174,96,0.08);
    padding: 6px 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(39,174,96,0.2);
}

/* Inline alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px 14px 18px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
}
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-close {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    font-size: 1.1rem; cursor: pointer;
    opacity: 0.5; transition: opacity var(--transition);
}
.alert-close:hover { opacity: 1; }

/* Profile Form */
.profile-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.profile-form .form-group { display: flex; flex-direction: column; }
.profile-form label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 7px;
}
.profile-form input {
    padding: 11px 14px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--dark);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition);
}
.profile-form input:focus { border-color: var(--gold); }
.profile-form input[readonly] {
    background: var(--cream-2);
    color: var(--text-light);
    cursor: not-allowed;
}
.profile-form .field-hint {
    font-size: 0.73rem;
    color: var(--text-light);
    margin-top: 5px;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 10px; }
.activity-item {
    padding: 13px 16px;
    border-radius: var(--radius);
    border-left: 3px solid var(--light-border);
    background: var(--cream-2);
    transition: all var(--transition);
}
.activity-item:hover   { border-left-color: var(--gold); background: var(--cream); }
.activity-item.primary { border-left-color: var(--gold); }
.activity-item.success { border-left-color: var(--success); }
.activity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}
.activity-item strong  { font-size: 0.88rem; color: var(--dark); }
.activity-time         { font-size: 0.75rem; color: var(--text-light); }
.activity-time-ago     { font-size: 0.73rem; color: var(--text-light); }

/* Empty state */
.empty-activity { text-align: center; padding: 40px 20px; }
.empty-activity i { font-size: 3rem; color: var(--text-light); display: block; margin-bottom: 12px; }
.empty-activity p { color: var(--text-light); font-size: 0.88rem; }

/* Security blocks */
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.security-block {
    padding: 18px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    background: var(--cream-2);
}
.security-block h6 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.security-block h6 i { color: var(--gold); }
.security-block p { font-size: 0.82rem; color: var(--text-mid); margin-bottom: 12px; }

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalFadeUp 0.25s ease;
}
@keyframes modalFadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: var(--dark);
    border-bottom: 2px solid var(--gold);
}
.modal-title {
    display: flex; align-items: center; gap: 8px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.modal-title i { color: var(--gold); }
.modal-close {
    background: none; border: none;
    color: var(--text-light); font-size: 1.4rem;
    cursor: pointer; line-height: 1;
    transition: color var(--transition);
}
.modal-close:hover { color: var(--gold); }
.modal-body   { padding: 28px; }
.modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--light-border);
    display: flex; justify-content: flex-end; gap: 10px;
}
.modal-hint {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: #d1ecf1; color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: var(--radius);
    font-size: 0.82rem;
    margin-top: 16px;
}
.file-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--dark);
    cursor: pointer;
}

/* Profile Responsive */
@media (max-width: 1024px) {
    .profile-grid { grid-template-columns: 280px 1fr; gap: 20px; }
}
@media (max-width: 768px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-form .form-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
}
/* =====================================================
   RaksMan POS — Stylesheet
   All rules scoped to .pos-body so they never
   conflict with the main e-commerce style.css
   ===================================================== */

/* ── Body / reset ── */
.pos-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #f8fafc;
    font-family: 'Jost', sans-serif;
}

/* ── Main two-column layout ── */
.pos-body .pos-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    height: 100vh;
    width: 100%;
}

/* ══════════════════════════════════════════════
   LEFT PANEL — Products
══════════════════════════════════════════════ */
.pos-body .pos-products-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
    background: #ffffff;
}

/* ── Top bar ── */
.pos-body .pos-topbar {
    height: 68px;
    min-height: 68px;
    padding: 0 20px;
    background: #ffffff;
    border-bottom: 1px solid #e8e3dc;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Brand / logo */
.pos-body .pos-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.pos-body .pos-brand img {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    object-fit: cover;
}
.pos-body .pos-brand-text .pos-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 900;
    color: #111111;
    line-height: 1.1;
}
.pos-body .pos-brand-text .pos-brand-sub {
    font-size: 0.70rem;
    color: #9a9a9a;
    line-height: 1;
}

/* Search */
.pos-body .pos-search-wrap {
    flex: 1;
    position: relative;
}
.pos-body .pos-search-input {
    width: 100%;
    padding: 10px 42px 10px 16px;
    border: 1.5px solid #e8e3dc;
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    color: #111111;
    background: #faf8f5;
    outline: none;
    transition: border-color 0.25s;
}
.pos-body .pos-search-input:focus {
    border-color: #c9a84c;
    background: #ffffff;
}
.pos-body .pos-search-input::placeholder { color: #9a9a9a; }
.pos-body .pos-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a9a9a;
    font-size: 0.9rem;
    pointer-events: none;
}

/* Scan button */
.pos-body .pos-scan-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.25s;
    white-space: nowrap;
}
.pos-body .pos-scan-btn:hover { background: #c9a84c; color: #111111; }

/* ── Category tabs ── */
.pos-body .pos-cats {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: #faf8f5;
    border-bottom: 1px solid #e8e3dc;
    overflow-x: auto;
    scrollbar-width: thin;
}
.pos-body .pos-cats::-webkit-scrollbar { height: 3px; }
.pos-body .pos-cats::-webkit-scrollbar-thumb { background: #e8e3dc; border-radius: 2px; }

.pos-body .pos-cat-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e8e3dc;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #6b6b6b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.pos-body .pos-cat-tab:hover,
.pos-body .pos-cat-tab.active {
    background: #111111;
    color: #c9a84c;
    border-color: #111111;
}

/* ── Product cards grid ── */
.pos-body .pos-cards-grid {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
    align-content: start;
    -webkit-overflow-scrolling: touch;
}

/* Product card */
.pos-body .pos-product-card {
    background: #ffffff;
    border: 1px solid #e8e3dc;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.25s;
    overflow: hidden;
}
.pos-body .pos-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #c9a84c;
}

/* Card image area */
.pos-body .pos-card-img {
    height: 110px;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a84c;
    font-size: 2.2rem;
    flex-shrink: 0;
}

/* Card text body */
.pos-body .pos-card-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pos-body .pos-card-name {
    font-weight: 600;
    font-size: 0.83rem;
    color: #111111;
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}
.pos-body .pos-card-sku {
    font-size: 0.65rem;
    color: #9a9a9a;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pos-body .pos-card-price {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #27ae60;
    margin-bottom: 6px;
}
.pos-body .pos-card-stock {
    font-size: 0.68rem;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 7px;
    border-top: 1px solid #f0ede8;
}
.pos-body .pos-card-stock.low { color: #c0392b; }

/* No results */
.pos-body .pos-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #9a9a9a;
}
.pos-body .pos-no-results i       { font-size: 3rem; display: block; margin-bottom: 12px; opacity: 0.4; }
.pos-body .pos-no-results h4      { font-family: 'Playfair Display', serif; color: #111111; margin-bottom: 6px; font-size: 1.1rem; }
.pos-body .pos-no-results p       { font-size: 0.85rem; }


/* ══════════════════════════════════════════════
   RIGHT PANEL — Cart
══════════════════════════════════════════════ */
.pos-body .pos-cart-panel {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e8e3dc;
}

/* Cart header — exactly same height as .pos-topbar */
.pos-body .pos-cart-header {
    height: 68px;
    min-height: 68px;
    padding: 0 20px;
    background: #111111;
    border-bottom: 2px solid #c9a84c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}
.pos-body .pos-cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.pos-body .pos-cart-title i { color: #c9a84c; }
.pos-body .pos-cart-count {
    background: #c9a84c;
    color: #111111;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 0.70rem;
    font-weight: 700;
}
.pos-body .pos-cart-ts {
    font-size: 0.70rem;
    color: rgba(255,255,255,0.45);
    margin-top: 3px;
}

/* Scrollable items area */
.pos-body .pos-cart-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}

/* Empty state */
.pos-body .pos-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9a9a9a;
    text-align: center;
    padding: 40px 20px;
}
.pos-body .pos-cart-empty i  { font-size: 3rem; margin-bottom: 14px; opacity: 0.35; }
.pos-body .pos-cart-empty h4 { font-family: 'Playfair Display', serif; color: #111111; margin-bottom: 6px; font-size: 1rem; }
.pos-body .pos-cart-empty p  { font-size: 0.82rem; }

/* Cart item row */
.pos-body .pos-cart-item {
    border: 1px solid #e8e3dc;
    border-radius: 3px;
    padding: 11px 12px;
    margin-bottom: 8px;
    background: #ffffff;
    transition: border-color 0.2s, background 0.2s;
}
.pos-body .pos-cart-item:hover { border-color: #c9a84c; background: #faf8f5; }

.pos-body .pos-ci-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.pos-body .pos-ci-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #111111;
    flex: 1;
    margin-right: 8px;
    line-height: 1.3;
}
.pos-body .pos-ci-total {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #111111;
    white-space: nowrap;
}
.pos-body .pos-ci-sku {
    font-size: 0.68rem;
    color: #9a9a9a;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.pos-body .pos-ci-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* Editable price */
.pos-body .pos-ci-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #27ae60;
    font-weight: 600;
}
.pos-body .pos-price-input {
    width: 72px;
    padding: 4px 7px;
    border: 1px solid #e8e3dc;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    color: #27ae60;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
}
.pos-body .pos-price-input:focus { border-color: #c9a84c; }

/* Quantity +/- */
.pos-body .pos-qty-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
.pos-body .pos-qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e8e3dc;
    border-radius: 3px;
    background: #ffffff;
    color: #111111;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.pos-body .pos-qty-btn:hover { background: #faf8f5; border-color: #c9a84c; color: #c9a84c; }
.pos-body .pos-qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #e8e3dc;
    border-radius: 3px;
    padding: 4px 2px;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: #111111;
    outline: none;
}
.pos-body .pos-qty-input:focus { border-color: #c9a84c; }

/* Remove button */
.pos-body .pos-ci-remove {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #c0392b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.65;
    transition: opacity 0.2s;
    font-family: 'Jost', sans-serif;
}
.pos-body .pos-ci-remove:hover { opacity: 1; }

/* ── Cart summary / footer ── */
.pos-body .pos-cart-summary {
    flex-shrink: 0;
    padding: 14px 16px;
    border-top: 1px solid #e8e3dc;
    background: #faf8f5;
}
.pos-body .pos-sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b6b6b;
    margin-bottom: 6px;
}
.pos-body .pos-sum-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 2px solid #e8e3dc;
}

/* Checkout button */
.pos-body .pos-checkout-btn {
    width: 100%;
    margin-top: 14px;
    padding: 13px;
    background: #27ae60;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
}
.pos-body .pos-checkout-btn:hover        { background: #219150; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(39,174,96,0.25); }
.pos-body .pos-checkout-btn:disabled     { background: #9a9a9a; cursor: not-allowed; transform: none; box-shadow: none; }

/* Clear cart button */
.pos-body .pos-clear-btn {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: transparent;
    color: #6b6b6b;
    border: 1px solid #e8e3dc;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s;
}
.pos-body .pos-clear-btn:hover { border-color: #c0392b; color: #c0392b; }


/* ══════════════════════════════════════════════
   PAYMENT MODAL
══════════════════════════════════════════════ */
.pos-body .pos-modal-wrap {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    padding: 16px;
}
.pos-body .pos-modal-wrap.open { opacity: 1; visibility: visible; }

.pos-body .pos-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 490px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transform: translateY(-16px);
    transition: transform 0.25s;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.pos-body .pos-modal-wrap.open .pos-modal-box { transform: translateY(0); }

/* Modal header */
.pos-body .pos-modal-head {
    padding: 16px 20px;
    background: #111111;
    border-bottom: 2px solid #c9a84c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.pos-body .pos-modal-head h5 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pos-body .pos-modal-head h5 i { color: #c9a84c; }
.pos-body .pos-modal-x {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.pos-body .pos-modal-x:hover { color: #c9a84c; }

/* Modal body / footer */
.pos-body .pos-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.pos-body .pos-modal-foot {
    padding: 14px 20px;
    border-top: 1px solid #e8e3dc;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* Modal form elements */
.pos-body .pos-mf-group { margin-bottom: 14px; }
.pos-body .pos-mf-label {
    display: block;
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 6px;
    font-family: 'Jost', sans-serif;
}
.pos-body .pos-mf-input {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #e8e3dc;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    color: #111111;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}
.pos-body .pos-mf-input:focus { border-color: #c9a84c; }
.pos-body .pos-mf-input.big {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: #27ae60;
    font-family: 'Playfair Display', serif;
}

/* Payment method selector */
.pos-body .pos-pay-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.pos-body .pos-pay-opt {
    padding: 11px 8px;
    border: 2px solid #e8e3dc;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #6b6b6b;
}
.pos-body .pos-pay-opt i { font-size: 1.2rem; display: block; margin-bottom: 5px; color: #c9a84c; }
.pos-body .pos-pay-opt:hover,
.pos-body .pos-pay-opt.active { border-color: #c9a84c; background: rgba(201,168,76,0.07); color: #111111; }

/* Change due display */
.pos-body .pos-change-box {
    text-align: center;
    padding: 13px;
    background: #faf8f5;
    border: 1px solid #e8e3dc;
    border-radius: 3px;
    margin-top: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
}
.pos-body .change-ok  { color: #27ae60; font-weight: 700; }
.pos-body .change-err { color: #c0392b; font-weight: 700; }

/* Modal action buttons */
.pos-body .pos-btn-cancel {
    padding: 9px 20px;
    border: 1px solid #e8e3dc;
    border-radius: 3px;
    background: #ffffff;
    color: #111111;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
}
.pos-body .pos-btn-cancel:hover { border-color: #111111; }
.pos-body .pos-btn-pay {
    padding: 9px 24px;
    border: none;
    border-radius: 3px;
    background: #c9a84c;
    color: #111111;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
}
.pos-body .pos-btn-pay:hover    { background: #e8c96e; transform: translateY(-1px); }
.pos-body .pos-btn-pay:disabled { background: #9a9a9a; cursor: not-allowed; transform: none; }


/* ══════════════════════════════════════════════
   UTILITIES & ANIMATIONS
══════════════════════════════════════════════ */

/* Toast notifications */
.pos-body .pos-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 11px 18px;
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: toastIn 0.28s ease;
    max-width: 280px;
}
.pos-body .pos-toast.success { background: #27ae60; }
.pos-body .pos-toast.error   { background: #c0392b; }
.pos-body .pos-toast.info    { background: #111111; border-left: 3px solid #c9a84c; }
@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* Add-to-cart fly animation */
.pos-body .cart-fly {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c9a84c;
    animation: cartFly 0.7s ease-in-out forwards;
}
@keyframes cartFly {
    0%   { transform: scale(1)   translate(0,0);                         opacity: 1; }
    100% { transform: scale(0.1) translate(var(--tx,0), var(--ty,0));    opacity: 0; }
}

/* Mobile cart toggle FAB */
.pos-body .pos-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 200;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #111111;
    color: #c9a84c;
    border: 2px solid #c9a84c;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: all 0.25s;
}
.pos-body .pos-mobile-toggle:hover { background: #c9a84c; color: #111111; }
.pos-body .pos-mobile-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    font-size: 0.60rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
}


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .pos-body .pos-container { grid-template-columns: 1fr 360px; }
}

@media (max-width: 992px) {
    .pos-body .pos-container { grid-template-columns: 1fr; }

    /* Cart slides up from bottom on mobile */
    .pos-body .pos-cart-panel {
        display: none;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 70vh;
        z-index: 150;
        border-left: none;
        border-top: 2px solid #c9a84c;
        box-shadow: 0 -6px 24px rgba(0,0,0,0.15);
    }
    .pos-body .pos-cart-panel.open { display: flex; }
    .pos-body .pos-mobile-toggle   { display: flex; }
    .pos-body .pos-cards-grid      { padding-bottom: 80px; }
}

@media (max-width: 768px) {
    .pos-body .pos-topbar {
        flex-wrap: wrap;
        height: auto;
        min-height: 68px;
        padding: 10px 14px;
        gap: 10px;
    }
    .pos-body .pos-search-wrap { order: 3; flex-basis: 100%; }
    .pos-body .pos-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        padding: 10px;
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .pos-body .pos-cards-grid  { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
    .pos-body .pos-card-img    { height: 85px; font-size: 1.8rem; }
    .pos-body .pos-pay-methods { grid-template-columns: 1fr; }
}
