/* ========== RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --brand: #0D7377;
    --brand-dark: #095355;
    --brand-light: #1BA3A8;
    --brand-bg: #F0FAFA;
    --dark: #1A1A2E;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --red: #dc2626;
    --green: #16a34a;
    --yellow: #ca8a04;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
}
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--gray-800); line-height: 1.6; background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-secondary:hover { background: var(--brand); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ========== FORMS ========== */
.input { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 14px; transition: border-color .2s; outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,115,119,.1); }
label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-700); margin-bottom: 4px; }
select.input { appearance: auto; }
textarea.input { resize: vertical; min-height: 100px; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ========== TOP BAR ========== */
.topbar { background: var(--brand); color: #fff; font-size: 12px; padding: 6px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }

/* ========== HEADER ========== */
.header { background: #fff; border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--dark); }
.logo-icon { width: 32px; height: 32px; background: var(--brand); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--gray-600); transition: color .2s; }
.nav a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions a, .header-actions button { padding: 8px; color: var(--gray-600); background: none; border: none; cursor: pointer; position: relative; font-size: 18px; }
.header-actions a:hover, .header-actions button:hover { color: var(--brand); }
.cart-badge { position: absolute; top: 0; right: -2px; background: var(--brand); color: #fff; 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; }

/* ========== MEGA MENU ========== */
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-item > a::after { content: '\25BE'; font-size: 10px; transition: transform .2s; }
.nav-item.open > a::after { transform: rotate(180deg); }
.nav-item.open > a { color: var(--brand); }
.mega-menu { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--gray-100); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.12); padding: 28px 32px; width: 820px; z-index: 200; max-height: 70vh; overflow-y: auto; }
.mega-menu::-webkit-scrollbar { width: 6px; }
.mega-menu::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.mega-menu::-webkit-scrollbar-track { background: transparent; }
.nav-item.open .mega-menu.loaded { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 28px; }
.mega-menu-col { min-width: 0; margin-bottom: 8px; }
.mega-menu-col h4 { font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--gray-100); }
.mega-menu-col h4 a { color: var(--brand); }
.mega-menu-col h4 a:hover { color: var(--brand-dark); }
.mega-menu-col ul { list-style: none; margin-bottom: 12px; }
.mega-menu-col ul li { margin-bottom: 2px; }
.mega-menu-col ul a { font-size: 13px; color: var(--gray-600); padding: 3px 0; display: block; transition: color .15s; }
.mega-menu-col ul a:hover { color: var(--brand); }
.mega-menu-all { grid-column: 1 / -1; text-align: center; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--gray-100); }

/* ========== HERO ========== */
.hero { background: url('../images/hero-bg.jpg') center/cover no-repeat; padding: 100px 0; color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,46,.55), rgba(9,83,85,.45), rgba(13,115,119,.35)); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero h1 span { color: var(--brand-light); }
.hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 500px; margin-bottom: 32px; text-shadow: 0 1px 8px rgba(0,0,0,.2); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); padding: 6px 14px; border-radius: 20px; font-size: 12px; margin-bottom: 24px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1); }
.hero-badge .dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-btn-explore { background: #fff; color: #1a1a2e; font-weight: 700; border: none; border-radius: 8px; transition: all .2s; }
.hero-btn-explore:hover { background: var(--gray-100); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* ========== SECTIONS ========== */
.section { padding: 64px 0; }
.section-gray { background: var(--gray-50); }
.section-brand-bg { background: var(--brand-bg); }
.section-dark { background: var(--dark); color: #fff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.section-title p { color: var(--gray-500); max-width: 500px; margin: 0 auto; }

/* ========== CATEGORIES CAROUSEL ========== */
.categories-carousel { position: relative; }
.categories-track { display: flex; gap: 16px; overflow: hidden; scroll-behavior: smooth; }
.category-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 24px; text-align: center; transition: all .2s; cursor: pointer; min-width: calc((100% - 80px) / 6); flex-shrink: 0; }
.category-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.category-card .cat-icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--gray-700); display: flex; align-items: center; justify-content: center; }
.category-card:hover .cat-icon { color: var(--brand); }
.category-card h3 { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.category-card .count { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--gray-200); box-shadow: 0 2px 8px rgba(0,0,0,.1); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; color: var(--gray-600); transition: all .2s; }
.carousel-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }
.carousel-btn:disabled { opacity: 0; cursor: default; pointer-events: none; }

/* SVG icon helpers */
.header-actions svg { display: block; }
.feature-card .icon svg { display: block; }
.placeholder-icon { color: var(--gray-300); }
.placeholder-icon svg { width: 48px; height: 48px; }

/* ========== BRAND STORY ========== */
.brand-story { position: relative; padding: 100px 0; overflow: hidden; background: url('../images/brand-story-bg.jpg') center/cover no-repeat fixed; }
.brand-story-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,46,.85) 0%, rgba(9,83,85,.75) 50%, rgba(13,115,119,.65) 100%); }
.brand-story-content { position: relative; z-index: 1; text-align: center; color: #fff; max-width: 700px; margin: 0 auto; }
.brand-story-badge { display: inline-block; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); padding: 6px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; animation: fadeInUp .8s ease; }
.brand-story-content h2 { font-size: 40px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; text-shadow: 0 2px 20px rgba(0,0,0,.3); animation: fadeInUp .8s ease .15s both; }
.brand-story-content p { font-size: 16px; color: rgba(255,255,255,.8); line-height: 1.8; margin-bottom: 32px; text-shadow: 0 1px 8px rgba(0,0,0,.2); animation: fadeInUp .8s ease .3s both; }
.brand-story-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; animation: fadeInUp .8s ease .45s both; }
.brand-stat { text-align: center; }
.brand-stat-num { font-size: 36px; font-weight: 800; display: block; color: var(--brand-light); text-shadow: 0 0 20px rgba(27,163,168,.4); }
.brand-stat-label { font-size: 13px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ========== PRODUCT GRID ========== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; transition: all .2s; }
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.product-card .image { aspect-ratio: 1; background: linear-gradient(135deg, var(--brand-bg), var(--gray-100)); display: flex; align-items: center; justify-content: center; position: relative; font-size: 48px; color: rgba(13,115,119,.15); }
.product-card .sale-badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.product-card .out-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.product-card .out-overlay span { background: #fff; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.product-card .cart-btn { position: absolute; bottom: 12px; right: 12px; width: 36px; height: 36px; background: var(--brand); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 16px; opacity: 0; transition: all .2s; }
.product-card:hover .cart-btn { opacity: 1; }
.product-card .cart-btn:hover { background: var(--brand-dark); }
.product-card .info { padding: 16px; }
.product-card .category-name { font-size: 12px; color: var(--brand); font-weight: 500; margin-bottom: 4px; }
.product-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .price { font-size: 18px; font-weight: 700; color: var(--gray-800); }
.product-card .price.has-sale .current { color: var(--brand); }
.product-card .price .old { font-size: 14px; color: var(--gray-400); text-decoration: line-through; margin-left: 8px; }

/* ========== BLOG ========== */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.blog-sidebar { position: sticky; top: 80px; align-self: start; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-grid-home { grid-template-columns: repeat(3, 1fr); }
.blog-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; transition: all .25s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.blog-card-img { aspect-ratio: 16/10; background: var(--gray-100); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-placeholder { display: flex; align-items: center; justify-content: center; color: var(--gray-300); }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12px; color: var(--gray-400); }
.blog-card-cat { background: var(--brand-bg); color: var(--brand); font-weight: 600; padding: 2px 10px; border-radius: 12px; font-size: 11px; }
.blog-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-body p { font-size: 13px; color: var(--gray-500); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-read { font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 12px; }
.blog-card:hover .blog-card-read { text-decoration: underline; }

/* Blog Article */
.blog-article { max-width: 760px; margin: 0 auto; }
.blog-article-title { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 24px; color: var(--dark); }
.blog-article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 13px; color: var(--gray-500); flex-wrap: wrap; }
.blog-article-img { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.blog-article-body { font-size: 16px; line-height: 1.8; color: var(--gray-700); }
.blog-article-body h2 { font-size: 24px; font-weight: 700; color: var(--dark); margin: 32px 0 12px; }
.blog-article-body h3 { font-size: 20px; font-weight: 600; color: var(--dark); margin: 24px 0 10px; }
.blog-article-body p { margin-bottom: 16px; }
.blog-article-body ul, .blog-article-body ol { margin: 12px 0 16px 24px; }
.blog-article-body li { margin-bottom: 6px; }
.blog-article-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.blog-article-body blockquote { border-left: 4px solid var(--brand); padding: 12px 20px; background: var(--brand-bg); border-radius: 0 8px 8px 0; margin: 16px 0; font-style: italic; }
.blog-article-body a { color: var(--brand); text-decoration: underline; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.blog-tag { background: var(--gray-100); color: var(--gray-600); font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 20px; }

/* ========== FEATURES ========== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.feature-card .icon { width: 48px; height: 48px; background: rgba(13,115,119,.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--brand); }
.feature-card h3 { font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray-500); }

/* ========== NEWSLETTER ========== */
.newsletter { text-align: center; }
.newsletter h2 { color: #fff; margin-bottom: 8px; }
.newsletter p { color: var(--gray-400); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 12px; max-width: 400px; margin: 0 auto; }
.newsletter-form .input { background: var(--gray-800); border-color: var(--gray-700); color: #fff; }
.newsletter-form .input::placeholder { color: var(--gray-500); }

/* ========== FOOTER ========== */
.footer { background: var(--dark); color: var(--gray-400); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer p { font-size: 14px; line-height: 1.7; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 14px; color: var(--gray-400); transition: color .2s; }
.footer ul a:hover { color: var(--brand-light); }
.footer-bottom { border-top: 1px solid var(--gray-700); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.social-links { display: flex; gap: 8px; margin-top: 16px; }
.social-links a { width: 36px; height: 36px; background: var(--gray-700); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background .2s; }
.social-links a:hover { background: var(--brand); }
.contact-item { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }

/* ========== PAGE HEADER ========== */
.page-header { background: #fff; border-bottom: 1px solid var(--gray-100); padding: 32px 0; }
.page-header h1 { font-size: 28px; font-weight: 700; }
.page-header p { color: var(--gray-500); margin-top: 4px; }
.breadcrumb { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--brand); }

/* ========== SHOP PAGE ========== */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.sidebar-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.sidebar-card ul li { margin-bottom: 4px; }
.sidebar-card ul button { width: 100%; text-align: left; padding: 8px 12px; border: none; background: none; border-radius: 8px; font-size: 14px; color: var(--gray-600); cursor: pointer; transition: all .2s; }
.sidebar-card ul button:hover { background: var(--gray-100); }
.sidebar-card ul button.active { background: var(--brand); color: #fff; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.toolbar select { padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px; }

/* ========== PRODUCT DETAIL ========== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }
.product-image { aspect-ratio: 1; background: var(--gray-100); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 80px; color: rgba(13,115,119,.15); }
.product-info h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.product-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.product-price .current { font-size: 32px; font-weight: 700; }
.product-price .old { font-size: 18px; color: var(--gray-400); text-decoration: line-through; }
.product-price .discount { background: #fef2f2; color: var(--red); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.stock-status { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; }
.stock-dot.in { background: var(--green); }
.stock-dot.out { background: var(--red); }
.quantity-control { display: flex; align-items: center; border: 1px solid var(--gray-200); border-radius: 8px; width: fit-content; }
.quantity-control button { width: 40px; height: 40px; border: none; background: none; cursor: pointer; font-size: 16px; }
.quantity-control span { width: 48px; text-align: center; font-weight: 600; }
.add-to-cart-row { display: flex; gap: 12px; align-items: center; margin: 20px 0; }

/* ========== CART ========== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding: 32px 0; }
.cart-item { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; gap: 16px; margin-bottom: 12px; }
.cart-item .thumb { width: 80px; height: 80px; background: var(--gray-100); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 28px; }
.cart-item .details { flex: 1; }
.cart-item h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item .item-price { color: var(--brand); font-weight: 700; }
.cart-item .item-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cart-item .remove-btn { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 16px; }
.cart-item .remove-btn:hover { color: var(--red); }
.cart-item .line-total { text-align: right; font-weight: 700; white-space: nowrap; }
.cart-summary { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 80px; }
.cart-summary h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.summary-row.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--gray-200); padding-top: 12px; margin-top: 12px; }
.summary-row.total .value { color: var(--brand); }
.free-ship-note { font-size: 12px; color: var(--brand); margin-top: 4px; }
.empty-cart { text-align: center; padding: 80px 20px; }
.empty-cart h2 { font-size: 20px; color: var(--gray-600); margin: 16px 0 8px; }
.empty-cart p { color: var(--gray-400); margin-bottom: 24px; }

/* ========== CHECKOUT ========== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 32px 0; }
.checkout-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.checkout-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.payment-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--gray-200); border-radius: 8px; cursor: pointer; margin-bottom: 8px; transition: all .2s; }
.payment-option.selected { border-color: var(--brand); background: var(--brand-bg); }
.payment-option input { accent-color: var(--brand); }

/* ========== AUTH PAGES ========== */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 40px 16px; background: var(--gray-50); }
.auth-card { background: #fff; border-radius: 16px; padding: 40px; max-width: 420px; width: 100%; box-shadow: var(--shadow); }
.auth-card .logo-icon { margin: 0 auto 16px; width: 48px; height: 48px; font-size: 20px; }
.auth-card h1 { text-align: center; font-size: 24px; margin-bottom: 4px; }
.auth-card .subtitle { text-align: center; color: var(--gray-500); font-size: 14px; margin-bottom: 24px; }
.auth-card .footer-text { text-align: center; font-size: 14px; color: var(--gray-500); margin-top: 20px; }
.auth-card .footer-text a { color: var(--brand); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.auth-divider span { color: var(--gray-400); font-size: 13px; font-weight: 500; }

/* ========== ACCOUNT ========== */
.account-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 32px 0; }
.profile-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.profile-card .avatar { width: 64px; height: 64px; background: rgba(13,115,119,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 24px; color: var(--brand); }
.profile-card h3 { font-size: 16px; font-weight: 600; }
.profile-card .email { font-size: 13px; color: var(--gray-500); }
.profile-card .role-badge { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 600; background: rgba(13,115,119,.1); color: var(--brand); padding: 4px 12px; border-radius: 20px; }
.orders-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.orders-card .header { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); font-size: 16px; font-weight: 700; }
.order-row { padding: 16px 24px; border-bottom: 1px solid var(--gray-50); display: flex; justify-content: space-between; align-items: center; }
.order-row:last-child { border: none; }

/* ========== STATUS BADGES ========== */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-processing { background: #e0e7ff; color: #3730a3; }
.badge-shipped { background: #f3e8ff; color: #7c3aed; }
.badge-delivered { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fef2f2; color: #991b1b; }

/* ========== ADMIN ========== */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar { background: var(--dark); padding: 24px 12px; }
.admin-sidebar h2 { color: #fff; font-size: 16px; padding: 0 12px; margin-bottom: 4px; }
.admin-sidebar .role { color: var(--gray-500); font-size: 11px; padding: 0 12px; margin-bottom: 20px; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--gray-400); font-size: 14px; border-radius: 8px; margin-bottom: 2px; transition: all .15s; }
.admin-sidebar a:hover { color: #fff; background: var(--gray-800); }
.admin-sidebar a.active { color: #fff; background: var(--brand); }
.admin-content { background: var(--gray-50); padding: 32px; }
.admin-content h1 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat-card .icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; margin-bottom: 12px; }
.stat-card .value { font-size: 24px; font-weight: 700; }
.stat-card .label { font-size: 13px; color: var(--gray-500); }

/* Tables */
.table-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-card .table-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }
.table-card .table-header h2 { font-size: 16px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--gray-50); }
th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; }
td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--gray-50); }
tr:hover { background: var(--gray-50); }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ========== UTILITIES ========== */
.text-brand { color: var(--brand); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-yellow { color: var(--yellow); }
.text-gray { color: var(--gray-500); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination button { width: 36px; height: 36px; border: none; border-radius: 8px; background: #fff; color: var(--gray-600); cursor: pointer; font-weight: 500; font-size: 14px; }
.pagination button.active { background: var(--brand); color: #fff; }

/* ========== LOADING ========== */
.skeleton { background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ========== TOAST ========== */
.toast { position: fixed; top: 20px; right: 20px; background: var(--dark); color: #fff; padding: 14px 20px; border-radius: var(--radius); font-size: 14px; z-index: 9999; animation: slideIn .3s ease; max-width: 350px; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav { display: none; }
    .mega-menu { display: none !important; }
    .mobile-menu-btn { display: block; }
    .mobile-nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #fff; z-index: 200; padding: 80px 24px 24px; }
    .mobile-nav a { display: block; padding: 12px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--gray-100); }
    .mobile-nav .close-btn { position: absolute; top: 20px; right: 20px; font-size: 24px; background: none; border: none; cursor: pointer; }
    .hero h1 { font-size: 32px; }
    .hero { padding: 48px 0; }
    .shop-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { display: none; }
    .blog-grid, .blog-grid-home { grid-template-columns: 1fr; }
    .blog-article-title { font-size: 24px; }
    .category-card { min-width: calc((100% - 32px) / 3); }
    .carousel-btn { width: 30px; height: 30px; }
    .carousel-btn.prev { left: -8px; }
    .carousel-btn.next { right: -8px; }
}
