﻿/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-background: #fdfdf7;
    --color-foreground: #2d5016;
    --color-primary: #f5a623;
    --color-primary-hover: #d48d1a;
    --color-secondary: #7fb069;
    --color-secondary-hover: #6a9558;
    --color-accent: #fff8e1;
    --color-muted: #f9f9f5;
    --color-muted-foreground: #6b7c5a;
    --color-border: rgba(0, 0, 0, 0.1);
    --color-white: #ffffff;
    --color-black: #000000;
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.625rem;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--color-foreground);
    background-color: var(--color-background);
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-sm {
    max-width: 768px;
}

.container-md {
    max-width: 1024px;
}

.container-lg {
    max-width: 1280px;
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.flex-1 {
    flex: 1;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Spacing */
.p-0 {
    padding: 0;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-12 {
    padding: 3rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.m-0 {
    margin: 0;
}

.m-auto {
    margin: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.my-6 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

/* Text */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-foreground {
    color: var(--color-foreground);
}

.text-muted {
    color: var(--color-muted-foreground);
}

.text-white {
    color: white;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-red-600 {
    color: #dc2626;
}

.text-green-600 {
    color: #16a34a;
}

.text-yellow-500 {
    color: #eab308;
}

.line-through {
    text-decoration: line-through;
}

/* Background */
.bg-white {
    background-color: white;
}

.bg-background {
    background-color: var(--color-background);
}

.bg-muted {
    background-color: var(--color-muted);
}

.bg-accent {
    background-color: var(--color-accent);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

bg-blue-500 {
    background-color: #3b82f6;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

/* Border */
.border {
    border: 1px solid var(--color-border);
}

.border-t {
    border-top: 1px solid var(--color-border);
}

.border-b {
    border-bottom: 1px solid var(--color-border);
}

.border-2 {
    border-width: 2px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.border-red-200 {
    border-color: #fecaca;
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* Shadow */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Width & Height */
.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.w-3 {
    width: 0.75rem;
}

.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.h-3 {
    height: 0.75rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.h-48 {
    height: 12rem;
}

.h-96 {
    height: 24rem;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-7xl {
    max-width: 80rem;
}

/* Position */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.bottom-4 {
    bottom: 1rem;
}

.right-4 {
    right: 1rem;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* Display */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

/* Opacity */
.opacity-0 {
    opacity: 0;
}

/* Transitions */
.transition {
    transition: all 0.2s ease;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.transition-transform {
    transition: transform 0.2s ease;
}

.duration-200 {
    transition-duration: 0.2s;
}

.duration-300 {
    transition-duration: 0.3s;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Hover Effects */
.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\:bg-muted:hover {
    background-color: var(--color-muted);
}

.hover\:bg-primary:hover {
    background-color: var(--color-primary-hover);
}

.hover\:bg-secondary:hover {
    background-color: var(--color-secondary-hover);
}

.hover\:text-primary:hover {
    color: var(--color-primary);
}

.hover\:shadow-lg:hover {
    box-shadow: var(--shadow-lg);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

/* Transform */
.transform {
    transform: translateZ(0);
}

.-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.-translate-y-2:hover {
    transform: translateY(-0.5rem);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--color-primary-hover);
    }

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

    .btn-secondary:hover {
        background-color: var(--color-secondary-hover);
    }

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(45, 80, 22, 0.2);
    color: var(--color-foreground);
}

    .btn-outline:hover {
        background-color: var(--color-muted);
    }

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Header */
.header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 248, 225, 0.3);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-link {
    color: var(--color-foreground);
    padding: 0.5rem 0;
    transition: color 0.2s;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--color-primary);
    }

    .nav-link.active {
        font-weight: 500;
    }

/* Cards */
.card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s;
}

    .card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

    .card img {
        transition: transform 0.3s;
    }

    .card:hover img {
        transform: scale(1.1);
    }

/* Product Card */
.product-card {
    position: relative;
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f3f4f6;
    transition: all 0.3s;
    cursor: pointer;
}

    .product-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 32rem; /* tăng từ 25rem lên 32rem (hoặc 34rem nếu cần cao hơn) */
}

.product-image {
    object-fit: cover;
    transition: transform 0.3s;
}


.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-overlay-text {
    background-color: white;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid var(--color-border);
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: border-color 0.2s;
}

    input:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: var(--color-primary);
    }

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Carousel */
.carousel-item {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

    .carousel-item.active {
        display: block;
    }

.carousel-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

    .carousel-indicator:hover,
    .carousel-indicator.active {
        background-color: white;
    }

/* Accordion */
.accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .accordion-button:hover {
        background-color: var(--color-muted);
    }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .accordion-content.active {
        max-height: 1000px;
    }

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 16rem;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    z-index: 30;
}

.sidebar-item {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .sidebar-item:hover {
        background-color: #f9fafb;
    }

    .sidebar-item.active {
        background-color: #fef3c7;
        border-left: 3px solid var(--color-primary);
    }

/* Toast */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    color: white;
    z-index: 50;
    animation: slideInRight 0.3s ease-out;
}

.toast-success {
    background-color: #22c55e;
}

.toast-error {
    background-color: #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Space */
.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .sidebar.open {
            transform: translateX(0);
        }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .text-6xl {
        font-size: 2.25rem;
    }

    .text-4xl {
        font-size: 1.875rem;
    }
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm\:flex-row {
        flex-direction: row;
    }

    .sm\:text-right {
        text-align: right;
    }

    .sm\:justify-start {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:text-3xl {
        font-size: 1.875rem;
    }

    .lg\:text-6xl {
        font-size: 3.75rem;
    }

    .lg\:text-xl {
        font-size: 1.25rem;
    }

    .lg\:h-96 {
        height: 24rem;
    }

    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .lg\:p-8 {
        padding: 2rem;
    }

    .lg\:hidden {
        display: none;
    }
}

/* Utility Classes */
.break-all {
    word-break: break-all;
}

.leading-relaxed {
    line-height: 1.625;
}

.prose {
    max-width: 65ch;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.75;
}

.max-w-none {
    max-width: none;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.badge-primary {
    background-color: var(--color-primary);
    color: white;
}

/* Additional Spacing */
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

/* Additional Text */
.text-5xl {
    font-size: 3rem;
}

.lg\:text-4xl {
    font-size: 2.25rem;
}

@media (min-width: 1024px) {
    .lg\:text-4xl {
        font-size: 2.25rem;
    }
}

/* Rounded corners */
.rounded-2xl {
    border-radius: 1rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

/* Additional widths */
.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

/* Hover effects */
.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.hover\:bg-white:hover {
    background-color: white;
}

.hover\:bg-red-600:hover {
    background-color: #dc2626;
}

/* Flex shrink */
.flex-shrink-0 {
    flex-shrink: 0;
}

/* Opacity */
.opacity-90 {
    opacity: 0.9;
}

/* Additional Colors */
.text-blue-800 {
    color: #1e40af;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.border-red-200 {
    border-color: #fecaca;
}

.border-green-200 {
    border-color: #bbf7d0;
}

/* Sidebar modifications for admin */
@media (min-width: 1024px) {
    .lg\:p-8 {
        padding: 2rem;
    }
}

/* Additional transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-shadow {
    transition: box-shadow 0.3s ease;
}

/* Line height */
.leading-tight {
    line-height: 1.25;
}

/* Justify */
.justify-start {
    justify-content: flex-start;
}

/* Search Input in Header - Adjusted for Yellow Background */
#searchInput,
#searchInputMobile {
    padding: 0.5rem 1rem;
    border: 2px solid #f5a623;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-foreground);
}

    #searchInput:focus,
    #searchInputMobile:focus {
        outline: none;
        border-color: white;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
        background-color: white;
    }

    #searchInput::placeholder,
    #searchInputMobile::placeholder {
        color: var(--color-muted-foreground);
    }

/* Search Icon Button in Header */
.search-icon-btn {
    color: #6b7280;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .search-icon-btn:hover {
        color: var(--color-primary);
    }

    .search-icon-btn svg {
        stroke-width: 2;
    }

/* Search Info Banner */
.search-info-banner {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Additional utilities for responsive layouts */
.lg\:flex {
    display: flex;
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }
}

/* Space between utilities */
.space-x-6 > * + * {
    margin-left: 1.5rem;
}

/* Additional margins */
.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

/* Additional paddings */
.pb-2 {
    padding-bottom: 0.5rem;
}

/* Additional gaps */
.gap-1 {
    gap: 0.25rem;
}

/* Display utilities */
.items-start {
    align-items: flex-start;
}

/* ============================================
   HEADER NEW STYLES - 2 ROWS LAYOUT
   ============================================ */

/* Mobile Logo Center Positioning */
.logo-container {
    position: static;
}

@media (max-width: 767px) {
    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 768px) {
    .logo-container {
        position: static;
        transform: none;
    }
}

/* Navigation Menu Background - Yellow */
.nav-menu-bg {
    background-color: rgba(245, 166, 35, 0.1); /* var(--color-primary) with opacity */
}

/* Navigation Menu Links - Desktop Row 2 */
.nav-link-menu {
    color: var(--color-foreground);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: inline-block;
}

    .nav-link-menu:hover {
        color: var(--color-primary);
        background-color: rgba(245, 166, 35, 0.1);
    }

    .nav-link-menu.active {
        background-color: var(--color-primary);
        color: white;
        font-weight: 500;
    }

/* Mobile Navigation Links */
.nav-link-mobile {
    color: var(--color-foreground);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

    .nav-link-mobile:hover {
        color: var(--color-primary);
    }

    .nav-link-mobile.active {
        color: var(--color-primary);
        font-weight: 500;
        background-color: rgba(245, 166, 35, 0.1);
    }

/* Hotline Button - Hide text on very small screens */
@media (max-width: 639px) {
    .btn .hidden {
        display: none;
    }
}

@media (min-width: 640px) {
    .btn .sm\:inline {
        display: inline;
    }
}

/* Additional text utilities */
.text-sm {
    font-size: 0.875rem;
}

/* Banner carousel specific */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product grid responsive */
@media (max-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Focus Styles */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
/* Reset để card tính được chiều cao */
.product-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

    /* Đảm bảo card có chiều cao theo nội dung */
    .product-card * {
        box-sizing: border-box;
    }

    /* Khi hover: tăng bóng + đổi ảnh */
    .product-card:hover {
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    }

/* Ảnh */
.product-image {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    z-index: 1;
}

    .product-image .img-1,
    .product-image .img-2 {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.4s ease-in-out;
    }

    .product-image .img-1 {
        opacity: 1;
        z-index: 2;
    }

    .product-image .img-2 {
        opacity: 0;
        z-index: 1;
    }

.product-card:hover .product-image .img-1 {
    opacity: 0;
}

.product-card:hover .product-image .img-2 {
    opacity: 1;
}

/* Phần thông tin */
.product-info {
    position: relative;
    z-index: 3; /* phải lớn hơn ảnh */
    background: #fff; /* tránh ảnh chồng lên */
    padding: 16px;
    height: auto; /* ép tính chiều cao */
    display: block;
}

    .product-info .category {
        display: inline-block;
        background: #fff6cc;
        color: #a67c00;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 13px;
    }

    .product-info .name {
        font-weight: 600;
        margin: 8px 0;
        font-size: 16px;
        color: #333;
    }

    .product-info .price {
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .product-info .price .current {
            color: #f5a623;
            font-weight: bold;
            font-size: 17px;
        }

        .product-info .price .old {
            color: #888;
            text-decoration: line-through;
            font-size: 13px;
        }

    .product-info .discount {
        display: block;
        color: #e60000;
        font-size: 13px;
        margin-top: 4px;
    }
/* ---- Slider ---- */
.product-slider {
    position: relative;
}

    .product-slider .slides {
        position: relative;
        width: 100%;
        height: 380px;
        overflow: hidden;
        border-radius: 8px;
    }

    .product-slider .slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 0.6s ease;
    }

        .product-slider .slide.active {
            opacity: 1;
        }

    .product-slider .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255,255,255,0.7);
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 50%;
        transition: background 0.3s;
    }

        .product-slider .nav-btn:hover {
            background: rgba(255,255,255,0.9);
        }

        .product-slider .nav-btn.prev {
            left: 10px;
        }

        .product-slider .nav-btn.next {
            right: 10px;
        }

    .product-slider .thumbnails {
        margin-top: 12px;
    }

    .product-slider .thumb {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 6px;
        opacity: 0.6;
        cursor: pointer;
        border: 2px solid transparent;
        transition: opacity 0.3s, border-color 0.3s;
    }

        .product-slider .thumb:hover,
        .product-slider .thumb.active {
            opacity: 1;
            border-color: #f5a623;
        }

/* ---- Buttons ---- */
.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}
/* ===== 🎨 NÚT HOTLINE NỔI BẬT ===== */
.hotline-btn {
    position: relative;
    background: linear-gradient(90deg, #f5a623, #d48d1a);
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    outline: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(245, 166, 35, 0.5);
    z-index: 10;
}

    /* Hover sáng và nổi hơn */
    .hotline-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(245, 166, 35, 0.7);
    }

    /* 🌟 Hiệu ứng ánh sáng quét ngang */
    .hotline-btn::after {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0.6), rgba(255,255,255,0.2));
        transform: skewX(-25deg);
        animation: shine 3s infinite;
    }

@keyframes shine {
    0% {
        left: -75%;
    }

    50% {
        left: 125%;
    }

    100% {
        left: 125%;
    }
}

/* 📞 Icon rung */
.icon-phone {
    animation: phone-shake 1.8s infinite;
    transform-origin: center;
}

@keyframes phone-shake {
    0%, 100% {
        transform: rotate(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-12deg);
    }

    20%, 40%, 60%, 80% {
        transform: rotate(12deg);
    }
}

/* 💥 Hiệu ứng “nhịp tim” cho toàn nút */
.hotline-btn {
    animation: pulse-glow 2.8s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(245,166,35,0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(245,166,35,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245,166,35,0);
    }
}
.hotline-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(90deg, #f5a623, #d48d1a);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245,166,35,0.5);
    z-index: 1000;
    overflow: hidden;
    animation: pulse-glow 2.8s infinite;
    transition: all 0.3s ease;
}

    /* 👇 Hiệu ứng ánh sáng quét ngang */
    .hotline-floating::after {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0.6), rgba(255,255,255,0.2));
        transform: skewX(-25deg);
        animation: shine 3s infinite;
    }

/* 📞 Icon rung liên tục */
.icon-phone {
    animation: phone-shake 1.6s infinite;
    transform-origin: center;
}

@keyframes phone-shake {
    0%, 100% {
        transform: rotate(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-12deg);
    }

    20%, 40%, 60%, 80% {
        transform: rotate(12deg);
    }
}

/* 💥 Hiệu ứng nhịp sáng xung quanh nút */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(245,166,35,0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(245,166,35,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245,166,35,0);
    }
}

/* 🌟 Ánh sáng quét ngang */
@keyframes shine {
    0% {
        left: -75%;
    }

    50% {
        left: 125%;
    }

    100% {
        left: 125%;
    }
}

/* 🔥 Hover: phóng to nhẹ + sáng hơn */
.hotline-floating:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(245,166,35,0.7);
}

/* Ẩn text trên mobile, chỉ để icon */
@media (max-width: 640px) {
    .hotline-floating {
        border-radius: 50%;
        padding: 14px;
    }

    .hotline-text {
        display: none;
    }
}
.hotline-header {
    background: linear-gradient(90deg, #f5a623, #d48d1a);
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 8px 16px;
    box-shadow: 0 3px 10px rgba(245,166,35,0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    /* Hover hiệu ứng sáng và phóng to */
    .hotline-header:hover {
        transform: scale(1.06);
        box-shadow: 0 6px 14px rgba(245,166,35,0.6);
    }

    /* Ánh sáng quét ngang */
    .hotline-header::after {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0.6), rgba(255,255,255,0.2));
        transform: skewX(-25deg);
        animation: shine 3s infinite;
    }

@keyframes shine {
    0% {
        left: -75%;
    }

    50% {
        left: 125%;
    }

    100% {
        left: 125%;
    }
}

/* 📞 Icon rung nhẹ */
.icon-phone {
    animation: phone-shake 1.8s infinite;
    transform-origin: center;
}
@media (max-width: 767px) {
    .company-name {
        display: none;
    }
}
@keyframes phone-shake {
    0%, 100% {
        transform: rotate(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-10deg);
    }

    20%, 40%, 60%, 80% {
        transform: rotate(10deg);
    }
}
.menu-item {
    position: relative;
    display: inline-block;
}

    .menu-item .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        border: 1px solid #ddd;
        min-width: 180px;
        border-radius: 4px;
        z-index: 9999;
    }

    /* ⚠️ Bootstrap có selector .dropdown-menu { display: none !important; } 
       nên ta cần ép lại bằng !important */
    .menu-item:hover .submenu {
        display: block !important;
    }

.submenu a {
    display: block;
    color: #333;
    padding: 8px 12px;
    text-decoration: none;
    white-space: nowrap;
}

    .submenu a:hover {
        background: #f5f5f5;
        color: #006400;
    }
/* Hover để hiện submenu */
.menu-item:hover .submenu {
    display: block;
}
.related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-item {
    border-bottom: 1px solid #f2e8b8;
    padding: 8px 0;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #7b5e00;
    transition: background 0.2s ease;
    padding: 4px;
    border-radius: 4px;
}

    .related-link:hover {
        background-color: #fff6d4;
    }

.related-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}

    .related-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    color: #5a4500;
    margin-bottom: 3px;
}

.related-date {
    font-size: 12px;
    color: #9c8a4b;
}
/* Ẩn toàn bộ slide trừ slide active */
.carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s ease-in-out;
}

    .carousel-item.active {
        opacity: 1;
        transform: translateX(0);
        z-index: 1;
    }

    .carousel-item.prev {
        transform: translateX(-100%);
    }

/* Indicator */
.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .carousel-indicator.active {
        background-color: #f5a623;
    }
/* Ẩn toàn bộ slide trừ slide active */
.carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s ease-in-out;
}
.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}
.carousel-item.prev {
    transform: translateX(-100%);
}

/* Indicator */
.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.carousel-indicator.active {
    background-color: #f5a623;
}
/* Ẩn toàn bộ slide trừ slide active */
.carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s ease-in-out;
}

    .carousel-item.active {
        opacity: 1;
        transform: translateX(0);
        z-index: 1;
    }

    .carousel-item.prev {
        transform: translateX(-100%);
    }

/* Indicator */
.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .carousel-indicator.active {
        background-color: #f5a623;
    }
#bannerCarousel {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 100%;
    opacity: 0;
    width: 100%;
    height: 100%;
    transition: all 1s ease-in-out;
}

    .carousel-item.active {
        left: 0;
        opacity: 1;
        z-index: 2;
    }

    .carousel-item.prev {
        left: -100%;
    }

    /* --- Ảnh bên trong --- */
    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* --- Indicator --- */
.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    transition: background-color 0.3s;
}

    .carousel-indicator.active,
    .carousel-indicator:hover {
        background-color: #f5a623;
    }

/* --- Nút điều hướng --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

    .carousel-btn:hover {
        background-color: rgba(0,0,0,0.6);
    }

    .carousel-btn.prev {
        left: 1rem;
    }

    .carousel-btn.next {
        right: 1rem;
    }

.img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* giúp ảnh luôn giữa khung */
}

    .img-container img {
        max-width: 100%;
        height: auto;
    }
