/* ============================================
   Smoke & Vape - Professional E-Commerce UI
   Brand: #283065 (Navy) / #C9510D (Orange)
   Font: Quicksand
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #2a2b2a;
    background: #ffffff;
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #C9510D; }
ul { margin: 0; padding: 0; list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    color: #283065;
    text-transform: uppercase;
    margin: 0 0 0.5em;
    line-height: 1.2;
}
h1 { font-size: 3.2rem; letter-spacing: 0.02em; }
h2 { font-size: 2.8rem; letter-spacing: 0.02em; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }
.text-sm { font-size: 1.4rem; }
.text-xs { font-size: 1.2rem; }
.text-lg { font-size: 1.8rem; }
.text-xl { font-size: 2.2rem; }
.text-muted { color: #6b7280; }
.text-center { text-align: center; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Container --- */
.container {
    max-width: 1530px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 64px; } }

/* --- Spacing Scale --- */
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.4rem; }
.mt-2 { margin-top: 0.8rem; }
.mt-3 { margin-top: 1.2rem; }
.mt-4 { margin-top: 1.6rem; }
.mt-6 { margin-top: 2.4rem; }
.mt-8 { margin-top: 3.2rem; }
.mt-12 { margin-top: 4.8rem; }
.mt-16 { margin-top: 6.4rem; }
.mb-1 { margin-bottom: 0.4rem; }
.mb-2 { margin-bottom: 0.8rem; }
.mb-3 { margin-bottom: 1.2rem; }
.mb-4 { margin-bottom: 1.6rem; }
.mb-6 { margin-bottom: 2.4rem; }
.mb-8 { margin-bottom: 3.2rem; }
.mb-12 { margin-bottom: 4.8rem; }
.ml-1 { margin-left: 0.4rem; }
.ml-2 { margin-left: 0.8rem; }
.ml-3 { margin-left: 1.2rem; }
.mr-1 { margin-right: 0.4rem; }
.mr-2 { margin-right: 0.8rem; }
.p-0 { padding: 0; }
.p-2 { padding: 0.8rem; }
.p-3 { padding: 1.2rem; }
.p-4 { padding: 1.6rem; }
.p-6 { padding: 2.4rem; }
.p-8 { padding: 3.2rem; }
.py-2 { padding-top: 0.8rem; padding-bottom: 0.8rem; }
.py-3 { padding-top: 1.2rem; padding-bottom: 1.2rem; }
.py-4 { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.py-6 { padding-top: 2.4rem; padding-bottom: 2.4rem; }
.py-8 { padding-top: 3.2rem; padding-bottom: 3.2rem; }
.py-12 { padding-top: 4.8rem; padding-bottom: 4.8rem; }
.py-16 { padding-top: 6.4rem; padding-bottom: 6.4rem; }
.px-3 { padding-left: 1.2rem; padding-right: 1.2rem; }
.px-4 { padding-left: 1.6rem; padding-right: 1.6rem; }
.px-6 { padding-left: 2.4rem; padding-right: 2.4rem; }
.px-8 { padding-left: 3.2rem; padding-right: 3.2rem; }

/* --- Flex/Grid --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.4rem; }
.gap-2 { gap: 0.8rem; }
.gap-3 { gap: 1.2rem; }
.gap-4 { gap: 1.6rem; }
.gap-6 { gap: 2.4rem; }
.gap-8 { gap: 3.2rem; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.col-span-full { grid-column: 1 / -1; }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:flex-row { flex-direction: row; }
    .md\:mt-0 { margin-top: 0; }
    .md\:w-auto { width: auto; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
    .lg\:col-span-2 { grid-column: span 2; }
    .lg\:col-span-3 { grid-column: span 3; }
    .lg\:w-80 { width: 32rem; }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1.2rem 2.8rem; border-radius: 28px;
    font-family: 'Quicksand', sans-serif; font-size: 1.4rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    border: 2px solid transparent; cursor: pointer;
    transition: all 0.2s ease; line-height: 1.2;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid #283065; outline-offset: 2px; }

.btn--primary {
    background: #283065; color: #ffffff; border-color: #283065;
}
.btn--primary:hover { background: #4e5586; border-color: #4e5586; }

.btn--secondary {
    background: #C9510D; color: #ffffff; border-color: #C9510D;
}
.btn--secondary:hover { background: #d4743e; border-color: #d4743e; }

.btn--outline {
    background: transparent; color: #283065; border-color: #283065;
}
.btn--outline:hover { background: #283065; color: #ffffff; }

.btn--sm { padding: 0.8rem 1.6rem; font-size: 1.2rem; border-radius: 20px; }
.btn--lg { padding: 1.6rem 3.6rem; font-size: 1.6rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Inputs --- */
.input {
    display: block; width: 100%;
    padding: 1.2rem 1.6rem; border-radius: 28px;
    border: 2px solid #d1d5db; background: #ffffff;
    font-family: 'Quicksand', sans-serif; font-size: 1.4rem;
    color: #2a2b2a; transition: border-color 0.2s;
    outline: none;
}
.input:focus { border-color: #283065; }
.input::placeholder { color: #9ca3af; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.2rem center; padding-right: 3.6rem; }
textarea.input { border-radius: 12px; resize: vertical; min-height: 10rem; }
label { display: block; font-size: 1.4rem; font-weight: 500; margin-bottom: 0.4rem; color: #374151; }

/* --- Alerts --- */
.alert {
    padding: 1.2rem 2rem; border-radius: 8px;
    font-size: 1.4rem; margin-bottom: 1.6rem;
}
.alert-success { background: #e8f6ea; color: #2c7e3f; border: 1px solid #b7e4c0; }
.alert-error { background: #fcedee; color: #b40c1c; border: 1px solid #f5c6cb; }
.alert-info { background: #e4edfa; color: #1a66d2; border: 1px solid #b8d4fd; }

/* --- Card --- */
.card {
    background: #ffffff; border: 1px solid #f2f2f2; border-radius: 12px;
    transition: box-shadow 0.2s, transform 0.2s; overflow: hidden;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

/* --- Section --- */
.section { padding: 4.8rem 0; }
.section-title { text-align: center; margin-bottom: 0.8rem; }
.section-subtitle { text-align: center; color: #6b7280; font-size: 1.6rem; margin-bottom: 4rem; }

/* --- Product Card --- */
.product-card { position: relative; }
.product-card__image {
    position: relative; padding-top: 100%; background: #f9f9f9; overflow: hidden;
}
.product-card__image img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; padding: 1.6rem; transition: transform 0.3s;
}
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__body { padding: 1.6rem; }
.product-card__title { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.4rem; color: #2a2b2a; text-transform: none; }
.product-card__price { margin-bottom: 1.2rem; }
.product-card__price .current { font-size: 1.8rem; font-weight: 700; color: #283065; }
.product-card__price .compare { font-size: 1.3rem; color: #9ca3af; text-decoration: line-through; margin-left: 0.8rem; }

/* --- Badge / Label --- */
.badge {
    display: inline-flex; align-items: center;
    padding: 0.3rem 0.8rem; border-radius: 999px;
    font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge--sale { background: #dc2626; color: #ffffff; }
.badge--new { background: #C9510D; color: #ffffff; }
.badge--sold-out { background: #2a2b2a; color: #ffffff; }
.badge--in-stock { background: #dcfce7; color: #166534; }
.badge--out-of-stock { background: #fee2e2; color: #991b1b; }

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex; align-items: center; gap: 0.8rem;
    font-size: 1.3rem; color: #6b7280; padding: 1.6rem 0;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #C9510D; }
.breadcrumb .separator { color: #d1d5db; }
.breadcrumb .current { color: #283065; font-weight: 500; }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: 0.4rem; padding: 3.2rem 0; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 3.6rem; height: 3.6rem; padding: 0 1.2rem;
    border: 2px solid #e5e7eb; border-radius: 8px;
    font-size: 1.3rem; font-weight: 500; color: #374151;
    transition: all 0.2s;
}
.pagination a:hover { border-color: #283065; color: #283065; }
.pagination .active { background: #283065; color: #ffffff; border-color: #283065; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* --- Announcement Bar --- */
.announcement-bar {
    background: #283065; color: #ffffff;
    padding: 1rem 0; font-size: 1.3rem;
}
.announcement-bar .container {
    display: flex; align-items: center; justify-content: center; gap: 2.4rem;
    flex-wrap: wrap;
}

/* --- Header --- */
.site-header {
    background: #ffffff; border-bottom: 1px solid #f2f2f2;
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; gap: 2.4rem;
    padding: 1.6rem 0;
}
.header-logo { flex-shrink: 0; }
.header-logo img { height: 4rem; width: auto; }
.header-search { flex: 1; max-width: 48rem; }
.header-actions { display: flex; align-items: center; gap: 1.6rem; }
.header-icon {
    position: relative; display: inline-flex; align-items: center;
    color: #2a2b2a; transition: color 0.2s;
}
.header-icon:hover { color: #C9510D; }
.header-icon svg { width: 2.2rem; height: 2.2rem; }
.cart-count {
    position: absolute; top: -0.6rem; right: -0.8rem;
    background: #C9510D; color: #ffffff;
    font-size: 1rem; font-weight: 700; min-width: 1.8rem; height: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 999px; padding: 0 0.4rem;
}

/* --- Navigation --- */
.main-nav { background: #ffffff; border-bottom: 1px solid #f2f2f2; }
.main-nav ul { display: flex; gap: 0; overflow-x: auto; }
.main-nav li { flex-shrink: 0; }
.main-nav a {
    display: block; padding: 1.2rem 2rem; font-size: 1.4rem;
    font-weight: 500; color: #2a2b2a; white-space: nowrap;
    border-bottom: 2px solid transparent; transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    color: #283065; border-bottom-color: #283065;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #283065 0%, #1a2044 100%);
    color: #ffffff; padding: 6.4rem 0; text-align: center;
}
.hero h1 { color: #ffffff; font-size: 4rem; margin-bottom: 1.6rem; }
.hero p { font-size: 1.8rem; opacity: 0.9; max-width: 60rem; margin: 0 auto 3.2rem; }

/* --- Category Card --- */
.category-card {
    position: relative; border-radius: 12px; overflow: hidden;
    background: #f9f9f9; border: 1px solid #f2f2f2;
    padding: 2.4rem; text-align: center;
    transition: all 0.2s;
}
.category-card:hover {
    border-color: #283065; transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,48,101,0.1);
}
.category-card__icon {
    width: 5.6rem; height: 5.6rem; margin: 0 auto 1.2rem;
    background: #e8eaf3; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #283065;
}
.category-card h3 { font-size: 1.4rem; margin: 0; text-transform: none; }
.category-card p { font-size: 1.2rem; color: #6b7280; margin-top: 0.4rem; }

/* --- Feature Block --- */
.feature-block { text-align: center; padding: 3.2rem; }
.feature-block__icon {
    width: 6.4rem; height: 6.4rem; margin: 0 auto 1.6rem;
    background: #e8eaf3; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #283065;
}
.feature-block h3 { font-size: 1.8rem; margin-bottom: 0.8rem; color: #283065; }
.feature-block p { font-size: 1.4rem; color: #6b7280; }

/* --- Footer --- */
.site-footer {
    background: #1f2937; color: #e5e7eb; padding: 4.8rem 0 2.4rem;
}
.site-footer h3 { color: #ffffff; font-size: 1.6rem; margin-bottom: 1.6rem; }
.site-footer a { color: #9ca3af; font-size: 1.4rem; display: block; padding: 0.4rem 0; }
.site-footer a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 2.4rem; margin-top: 4rem; text-align: center; font-size: 1.3rem; color: #6b7280; }

/* --- Product Detail --- */
.product-detail__gallery {
    background: #f9f9f9; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    min-height: 40rem; padding: 3.2rem;
}
.product-detail__gallery img { max-height: 36rem; object-fit: contain; }

/* --- Cart Table --- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left; padding: 1.2rem 1.6rem; font-size: 1.2rem;
    text-transform: uppercase; color: #6b7280; letter-spacing: 0.05em;
    background: #f9f9f9; border-bottom: 2px solid #e5e7eb;
}
.cart-table td { padding: 1.6rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.cart-table tr:hover td { background: #fafafa; }

/* --- Order Summary --- */
.order-summary {
    background: #f9f9f9; border-radius: 12px; padding: 2.4rem;
    border: 1px solid #e5e7eb;
}
.order-summary h3 { font-size: 1.6rem; margin-bottom: 1.6rem; }
.order-summary .row { display: flex; justify-content: space-between; padding: 0.8rem 0; font-size: 1.4rem; }
.order-summary .total { font-size: 1.8rem; font-weight: 700; color: #283065; border-top: 2px solid #e5e7eb; padding-top: 1.6rem; margin-top: 1.6rem; }

/* --- Admin --- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 26rem; background: #283065; color: #ffffff;
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 50;
}
.admin-main { margin-left: 26rem; flex: 1; background: #f5f5f5; }
.admin-header {
    background: #ffffff; border-bottom: 1px solid #e5e7eb;
    padding: 1.6rem 3.2rem; display: flex;
    justify-content: space-between; align-items: center;
}
.admin-content { padding: 3.2rem; }
.admin-nav a {
    display: block; padding: 1.2rem 2.4rem; color: rgba(255,255,255,0.8);
    font-size: 1.4rem; border-left: 3px solid transparent; transition: all 0.2s;
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.1); color: #ffffff; border-left-color: #C9510D;
}
.stat-card {
    background: #ffffff; border-radius: 12px; padding: 2rem;
    border: 1px solid #e5e7eb;
}
.stat-card .value { font-size: 3.2rem; font-weight: 700; color: #283065; }
.stat-card .label { font-size: 1.3rem; color: #6b7280; margin-bottom: 0.4rem; }

/* --- Table --- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 1.2rem 1.6rem; font-size: 1.2rem;
    text-transform: uppercase; color: #6b7280; letter-spacing: 0.05em;
    background: #f9fafb; border-bottom: 2px solid #e5e7eb;
}
.data-table td {
    padding: 1.2rem 1.6rem; border-bottom: 1px solid #f3f4f6; font-size: 1.4rem;
}
.data-table tr:hover td { background: #f9fafb; }

/* --- Utilities --- */
.border { border: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-full { border-radius: 999px; }
.bg-white { background: #ffffff; }
.bg-gray-50 { background: #f9fafb; }
.bg-gray-100 { background: #f3f4f6; }
.bg-navy { background: #283065; }
.bg-orange { background: #C9510D; }
.text-white { color: #ffffff; }
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-navy { color: #283065; }
.text-orange { color: #C9510D; }
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.w-full { width: 100%; }
.max-w-sm { max-width: 38rem; }
.max-w-md { max-width: 48rem; }
.max-w-lg { max-width: 64rem; }
.max-w-2xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.line-through { text-decoration: line-through; }
.leading-relaxed { line-height: 1.625; }
.space-y-2 > * + * { margin-top: 0.8rem; }
.space-y-3 > * + * { margin-top: 1.2rem; }
.space-y-4 > * + * { margin-top: 1.6rem; }
.space-y-6 > * + * { margin-top: 2.4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Product Detail Page --- */
.product-gallery {
    background: #f9f9f9; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    min-height: 400px; padding: 32px;
}
.product-gallery img {
    max-height: 360px; object-fit: contain;
}
.product-info h1 {
    font-size: 2.6rem; color: #283065; text-transform: uppercase; margin-bottom: 0.8rem;
}
.product-price-display .current {
    font-size: 3rem; font-weight: 700; color: #283065;
}
.product-price-display .compare {
    font-size: 1.8rem; color: #9ca3af; text-decoration: line-through; margin-left: 1.2rem;
}
.qty-selector {
    display: inline-flex; align-items: center;
    border: 2px solid #d1d5db; border-radius: 28px; overflow: hidden;
}
.qty-selector button {
    width: 3.6rem; height: 3.6rem; display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; font-size: 1.8rem;
    color: #374151; transition: background 0.2s;
}
.qty-selector button:hover { background: #f3f4f6; }
.qty-selector input {
    width: 5rem; text-align: center; border: none; border-left: 2px solid #d1d5db;
    border-right: 2px solid #d1d5db; height: 3.6rem; font-size: 1.4rem;
    outline: none;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero h1 { font-size: 2.8rem; }
    .hero { padding: 4rem 0; }
    .header-inner { flex-wrap: wrap; }
    .header-search { order: 3; max-width: 100%; flex-basis: 100%; }
    .product-card__body { padding: 1.2rem; }
    .product-card__price .current { font-size: 1.5rem; }
    .cart-table th, .cart-table td { padding: 0.8rem; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .admin-content { padding: 1.6rem; }
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
}
@media (min-width: 768px) {
    .hero h1 { font-size: 4.8rem; }
}
