:root {
  --primary: #2c6e6a;
  --primary-dark: #1d4e4b;
  --primary-light: #4a9490;
  --accent: #c8a96e;
  --accent-dark: #a8843e;
  --bg: #faf9f7;
  --bg-card: #fff;
  --bg-muted: #f4f2ee;
  --text: #2b2b2b;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e8e4de;
  --border-dark: #d0cbc3;
  --red: #e04040;
  --green: #28a745;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.07);
  --shadow-md: 0 6px 30px rgba(0,0,0,.10);
  --shadow-lg: 0 14px 50px rgba(0,0,0,.14);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --container: 1280px;
  --header-h: 68px;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden }
img,video { max-width: 100%; display: block }
a { text-decoration: none; color: inherit; transition: color var(--transition) }
ul,ol { list-style: none }
button { cursor: pointer; border: none; background: none; font-family: inherit }
input,textarea,select { font-family: inherit; font-size: inherit }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px }
::-webkit-scrollbar { width: 6px; height: 6px }
::-webkit-scrollbar-track { background: var(--bg-muted) }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px }
::selection { background: rgba(44,110,106,.15); color: var(--primary-dark) }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px }
.section { padding: 64px 0 }
.section-alt { background: var(--bg-muted) }
.section-head { text-align: center; margin-bottom: 40px }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.5rem); font-weight: 700; margin-bottom: 10px; line-height: 1.2 }
.section-head p { color: var(--text-muted); font-size: .95rem; max-width: 500px; margin: 0 auto }
.page-hero { background: var(--bg-muted); border-bottom: 1px solid var(--border); padding: 48px 24px; text-align: center }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 700; margin-bottom: 8px }
.breadcrumb { font-size: .83rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap }
.breadcrumb a { color: var(--primary) }
.sep { color: var(--text-light) }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 28px; border-radius: 99px; font-weight: 600; font-size: .88rem; font-family: var(--font-body); transition: all var(--transition); cursor: pointer; border: none; white-space: nowrap; text-decoration: none }
.btn:active { transform: scale(.97) }
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none }
.btn-primary { background: var(--primary); color: #fff }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px) }
.btn-accent { background: var(--accent); color: #fff }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px) }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary) }
.btn-outline:hover { background: var(--primary); color: #fff }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border) }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary) }
.btn-danger { background: var(--red); color: #fff }
.btn-sm { padding: 7px 18px; font-size: .78rem }
.btn-lg { padding: 14px 36px; font-size: .95rem }
.btn-block { width: 100% }

.form-group { margin-bottom: 20px }
.form-label { font-size: .83rem; font-weight: 600; margin-bottom: 7px; display: block; color: var(--text) }
.form-control { width: 100%; padding: 11px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .9rem; color: var(--text); background: var(--bg-card); transition: border-color var(--transition); outline: none; appearance: none }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(44,110,106,.1) }
.form-control::placeholder { color: var(--text-light) }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .7rem; font-weight: 700; text-transform: capitalize }
.badge-success { background: #d4edda; color: #155724 }
.badge-warning { background: #fff3cd; color: #856404 }
.badge-danger  { background: #f8d7da; color: #721c24 }
.badge-info    { background: #d1ecf1; color: #0c5460 }
.badge-muted   { background: var(--bg-muted); color: var(--text-muted) }

.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px }
.loading-wrap { display: flex; justify-content: center; align-items: center; padding: 80px }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }

.qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden }
.qty-ctrl button { width: 34px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--text-muted); transition: all var(--transition) }
.qty-ctrl button:hover { background: var(--bg-muted); color: var(--primary) }
.qty-ctrl span { width: 40px; text-align: center; font-weight: 600; font-size: .9rem; border-left: 1px solid var(--border); border-right: 1px solid var(--border); line-height: 36px }

.empty-state { text-align: center; padding: 80px 24px }
.empty-state i { font-size: 3.5rem; color: var(--text-light); margin-bottom: 20px; display: block }
.empty-state h3 { font-family: var(--font-display); margin-bottom: 8px }
.empty-state p { color: var(--text-muted); margin-bottom: 24px }
.view-all-wrap { text-align: center; margin-top: 36px }

/* Product Card */
.pc { border-radius: 10px; overflow: hidden; transition: box-shadow .3s, transform .3s }
.pc:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-3px) }
.pc-img-wrap { position: relative; aspect-ratio: 1; background: #f4f4f2; border-radius: 10px; overflow: hidden }
.pc-img-wrap > a { display: block; width: 100%; height: 100% }
.pc-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s }
.pc:hover .pc-img { transform: scale(1.05) }
.pc-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #ccc }
.pc-badge { position: absolute; top: 10px; left: 10px; background: #e84040; color: #fff; font-size: .65rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; z-index: 2 }
.pc-hover-btns { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 7px; opacity: 0; transform: translateX(10px); transition: opacity .2s, transform .2s; z-index: 3 }
.pc:hover .pc-hover-btns { opacity: 1; transform: translateX(0) }
.pc-btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); color: #555; font-size: .88rem; display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; transition: background .2s, color .2s }
.pc-btn:hover { background: var(--primary); color: #fff }
.pc-btn:disabled { opacity: .3; cursor: not-allowed; pointer-events: none }
.pc-info { padding: 14px 8px 10px; text-align: center }
.pc-stars { display: flex; justify-content: center; gap: 2px; color: #c8b97a; font-size: .72rem; margin-bottom: 7px }
.pc-name { font-size: .88rem; font-weight: 400; color: #222; margin-bottom: 6px; line-height: 1.4 }
.pc-name a { color: inherit; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.pc-name a:hover { color: var(--primary) }
.pc-price { display: flex; justify-content: center; align-items: center; gap: 8px }
.pc-cur { font-size: .9rem; font-weight: 600; color: #222 }
.pc-old { font-size: .82rem; color: #999; font-weight: 400; text-decoration: line-through }

/* Header */
.announcement-bar { background: var(--primary); color: #fff; text-align: center; padding: 8px 16px; font-size: .82rem; font-weight: 500 }
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: box-shadow var(--transition) }
.site-header.scrolled { box-shadow: var(--shadow-sm); background: #fff }
.header-inner { display: flex; align-items: center; height: 68px; gap: 8px; padding: 0 24px }
.site-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--primary); flex-shrink: 0; display: flex; align-items: center; gap: 8px; text-decoration: none }
.logo-img { object-fit: contain; display: block; max-height: 52px; width: auto }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; margin: 0 8px; overflow: hidden }
.site-nav a { font-size: .9rem; font-weight: 500; color: var(--text-muted); padding: 7px 11px; border-radius: var(--radius-sm); transition: all var(--transition); text-decoration: none; white-space: nowrap }
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: rgba(44,110,106,.06) }
.header-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: auto }
.header-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; transition: all var(--transition); text-decoration: none; background: none; border: none; flex-shrink: 0 }
.header-icon:hover { background: rgba(44,110,106,.08); color: var(--primary) }
.header-icon .count { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--primary); color: #fff; font-size: .58rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; padding: 0 3px }
.mobile-menu-btn { display: none; width: 40px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; transition: all var(--transition); background: none; border: none }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999 }
.mobile-overlay.show { display: block }
.mobile-drawer { position: fixed; top: 0; right: -100%; bottom: 0; width: min(320px, 85vw); background: var(--bg-card); z-index: 1000; box-shadow: var(--shadow-lg); transition: right .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column }
.mobile-drawer.open { right: 0 }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border) }
.drawer-close { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; background: none; border: none }
.drawer-nav { flex: 1; padding: 12px 0; overflow-y: auto }
.drawer-nav a, .drawer-nav button { display: flex; align-items: center; gap: 12px; padding: 13px 20px; font-size: .95rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: all var(--transition); width: 100%; text-align: left; border: none; background: none; font-family: var(--font-body) }
.drawer-nav a:hover, .drawer-nav button:hover { background: var(--bg-muted); color: var(--primary) }
.drawer-divider { height: 1px; background: var(--border); margin: 8px 0 }

/* Footer */
.site-footer { background: #1a1a1a; color: #aaa; padding: 56px 0 0 }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #2d2d2d }
.footer-brand-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--accent) }
.footer-tagline { font-size: .82rem; color: #666; margin: 10px 0 18px; line-height: 1.6 }
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px }
.fc-item { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: #888 }
.fc-item i { color: var(--accent); margin-top: 2px; flex-shrink: 0 }
.footer-socials { display: flex; gap: 10px }
.footer-socials a { width: 34px; height: 34px; border-radius: 50%; background: #2d2d2d; display: flex; align-items: center; justify-content: center; color: #888; font-size: .9rem; transition: all .2s; text-decoration: none }
.footer-socials a:hover { background: var(--accent); color: #fff }
.footer-col h4 { font-size: .82rem; font-weight: 700; color: #e0e0e0; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px }
.footer-col ul { display: flex; flex-direction: column; gap: 10px }
.footer-col ul li a { font-size: .82rem; color: #888; text-decoration: none; transition: color .2s }
.footer-col ul li a:hover { color: var(--accent) }
.footer-nl-text { font-size: .8rem; color: #666; margin-bottom: 14px; line-height: 1.6 }
.footer-nl { display: flex; border-radius: 6px; overflow: hidden; border: 1px solid #2d2d2d }
.footer-nl input { flex: 1; background: #111; border: none; color: #ccc; padding: 10px 14px; font-size: .82rem; outline: none; font-family: inherit }
.footer-nl input::placeholder { color: #555 }
.footer-nl button { background: var(--accent); color: #fff; border: none; padding: 0 16px; font-size: .82rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .2s }
.footer-nl button:hover { background: #a8843e }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: .78rem; color: #555; flex-wrap: wrap; gap: 8px }
.footer-bottom-links { display: flex; gap: 16px }
.footer-bottom-links a { color: #555; text-decoration: none; transition: color .2s }
.footer-bottom-links a:hover { color: var(--accent) }

/* Auth */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--bg-muted) }
.auth-card { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; width: 100%; max-width: 480px }
.auth-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--primary); display: block; text-align: center; margin-bottom: 4px }
.auth-card h1 { font-family: var(--font-display); font-size: 1.5rem; text-align: center; margin-bottom: 4px }
.auth-sub { text-align: center; color: var(--text-muted); font-size: .86rem; margin-bottom: 28px }
.auth-footer { text-align: center; font-size: .84rem; color: var(--text-muted); margin-top: 16px }
.auth-footer a { color: var(--primary); font-weight: 600 }
.divider { text-align: center; position: relative; margin: 20px 0 }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border) }
.divider span { position: relative; background: var(--bg-card); padding: 0 12px; font-size: .78rem; color: var(--text-muted) }
.input-wrap { position: relative }
.input-wrap .form-control { padding-right: 44px }
.input-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); cursor: pointer; padding: 4px; background: none; border: none }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .86rem }
.alert-error { background: #fee; color: #c0392b; border: 1px solid #f5c6cb }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none }
.toast { background: #1a1a1a; color: #fff; padding: 12px 20px; border-radius: var(--radius); font-size: .86rem; box-shadow: var(--shadow-lg); animation: slideIn .3s ease; display: flex; align-items: center; gap: 10px; pointer-events: all; min-width: 240px; max-width: 360px }
.toast.success { border-left: 3px solid var(--green) }
.toast.error { border-left: 3px solid var(--red) }
.toast.info { border-left: 3px solid var(--primary) }
.toast.warning { border-left: 3px solid var(--accent) }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0 } to { transform: translateX(0); opacity: 1 } }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9999; display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; backdrop-filter: blur(4px) }
.search-box { display: flex; align-items: center; width: min(640px,90vw); background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg) }
.search-icon { padding: 0 16px; color: var(--text-muted); font-size: 1rem; flex-shrink: 0 }
.search-input { flex: 1; padding: 18px 0; font-size: 1.05rem; border: none; outline: none; font-family: var(--font-body) }
.search-close-btn { padding: 0 20px; height: 60px; color: var(--text-muted); font-size: 1rem; background: none; border: none; cursor: pointer }

/* Responsive */
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3,1fr) } .footer-grid { grid-template-columns: 1fr 1fr } }
@media (max-width: 960px) { .site-nav { display: none } .mobile-menu-btn { display: flex } .header-inner { height: 60px } }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2,1fr); gap: 16px } .section { padding: 48px 0 } .form-row { grid-template-columns: 1fr } .breadcrumb { display: none } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr } .footer-bottom { flex-direction: column; text-align: center } }
@media (max-width: 480px) { .container { padding: 0 16px } .product-grid { gap: 12px } .auth-card { padding: 28px 20px } }
