/* =====================================================
   OCOP Lạng Sơn - Custom Stylesheet
   Website thương mại điện tử Đặc sản OCOP Lạng Sơn
   ===================================================== */

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
    /* Brand Colors */
    --primary: #2E6B47;
    --primary-dark: #1E4A31;
    --primary-light: #3D8A5E;
    --primary-rgb: 46, 107, 71;
    --secondary: #D9A441;
    --secondary-dark: #B8882E;
    --secondary-light: #E5BC6A;
    --secondary-rgb: 217, 164, 65;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --black: #000000;

    /* Status */
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
    --info: #0EA5E9;

    /* Fonts */
    --font-heading: 'Be Vietnam Pro', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --section-padding-mobile: 50px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* =====================================================
   BASE RESET & GLOBAL STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

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

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.section-padding {
    padding: var(--section-padding) 0;
}

.section-heading {
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    margin-top: 40px;
}

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

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border: 2px solid var(--white);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline-custom:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   HEADER
   ===================================================== */

/* Top bar */
.header-topbar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-left a,
.topbar-right a {
    color: var(--white);
}

.topbar-left a:hover,
.topbar-right a:hover {
    color: var(--secondary);
}

.topbar-divider {
    opacity: 0.4;
    margin: 0 4px;
}

.topbar-left i,
.topbar-right i {
    margin-right: 4px;
    color: var(--secondary);
}

/* Main navigation */
.main-nav {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    transition: var(--transition);
}

.main-nav.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

.main-nav.scrolled .logo-img {
    height: 42px;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-700);
    padding: 8px 14px;
    white-space: nowrap;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 10px 0;
    min-width: 220px;
}

.dropdown-item {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 8px 20px;
    color: var(--gray-600);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    padding-left: 24px;
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.nav-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-action-btn:hover {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.06);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--secondary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar toggler */
.navbar-toggler {
    border: 2px solid var(--primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232E6B47' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   HERO BANNER
   ===================================================== */
.hero-section {
    position: relative;
}

.hero-section .carousel-item {
    position: relative;
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-section .carousel-caption {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    transform: translateY(-50%);
    text-align: left;
    z-index: 2;
    padding: 0;
}

.hero-badge {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-section .carousel-caption h1,
.hero-section .carousel-caption .hero-title {
    font-size: 52px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-section .carousel-caption h1 span,
.hero-section .carousel-caption .hero-title span {
    color: var(--secondary);
}

.hero-section .carousel-caption p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 540px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-section .carousel-indicators {
    bottom: 30px;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background-color: transparent;
    opacity: 0.6;
    transition: var(--transition);
}

.hero-section .carousel-indicators button.active {
    background-color: var(--secondary);
    border-color: var(--secondary);
    opacity: 1;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.hero-section .carousel-control-prev {
    left: 20px;
}

.hero-section .carousel-control-next {
    right: 20px;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background-color: var(--primary);
}

/* =====================================================
   SECTION ABOUT
   ===================================================== */
.section-about {
    background-color: var(--white);
}

.about-row {
    gap: 0;
}

.about-images {
    position: relative;
    padding-right: 30px;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.about-img-main:hover img {
    transform: scale(1.03);
}

.about-img-sub {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.about-img-sub img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-badge-float {
    position: absolute;
    top: 20px;
    right: 0;
    background-color: var(--secondary);
    color: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-years {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.about-years-text {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    padding-left: 20px;
}

.about-content h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-content > p {
    color: var(--gray-600);
    margin-bottom: 28px;
    line-height: 1.8;
}

.about-features {
    margin-bottom: 28px;
}

.about-feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.about-feature-item:hover .about-feature-icon {
    background-color: var(--primary);
    color: var(--white);
}

.about-feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-feature-text p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* =====================================================
   SECTION SERVICES
   ===================================================== */
.section-services {
    background-color: var(--gray-50);
}

.services-grid {
    row-gap: 24px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 0;
    line-height: 1.7;
}

/* =====================================================
   SECTION PRODUCTS
   ===================================================== */
.section-products {
    background-color: var(--white);
}

/* Product tabs */
.product-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.product-tab {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    background-color: var(--gray-100);
    border: 2px solid transparent;
    padding: 8px 22px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
}

.product-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.05);
}

.product-tab.active {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Product grid */
.products-grid {
    row-gap: 24px;
}

/* Product card */
.product-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: var(--gray-100);
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ocop-badge {
    left: 12px;
    background-color: var(--secondary);
    color: var(--white);
}

.sale-badge {
    right: 12px;
    background-color: var(--primary);
    color: var(--white);
}

/* Product hover actions */
.product-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
    transition: var(--transition);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--gray-700);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.product-action-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.product-action-btn.liked {
    background-color: var(--danger);
    color: var(--white);
}

/* Product info */
.product-info {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-name a {
    color: var(--gray-800);
}

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

.product-price {
    margin-bottom: 12px;
}

.price-current {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

.price-unit {
    font-size: 13px;
    color: var(--gray-400);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.product-stock.in-stock {
    color: var(--success);
}

.product-stock.low-stock {
    color: var(--warning);
}

.product-stock.out-stock {
    color: var(--danger);
}

.product-origin {
    color: var(--gray-400);
}

/* =====================================================
   SECTION QR TRACEABILITY
   ===================================================== */
.section-qr {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-qr::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.section-qr .section-subtitle {
    color: var(--secondary);
}

.section-qr .section-title {
    color: var(--white);
    font-size: 34px;
}

.qr-content > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin-bottom: 28px;
}

.qr-features {
    margin-bottom: 32px;
}

.qr-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.qr-feature-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(var(--secondary-rgb), 0.2);
    color: var(--secondary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* QR Lookup form */
.qr-lookup-form {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
}

.qr-lookup-form h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 14px;
}

.qr-input-group {
    display: flex;
    gap: 10px;
}

.qr-input-group .form-control {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 15px;
}

.qr-input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.qr-input-group .form-control:focus {
    border-color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.3);
    color: var(--white);
}

.qr-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 10px;
    margin-bottom: 0;
}

.qr-sample-code {
    color: var(--secondary-light);
    text-decoration: underline;
    font-weight: 600;
}

.qr-sample-code:hover {
    color: var(--white);
}

.qr-result-box {
    margin-top: 18px;
    background-color: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--secondary);
}

.qr-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.qr-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
    background-color: rgba(22, 163, 74, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius-xl);
}

.qr-result-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--gray-400);
    cursor: pointer;
}

.qr-result-close:hover {
    color: var(--gray-700);
}

.qr-result-box h5 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 10px;
}

.qr-result-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.qr-result-meta li {
    margin-bottom: 6px;
}

.qr-result-meta li:last-child {
    margin-bottom: 0;
}

/* QR Image */
.qr-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.qr-main-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.qr-scan-overlay {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(var(--primary-rgb), 0.9);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition);
}

.qr-scan-overlay:hover {
    background-color: var(--secondary);
    transform: translateX(-50%) translateY(-3px);
}

.qr-scan-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =====================================================
   SECTION WHY CHOOSE US
   ===================================================== */
.section-why {
    background-color: var(--gray-50);
}

.why-grid {
    row-gap: 24px;
}

.why-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.why-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 0;
    line-height: 1.7;
}

/* =====================================================
   SECTION TESTIMONIALS
   ===================================================== */
.section-testimonials {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-testimonials::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 60px;
    left: 5%;
    font-size: 120px;
    color: rgba(var(--primary-rgb), 0.04);
}

.testimonial-row {
    margin: 0;
}

.testimonial-card {
    background-color: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.testimonial-stars {
    margin-bottom: 16px;
    color: var(--secondary);
    font-size: 16px;
    display: flex;
    gap: 3px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    font-size: 42px;
    color: var(--gray-300);
    line-height: 1;
}

.testimonial-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-info span {
    font-size: 13px;
    color: var(--gray-400);
}

.demo-label {
    display: inline-block;
    background-color: var(--gray-200);
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    vertical-align: middle;
}

/* Testimonial controls */
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
}

.testimonial-controls .carousel-control-prev,
.testimonial-controls .carousel-control-next {
    position: static;
    width: 44px;
    height: 44px;
    background-color: var(--gray-100);
    color: var(--gray-600);
    border-radius: 50%;
    opacity: 1;
    transition: var(--transition-fast);
}

.testimonial-controls .carousel-control-prev:hover,
.testimonial-controls .carousel-control-next:hover {
    background-color: var(--primary);
    color: var(--white);
}

.testimonial-indicators {
    position: static;
    margin: 0;
}

.testimonial-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-300);
    border: none;
    opacity: 1;
    transition: var(--transition);
}

.testimonial-indicators button.active {
    background-color: var(--primary);
    width: 28px;
    border-radius: 5px;
}

/* =====================================================
   SECTION BLOG
   ===================================================== */
.section-blog {
    background-color: var(--gray-50);
}

.blog-grid {
    row-gap: 24px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: var(--radius-xl);
}

.blog-content {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--gray-400);
}

.blog-meta i {
    margin-right: 4px;
    color: var(--secondary);
}

.blog-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.blog-title a {
    color: var(--gray-800);
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.7;
}

.blog-readmore {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.blog-readmore:hover {
    color: var(--secondary);
    gap: 10px;
}

/* =====================================================
   SECTION CONTACT
   ===================================================== */
.section-contact {
    background-color: var(--white);
}

.contact-row {
    row-gap: 30px;
}

.contact-form-wrap {
    background-color: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--gray-200);
}

.contact-form-wrap h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 28px;
}

.contact-form-wrap h3 i {
    margin-right: 8px;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.contact-form .form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--gray-700);
    transition: var(--transition-fast);
    background-color: var(--white);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Contact info */
.contact-info-wrap {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 36px;
    color: var(--white);
    height: 100%;
}

.contact-info-wrap h3 {
    font-size: 22px;
    color: var(--white);
    margin-bottom: 28px;
}

.contact-info-wrap h3 i {
    margin-right: 8px;
    color: var(--secondary);
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--secondary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.contact-info-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.contact-info-text a {
    color: var(--secondary-light);
}

.contact-info-text a:hover {
    color: var(--secondary);
}

.contact-social {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-social h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background-color: var(--gray-800);
    color: var(--gray-300);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-logo {
    display: inline-block;
    background-color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.footer-about {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-contact-quick p {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.footer-contact-quick i {
    color: var(--secondary);
    margin-right: 8px;
    width: 16px;
}

.footer-contact-quick a {
    color: var(--gray-300);
}

.footer-contact-quick a:hover {
    color: var(--secondary);
}

.footer-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--secondary);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

/* Payment & Shipping */
.footer-payment,
.footer-shipping {
    margin-bottom: 16px;
}

.footer-payment p,
.footer-shipping p {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.payment-methods,
.shipping-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-item,
.shipping-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--gray-300);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.payment-item i {
    color: var(--secondary);
}

.footer-social {
    margin-top: 20px;
}

.footer-social .social-link {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Footer bottom */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* =====================================================
   SCROLL TO TOP
   ===================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

/* =====================================================
   MOBILE BOTTOM BAR
   ===================================================== */
.mobile-bottom-bar {
    display: none;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0 6px;
}

.mobile-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.mobile-bar-item i {
    font-size: 18px;
}

.mobile-bar-item.active {
    color: var(--primary);
}

.mobile-bar-item.qr-scan-btn {
    position: relative;
}

.mobile-bar-item.qr-scan-btn i {
    background-color: var(--primary);
    color: var(--white);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: -22px;
    font-size: 20px;
    box-shadow: var(--shadow-md);
}

/* =====================================================
   SUBPAGE SHARED COMPONENTS (BANNERS, BUTTONS, MODALS)
   ===================================================== */
.btn-sm-custom {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-outline-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--secondary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border: 2px solid var(--secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary-custom:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.qr-result-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.qr-portal-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qr-portal-bar {
    margin-top: 22px;
}

.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.page-banner::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(var(--secondary-rgb), 0.12);
}

.page-banner-inner {
    position: relative;
    z-index: 1;
}

.page-banner-badge {
    display: inline-block;
    background-color: rgba(var(--secondary-rgb), 0.2);
    color: var(--secondary-light);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: var(--radius-xl);
    margin-bottom: 12px;
}

.page-banner h1 {
    font-size: 38px;
    color: var(--white);
    margin-bottom: 12px;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    margin-bottom: 18px;
    font-size: 16px;
}

.breadcrumb-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-custom li {
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-custom li a {
    color: var(--secondary-light);
}

.breadcrumb-custom li a:hover {
    color: var(--white);
}

.breadcrumb-custom li.active {
    color: var(--white);
    font-weight: 600;
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.section-bg-light {
    background-color: var(--gray-50);
}

.about-story-box {
    background-color: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--gray-200);
}

.about-story-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.about-story-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--gray-700);
}

.about-story-list li i {
    color: var(--primary);
    margin-top: 5px;
}

.stats-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.stats-band .section-title,
.stats-band .section-desc {
    color: var(--white);
}

.stats-band .section-desc {
    opacity: 0.85;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    color: var(--secondary-light);
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 10px;
}

.team-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.team-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--gray-100);
}

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 22px;
    text-align: center;
}

.team-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.team-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.team-info p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 0;
}

.video-process-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.video-placeholder-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: var(--gray-800);
}

.video-placeholder-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background-color: var(--secondary);
    color: var(--white);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.video-play-btn:hover {
    background-color: var(--primary);
    transform: translate(-50%, -50%) scale(1.08);
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-hours-box {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-top: 24px;
}

.contact-hours-box h4 {
    color: var(--secondary-light);
    font-size: 15px;
    margin-bottom: 10px;
}

.contact-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.contact-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.contact-hours-list li:last-child {
    border-bottom: none;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.spam-check-box {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.spam-check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.spam-question-badge {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.spam-input {
    max-width: 150px;
}

.branch-notice-box,
.map-placeholder-box {
    background-color: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    height: 100%;
}

.branch-notice-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.branch-notice-box h3,
.map-placeholder-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.branch-notice-box p,
.map-placeholder-box p {
    color: var(--gray-500);
    max-width: 520px;
    margin: 0 auto 16px;
}

/* =====================================================
   PRODUCTS LISTING & DETAIL PAGE
   ===================================================== */
.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-widget {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.filter-widget-title {
    font-size: 16px;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list li:last-child {
    margin-bottom: 0;
}

.filter-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
}

.filter-check-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-check input[type="checkbox"],
.filter-check input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-count {
    font-size: 12px;
    color: var(--gray-400);
}

.price-range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.shop-toolbar {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.shop-search-box {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 240px;
    max-width: 380px;
}

.shop-sort-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-result-count {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

.pagination-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    list-style: none;
    padding: 0;
}

.pagination-custom .page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--gray-200);
    background-color: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-custom .page-btn:hover,
.pagination-custom .page-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination-custom .page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.empty-state-box {
    background-color: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
}

.empty-state-box i {
    font-size: 42px;
    color: var(--gray-400);
    margin-bottom: 14px;
}

.empty-state-box h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state-box p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* Product Detail */
.product-gallery-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    aspect-ratio: 1;
    margin-bottom: 14px;
    cursor: zoom-in;
}

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

.gallery-zoom-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background-color: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.product-thumb-btn {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 0;
    background: var(--white);
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

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

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-badge-ocop {
    background-color: var(--secondary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.detail-badge-stock {
    background-color: rgba(22, 163, 74, 0.12);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.detail-title {
    font-size: 30px;
    margin-bottom: 12px;
}

.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-price {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--danger);
}

.detail-meta-box {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 20px;
}

.detail-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.detail-meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-meta-list li:last-child {
    border-bottom: none;
}

.wholesale-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
    font-size: 14px;
}

.wholesale-table th,
.wholesale-table td {
    border: 1px solid var(--gray-200);
    padding: 10px 14px;
    text-align: left;
}

.wholesale-table th {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-family: var(--font-heading);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 38px;
    height: 42px;
    border: none;
    background-color: var(--gray-100);
    color: var(--gray-700);
    font-weight: 700;
    cursor: pointer;
}

.qty-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.qty-input {
    width: 56px;
    height: 42px;
    border: none;
    text-align: center;
    font-weight: 600;
    color: var(--gray-800);
}

.detail-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.detail-tabs-wrap {
    margin-top: 50px;
}

.detail-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.detail-tab-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.detail-tab-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

/* =====================================================
   BLOGS & BLOG DETAIL PAGE
   ===================================================== */
.blog-widget {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 24px;
}

.blog-widget h3 {
    font-size: 17px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.recent-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: center;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-thumb {
    width: 72px;
    height: 54px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.recent-post-info span {
    font-size: 12px;
    color: var(--gray-400);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    font-size: 13px;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tag-chip:hover,
.tag-chip.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.article-wrapper {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.article-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 22px;
}

.article-header-meta i {
    color: var(--secondary);
    margin-right: 6px;
}

.article-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 26px;
}

.article-toc {
    background-color: var(--gray-50);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-bottom: 26px;
}

.article-toc h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.article-toc ul {
    margin: 0;
    padding-left: 18px;
}

.article-toc li {
    margin-bottom: 6px;
}

.article-body h2 {
    font-size: 23px;
    color: var(--primary);
    margin: 26px 0 12px;
}

.article-body p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--gray-200);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =====================================================
   QR TRACEABILITY LIST & DETAIL PAGE
   ===================================================== */
.qr-search-panel {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
}

.qr-batch-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.qr-batch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.qr-batch-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.qr-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    align-self: flex-start;
}

.qr-batch-list-meta {
    list-style: none;
    padding: 0;
    margin: 10px 0 16px;
    font-size: 13px;
    color: var(--gray-600);
}

.qr-batch-list-meta li {
    margin-bottom: 6px;
}

.qr-status-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    color: var(--white);
    z-index: 2;
}

.qr-status-active {
    background-color: var(--primary);
}

.qr-status-ending {
    background-color: var(--secondary);
}

.qr-status-closed {
    background-color: var(--gray-500);
}

.qr-state-box {
    border-radius: var(--radius-lg);
    padding: 44px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.qr-state-loading {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.qr-state-error {
    background-color: rgba(220, 38, 38, 0.05);
    border: 1px dashed var(--danger);
}

.qr-state-error i {
    color: var(--danger);
}

.qr-timeline {
    position: relative;
    padding-left: 28px;
    margin: 20px 0 0;
    list-style: none;
}

.qr-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: var(--gray-200);
}

.qr-timeline-item {
    position: relative;
    padding-bottom: 22px;
}

.qr-timeline-item:last-child {
    padding-bottom: 0;
}

.qr-timeline-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

.qr-timeline-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-dark);
    display: block;
    margin-bottom: 4px;
}

.qr-timeline-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.qr-timeline-item p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 0;
}

.qr-cert-card {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.qr-public-link-box {
    background-color: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 22px;
}

.qr-role-switch {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.qr-internal-note {
    background-color: rgba(var(--secondary-rgb), 0.12);
    border: 1px dashed var(--secondary-dark);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-top: 20px;
}

/* =====================================================
   UTILITY HELPERS & SHARED INTERACTIVE MODALS
   ===================================================== */
.is-hidden {
    display: none;
}

.no-zoom {
    cursor: default;
}

.select-auto {
    width: auto;
}

.btn-full-center {
    width: 100%;
    justify-content: center;
}

.btn-block-spaced {
    margin-top: auto;
}

.detail-section-title {
    margin-bottom: 10px;
    font-size: 16px;
}

.detail-inline-link {
    margin-left: 8px;
    font-weight: 600;
}

.section-spaced-bottom {
    margin-bottom: 24px;
}

.section-spaced-top {
    margin-top: 16px;
}

.form-note-spaced {
    margin-top: 10px;
    margin-bottom: 0;
}

.spam-label {
    display: block;
    margin-bottom: 8px;
}

.cart-modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.cart-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-modal-item:last-child {
    border-bottom: none;
}

.cart-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--gray-50);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */

/* Tablet landscape */
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        padding: 8px 9px;
        font-size: 14px;
    }

    .nav-actions {
        margin-left: 10px;
        gap: 6px;
    }

    .nav-action-btn {
        padding: 6px 8px;
        font-size: 13px;
    }

    .section-title {
        font-size: 30px;
    }

    .hero-section .carousel-caption h1,
    .hero-section .carousel-caption .hero-title {
        font-size: 42px;
    }
}

/* Tablet portrait */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 10px 4px;
        font-size: 15px;
    }

    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    /* Header mobile */
    .header-topbar {
        display: none;
    }

    .nav-actions {
        margin-left: 0;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--gray-200);
    }

    .nav-action-label {
        display: inline;
    }

    /* Hero mobile */
    .hero-section .carousel-item {
        height: 55vh;
        min-height: 400px;
    }

    .hero-section .carousel-caption h1,
    .hero-section .carousel-caption .hero-title {
        font-size: 32px;
    }

    .hero-section .carousel-caption p {
        font-size: 15px;
    }

    /* About mobile */
    .about-images {
        padding-right: 0;
        margin-bottom: 60px;
    }

    .about-content {
        padding-left: 0;
    }

    /* QR mobile */
    .qr-image-wrap {
        margin-top: 36px;
    }

    .qr-main-img {
        height: 350px;
    }

    /* Contact mobile */
    .contact-info-wrap {
        margin-top: 0;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    body {
        font-size: 14px;
        padding-bottom: 65px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-desc {
        font-size: 14px;
    }

    /* Buttons mobile */
    .btn-primary-custom,
    .btn-outline-custom,
    .btn-outline-primary-custom,
    .btn-secondary-custom {
        padding: 10px 22px;
        font-size: 14px;
    }

    /* Hero mobile */
    .hero-section .carousel-item {
        height: 50vh;
        min-height: 360px;
    }

    .hero-section .carousel-caption h1,
    .hero-section .carousel-caption .hero-title {
        font-size: 26px;
    }

    .hero-section .carousel-caption p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        display: none;
    }

    /* Product tabs mobile */
    .product-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .product-tab {
        flex-shrink: 0;
        font-size: 13px;
        padding: 6px 16px;
    }

    /* QR mobile */
    .qr-input-group {
        flex-direction: column;
    }

    .qr-main-img {
        height: 280px;
    }

    /* Testimonials mobile */
    .testimonial-row .col-md-6:last-child {
        display: none;
    }

    /* Contact mobile */
    .contact-form-wrap,
    .contact-info-wrap {
        padding: 24px;
    }

    /* Subpages mobile */
    .page-banner {
        padding: 36px 0;
    }

    .page-banner h1 {
        font-size: 26px;
    }

    .article-wrapper,
    .about-story-box,
    .video-process-card {
        padding: 22px;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-price {
        font-size: 24px;
    }

    .product-actions {
        bottom: 0;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-search-box {
        max-width: 100%;
    }

    /* Footer mobile */
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile bottom bar */
    .mobile-bottom-bar {
        display: flex;
    }

    /* Scroll to top offset */
    .scroll-top-btn {
        bottom: 80px;
    }
}

/* Small mobile */
@media (max-width: 479.98px) {
    .hero-section .carousel-item {
        height: 45vh;
        min-height: 320px;
    }

    .hero-section .carousel-caption h1,
    .hero-section .carousel-caption .hero-title {
        font-size: 22px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 4px 12px;
    }

    .about-img-main img {
        height: 250px;
    }

    .about-img-sub {
        display: none;
    }

    .about-badge-float {
        position: static;
        display: inline-block;
        margin-top: 16px;
    }
}

