/**
 * Main Stylesheet - Gian hàng thủ công Ban Nữ Công Skypec Miền Bắc
 * Design: Modern, Premium, Traditional Vietnamese
 */

/* ============================================
   CSS Variables & Design Tokens
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #ca5353;
    --primary-dark: #a84444;
    --primary-light: #e07070;
    --primary-rgb: 202, 83, 83;

    /* Accent Colors */
    --gold: #D4AF37;
    --gold-light: #E5C76B;
    --cream: #FFFBF5;
    --cream-dark: #F5E6DA;

    /* Neutral Colors */
    --background-light: #fafafa;
    --background-dark: #2f3c3b;
    --text-dark: #191010;
    --text-light: #fbf9f9;
    --text-muted: #6b7280;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Typography */
    --font-display: 'Manrope', sans-serif;
    --font-accent: 'Epilogue', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 10px 25px -5px rgba(var(--primary-rgb), 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================
   Base Styles
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-display);
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-accent);
    font-weight: 700;
    line-height: 1.2;
}

.font-display {
    font-family: var(--font-display);
}

.font-accent {
    font-family: var(--font-accent);
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section {
    padding: var(--spacing-2xl) 0;
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: var(--primary);
    padding: 0.375rem;
    border-radius: var(--radius-md);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.logo-text p {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box {
    display: none;
    align-items: center;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    width: 240px;
}

@media (min-width: 768px) {
    .search-box {
        display: flex;
    }
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.75rem;
    outline: none;
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
}

.icon-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.icon-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--cream);
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--primary) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.05;
}

.hero-decoration {
    position: absolute;
    right: -80px;
    top: -80px;
    width: 384px;
    height: 384px;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 50%;
    filter: blur(48px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    width: 100%;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        padding: 4rem;
    }
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: fit-content;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-title .highlight {
    color: var(--primary);
    font-style: italic;
}

.hero-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 28rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-images {
    display: none;
    position: relative;
}

@media (min-width: 1024px) {
    .hero-images {
        display: block;
    }
}

.hero-image-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
}

.hero-image-secondary {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    width: 50%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    border: 8px solid var(--cream);
    box-shadow: var(--shadow-lg);
    transform: rotate(-6deg);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.75rem;
}

/* ============================================
   Categories Section
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
}

.section-link:hover {
    text-decoration: underline;
}

.categories-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.categories-grid::-webkit-scrollbar {
    display: none;
}

.category-card {
    flex: 0 0 256px;
    cursor: pointer;
}

.category-image {
    height: 160px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: 0.75rem;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background var(--transition-normal);
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.category-name {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ============================================
   Products Section
   ============================================ */
.products-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .products-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.products-info h3 {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.products-info p {
    font-size: 0.875rem;
    opacity: 0.6;
}

.products-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.products-tab {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.products-tab.active {
    background: white;
    box-shadow: var(--shadow-sm);
}

.products-tab:not(.active) {
    opacity: 0.6;
}

.products-tab:hover:not(.active) {
    opacity: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem 1.5rem;
    }
}

/* ============================================
   Product Card
   ============================================ */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-image {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.product-card:hover .product-image {
    box-shadow: var(--shadow-xl);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.product-badge.sale {
    background: var(--success);
}

.product-badge.new {
    background: var(--info);
}

.product-add-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: white;
    color: var(--primary);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    opacity: 0;
}

.product-card:hover .product-add-btn {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-name {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1rem;
}

.product-name a:hover {
    color: var(--primary);
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
}

.product-price .old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.4;
    font-size: 0.625rem;
    font-weight: 700;
}

/* ============================================
   Story Section
   ============================================ */
.story-section {
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow: hidden;
    position: relative;
}

@media (min-width: 1024px) {
    .story-section {
        flex-direction: row;
        align-items: center;
        padding: 4rem;
    }
}

.story-decoration {
    position: absolute;
    left: -48px;
    bottom: -48px;
    width: 256px;
    height: 256px;
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
}

.story-content {
    flex: 1;
    position: relative;
    z-index: 10;
}

.story-content h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .story-content h3 {
        font-size: 2.25rem;
    }
}

.story-content h3 .highlight {
    color: var(--primary);
    font-style: italic;
}

.story-content>p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.story-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.story-feature {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.story-feature .material-symbols-outlined {
    font-size: 1.875rem;
    color: var(--primary);
}

.story-feature h5 {
    font-weight: 700;
}

.story-feature p {
    font-size: 0.75rem;
    opacity: 0.6;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--cream);
    border-top: 1px solid rgba(var(--primary-rgb), 0.05);
    margin-top: 5rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand .logo {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.75rem;
    opacity: 0.6;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer-social a .material-symbols-outlined {
    font-size: 0.875rem;
}

.footer-column h5 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column li a {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.footer-column li a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-newsletter p {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.footer-bottom {
    border-top: 1px solid rgba(var(--primary-rgb), 0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.625rem;
    opacity: 0.4;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.625rem;
    opacity: 0.4;
}

.footer-links a:hover {
    opacity: 1;
}

/* ============================================
   Quick Order Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: #f1f5f9;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ============================================
   Order Product Summary
   ============================================ */
.order-product {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.order-product-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product-info {
    flex: 1;
}

.order-product-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.order-product-info .price {
    color: var(--primary);
    font-weight: 700;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.quantity-input {
    width: 50px;
    text-align: center;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* ============================================
   Success Message
   ============================================ */
.success-box {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--success);
}

.success-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--success);
}

.success-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.order-code {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.order-code span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.order-code strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-main-image {
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--cream);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.product-thumbnail.active,
.product-thumbnail:hover {
    border-color: var(--primary);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .product-info-detail h1 {
        font-size: 2.25rem;
    }
}

.product-price-detail {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-price-detail .current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price-detail .original {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price-detail .discount {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 480px) {
    .product-actions {
        flex-direction: row;
    }
}

.product-actions .btn {
    flex: 1;
}

/* ============================================
   Utilities
   ============================================ */
.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-cream {
    background-color: var(--cream);
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.hidden {
    display: none !important;
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(var(--primary-rgb), 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu-btn {
    display: flex;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 200;
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav a {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.mobile-nav a:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.mobile-nav a.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

/* ============================================
   News Section
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
}

.news-card:hover .news-title {
    color: var(--primary);
}

.news-summary {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.news-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.news-link:hover {
    text-decoration: underline;
}
 # o r d e r V a r i a n t s   s e l e c t   { 
         b a c k g r o u n d - c o l o r :   # f 3 f 4 f 6 ; 
         b o r d e r :   1 p x   s o l i d   # e 5 e 7 e b ; 
         b o r d e r - r a d i u s :   0 . 3 7 5 r e m ; 
         w i d t h :   1 0 0 % ; 
         m a r g i n - t o p :   0 . 5 r e m ; 
         p a d d i n g :   0 . 5 r e m ; 
         f o n t - w e i g h t :   5 0 0 ; 
         c o l o r :   # 1 f 2 9 3 7 ; 
         c u r s o r :   p o i n t e r ; 
 } 
 # o r d e r V a r i a n t s   l a b e l   { 
         f o n t - s i z e :   0 . 8 7 5 r e m ; 
         c o l o r :   # 6 b 7 2 8 0 ; 
         m a r g i n - b o t t o m :   0 . 2 5 r e m ; 
         d i s p l a y :   b l o c k ; 
 } 
  
 
 / *   P r o d u c t   A c t i o n s   ( H o v e r   L a y o u t )   * / 
 . p r o d u c t - i m a g e   { 
         p o s i t i o n :   r e l a t i v e ; 
         o v e r f l o w :   h i d d e n ; 
 } 
 
 . p r o d u c t - a c t i o n s   { 
         p o s i t i o n :   a b s o l u t e ; 
         b o t t o m :   1 r e m ; 
         l e f t :   1 r e m ; 
         r i g h t :   1 r e m ; 
         d i s p l a y :   f l e x ; 
         g a p :   0 . 5 r e m ; 
         t r a n s f o r m :   t r a n s l a t e Y ( 1 5 0 % ) ; 
         t r a n s i t i o n :   t r a n s f o r m   0 . 4 s   c u b i c - b e z i e r ( 0 . 1 6 ,   1 ,   0 . 3 ,   1 ) ; 
         z - i n d e x :   1 0 ; 
 } 
 
 . p r o d u c t - c a r d : h o v e r   . p r o d u c t - a c t i o n s   { 
         t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 } 
 
 . b t n - a c t i o n   { 
         f l e x :   1 ; 
         h e i g h t :   4 8 p x ; 
         b o r d e r :   n o n e ; 
         b o r d e r - r a d i u s :   v a r ( - - r a d i u s - l g ) ; 
         f o n t - w e i g h t :   6 0 0 ; 
         f o n t - s i z e :   0 . 8 7 5 r e m ; 
         c u r s o r :   p o i n t e r ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         g a p :   0 . 5 r e m ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 9 ) ; 
         b a c k d r o p - f i l t e r :   b l u r ( 4 p x ) ; 
         c o l o r :   v a r ( - - t e x t - c o l o r ) ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ; 
         t r a n s i t i o n :   a l l   0 . 2 s ; 
 } 
 
 . b t n - a c t i o n : h o v e r   { 
         b a c k g r o u n d :   w h i t e ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; 
         b o x - s h a d o w :   0   8 p x   1 6 p x   r g b a ( 0 , 0 , 0 , 0 . 1 5 ) ; 
 } 
 
 . b t n - a c t i o n . p r i m a r y   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   v a r ( - - p r i m a r y ) ,   v a r ( - - s e c o n d a r y ) ) ; 
         c o l o r :   w h i t e ; 
         f l e x :   2 ;   / *   C h i m   n h i u   c h   h n   * / 
 } 
 
 . b t n - a c t i o n . p r i m a r y : h o v e r   { 
         b o x - s h a d o w :   0   8 p x   1 6 p x   r g b a ( v a r ( - - p r i m a r y - r g b ) ,   0 . 3 ) ; 
 } 
 
 / *   n   b t   c h i   t i t   t h a   k h i   h o v e r     t p   t r u n g   v  o   n  t   * / 
 . p r o d u c t - c a r d : h o v e r   . p r o d u c t - i n f o   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 5 p x ) ; 
         t r a n s i t i o n :   t r a n s f o r m   0 . 3 s ; 
 } 
  
 