/* ==========================================
   CHONAMDAN.COM - MAIN STYLESHEET
   ========================================== */

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #ff5722;
    --primary-dark: #e64a19;
    --primary-light: #ff8a65;
    --secondary: #ff1744;
    --accent: #fff3e0;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a6a;
    --text-light: #9e9e9e;
    --white: #ffffff;
    --bg-light: #f8f9fc;
    --bg-card: #ffffff;
    --border: #e8eaf0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);
    --shadow-primary: 0 4px 20px rgba(255, 87, 34, 0.3);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 70px;
    --bottom-nav-height: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font);
}
input,
textarea,
select {
    font-family: var(--font);
    outline: none;
}
ul,
ol {
    list-style: none;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 87, 34, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* === UTILITIES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 40px 0;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title span {
    color: var(--primary);
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}
.badge-primary {
    background: var(--accent);
    color: var(--primary);
}
.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}
.badge-info {
    background: #e3f2fd;
    color: #1565c0;
}
.text-primary {
    color: var(--primary);
}
.fw-700 {
    font-weight: 700;
}
.hidden {
    display: none !important;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 87, 34, 0.4);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-ghost {
    background: var(--bg-light);
    color: var(--text-medium);
}
.btn-ghost:hover {
    background: var(--border);
}
.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}
.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}
.btn-block {
    width: 100%;
}

/* === HEADER === */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}
.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    display: block;
}
/* keep .logo for footer fallback */
.logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
}
.search-wrap {
    flex: 1;
    max-width: 500px;
    position: relative;
}
.search-wrap input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    background: var(--bg-light);
    transition: var(--transition);
    color: var(--text-dark);
}
.search-wrap input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}
.search-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}
.search-wrap .search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}
.search-wrap .search-btn:hover {
    background: var(--primary-dark);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    transition: var(--transition);
    position: relative;
}
.header-nav a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: var(--transition);
}
.header-nav a:hover,
.header-nav a.active {
    color: var(--primary);
}
.header-nav a:hover::after,
.header-nav a.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    background: var(--bg-light);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}
.header-btn:hover {
    background: var(--accent);
    color: var(--primary);
}
.header-btn .badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Account Dropdown */
.account-wrap {
    position: relative;
}
.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 200px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}
.account-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.account-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-medium);
    transition: var(--transition);
}
.account-dropdown a:hover {
    background: var(--accent);
    color: var(--primary);
}
.account-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Cart Popup */
.cart-wrap {
    position: relative;
}
.cart-popup {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    overflow: hidden;
}
.cart-popup.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.cart-popup-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1rem;
}
.cart-items {
    max-height: 320px;
    overflow-y: auto;
    padding: 12px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.cart-item:hover {
    background: var(--bg-light);
}
.cart-item img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}
.cart-item-price {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 700;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}
.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}
.qty-btn:hover {
    border-color: var(--primary);
    background: var(--accent);
}
.qty-num {
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}
.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
}
.cart-total span:last-child {
    color: var(--primary);
    font-size: 1.1rem;
}
.cart-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
}
.cart-empty svg {
    margin: 0 auto 12px;
    display: block;
    opacity: 0.4;
}

/* === BOTTOM NAV (MOBILE) === */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    height: var(--bottom-nav-height);
}
.bottom-nav-inner {
    display: flex;
    align-items: stretch;
    height: 100%;
    padding: 0;
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    cursor: pointer;
    color: #9e9e9e;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    min-width: 0;
}
.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.bottom-nav-item span {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.bottom-nav-item.active {
    color: var(--primary);
}
.bottom-nav-item.active svg {
    transform: scale(1.1);
}
.bottom-nav-item.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}
.bottom-nav-item:active {
    opacity: 0.7;
}

/* === BANNER SLIDER === */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin: 20px 0;
}
.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
    min-width: 100%;
    aspect-ratio: 16/5;
    overflow: hidden;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    backdrop-filter: blur(4px);
    z-index: 5;
}
.slider-btn:hover {
    background: white;
    box-shadow: var(--shadow-md);
}
.slider-btn.prev {
    left: 14px;
}
.slider-btn.next {
    right: 14px;
}
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* === CATEGORY TABS === */
.category-tabs {
    overflow-x: auto;
    padding: 10px 0 8px;
    margin-bottom: 10px;
}
.category-tabs::-webkit-scrollbar {
    height: 6px;
}
.category-tabs::-webkit-scrollbar-track {
    background: transparent;
}
.category-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 87, 34, 0.28);
    border-radius: 10px;
}
.category-tabs::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
.category-tabs-inner {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}
.cat-tab {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border);
    color: var(--text-medium);
    background: white;
    -webkit-tap-highlight-color: transparent;
}
.cat-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}
.cat-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-primary);
}

@media (max-width: 768px) {
    .category-tabs {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* === PRODUCT CARDS === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.slider-btn {
    display: none !important;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.product-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-img {
    transform: scale(1.05);
}
.product-card-img-wrap {
    overflow: hidden;
    position: relative;
}
.product-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}
.product-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card-price {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-height: 24px;
}
.price-original {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: line-through;
}
.badge-sale {
    position: absolute;
    top: 5px;
    left: 10px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 0.3px;
}
.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-light);
}
.product-card-rating svg {
    color: #ffc107;
}
.product-card-sold {
    font-size: 0.75rem;
    color: var(--text-light);
}
.product-card-footer {
    padding: 0 0px 0px;
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.add-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}
.add-btn:hover {
    transform: scale(1.15) rotate(90deg);
}
.add-btn:active {
    transform: scale(0.9);
}

/* See More Button */
.see-more-wrap {
    text-align: center;
    margin-top: 28px;
}

/* === SHOP CARDS === */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.shop-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.shop-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.shop-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.shop-card:hover .shop-card-img {
    transform: scale(1.06);
}
.shop-open-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2e7d32;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}
.shop-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.shop-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}
.shop-card-type {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}
.shop-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.shop-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-light);
}
.shop-card-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.shop-card-rating svg {
    color: #ffc107;
}

/* === SERVICE CARDS === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.service-card-img-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.service-card:hover .service-card-img {
    transform: scale(1.05);
}
.service-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.service-card-tag {
    display: inline-flex;
    padding: 3px 10px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.service-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}
.service-card-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.6em * 2);
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 720px;
    max-height: 90vh;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.modal-overlay.open .modal {
    transform: translate(-50%, -50%) scale(1);
}
.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}
.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: var(--transition);
}
.modal-close:hover {
    background: var(--accent);
    color: var(--primary);
}
.modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--border);
}

/* Product Modal Layout */
.product-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.product-modal-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
}
.product-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-modal-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
}
.product-modal-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}
.product-modal-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--text-light);
}
.product-modal-desc {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
}
.product-modal-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qty-control .qty-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}
.qty-control .qty-btn:hover {
    border-color: var(--primary);
    background: var(--accent);
}
.qty-control .qty-num {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}
.note-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 6px;
}
.note-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    resize: none;
    transition: var(--transition);
}
.note-input:focus {
    border-color: var(--primary);
}

/* Bottom Sheet (Mobile) */
.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 90dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 0;
}
.modal-overlay.open .bottom-sheet {
    transform: translateY(0);
}
.bottom-sheet-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.bottom-sheet-add-btn {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--border);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 2;
}

/* === FILTER MODAL === */
.filter-section {
    margin-bottom: 24px;
}
.filter-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-pill {
    padding: 7px 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-medium);
    background: white;
}
.filter-pill.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--accent);
}
.price-range {
    margin-top: 8px;
}
.range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: var(--text-medium);
}
.range-input {
    width: 100%;
    accent-color: var(--primary);
}
.filter-actions {
    display: flex;
    gap: 10px;
}

/* === TOAST === */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 340px;
    animation: toastIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border-left: 4px solid var(--primary);
}
.toast.removing {
    animation: toastOut 0.3s ease forwards;
}
.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.toast-text {
    flex: 1;
}
.toast-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}
.toast-desc {
    font-size: 0.78rem;
    color: var(--text-light);
}
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* === FLOATING CART === */
.floating-cart {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 900;
    display: none !important;
}
.floating-cart-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}
.floating-cart-btn:hover {
    transform: scale(1.1);
}
.floating-cart-btn:active {
    transform: scale(0.95);
}

/* === PAGE HERO (small) === */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 40px 0;
    margin-bottom: 30px;
    color: white;
}
.page-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.page-hero p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* === SHOP COVER === */
.shop-cover {
    position: relative;
    height: 260px;
    overflow: hidden;
}
.shop-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}
.shop-cover-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    z-index: 1;
}
.shop-cover-info h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.shop-cover-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.shop-cover-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    opacity: 0.9;
}

/* === FORM STYLES === */
.form-group {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: white;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}
.form-control::placeholder {
    color: var(--text-light);
}
.form-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
}
.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}
.auth-logo .logo {
    font-size: 1.8rem;
    display: inline-block;
}
.auth-title {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.auth-sub {
    font-size: 0.88rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 28px;
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-light);
}
.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* === CHECKOUT PAGE === */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}
.checkout-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.checkout-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}
.checkout-section-title svg {
    color: var(--primary);
}
.order-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.order-summary-item:last-child {
    border-bottom: none;
}
.order-summary-img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.order-summary-info {
    flex: 1;
}
.order-summary-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}
.order-summary-meta {
    font-size: 0.78rem;
    color: var(--text-light);
}
.order-summary-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-medium);
}
.price-row.total {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    border-top: 2px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
}
.price-row.total span:last-child {
    color: var(--primary);
}

/* === ACCOUNT PAGE === */
.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}
.account-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}
.account-avatar {
    text-align: center;
    margin-bottom: 20px;
}
.account-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 3px solid var(--primary);
}
.account-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}
.account-email {
    font-size: 0.82rem;
    color: var(--text-light);
}
.account-menu {
    margin-top: 16px;
}
.account-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
}
.account-menu-item:hover,
.account-menu-item.active {
    background: var(--accent);
    color: var(--primary);
}
.account-menu-item svg {
    width: 18px;
    height: 18px;
}
.account-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}
.account-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.order-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
    transition: var(--transition);
}
.order-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}
.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.order-id {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
}
.order-date {
    font-size: 0.78rem;
    color: var(--text-light);
}
.order-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}
.status-delivered {
    background: #e8f5e9;
    color: #2e7d32;
}
.status-delivering {
    background: #e3f2fd;
    color: #1565c0;
}
.status-confirmed {
    background: #e3f2fd;
    color: #1565c0;
}
.status-pending {
    background: #fff8e1;
    color: #f57f17;
}
.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}
.status-cancelled {
    background: #fce4ec;
    color: #b71c1c;
}

/* === SEARCH PAGE === */
.search-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.search-tab {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--border);
    color: var(--text-medium);
    background: white;
    transition: var(--transition);
}
.search-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state svg {
    margin: 0 auto 16px;
    display: block;
    opacity: 0.3;
}
.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.empty-state p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* === SERVICE DETAIL === */
.service-detail-cover {
    width: 100%;
    aspect-ratio: 16/6;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.service-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-detail-body h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}
.service-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.service-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--text-light);
}
.service-detail-content {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-medium);
}
.service-detail-content p {
    margin-bottom: 16px;
}
.service-detail-content img {
    border-radius: var(--radius-md);
    margin: 20px 0;
}
.service-detail-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 24px 0 12px;
}

/* === SEARCH HERO BAR (search.html) === */
.search-hero-bar {
    display: none;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}
.search-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.search-hero-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-hero-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 50px;
    transition: var(--transition);
}
.search-hero-input-wrap:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}
.search-hero-icon {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    pointer-events: none;
    flex-shrink: 0;
}
.search-hero-input {
    flex: 1;
    width: 100%;
    padding: 11px 40px 11px 40px;
    border: none;
    background: transparent;
    font-size: 0.93rem;
    color: var(--text-dark);
    outline: none;
    font-family: var(--font);
}
.search-hero-input::placeholder {
    color: var(--text-light);
}
.search-hero-clear {
    position: absolute;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
}
.search-hero-clear:hover {
    background: rgba(0, 0, 0, 0.2);
}
.search-hero-submit {
    flex-shrink: 0;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    box-shadow: var(--shadow-primary);
    white-space: nowrap;
}
.search-hero-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.35);
}
.search-hero-submit:active {
    transform: scale(0.97);
}
@media (max-width: 768px) {
    .search-hero-bar {
        top: 60px;
    }
    .search-hero-input {
        font-size: 0.88rem;
        padding: 10px 36px 10px 38px;
    }
    .search-hero-submit {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* === FOOTER === */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-brand .logo {
    font-size: 1.4rem;
    margin-bottom: 12px;
    display: inline-block;
}
.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.7;
}
.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    font-size: 0.82rem;
    opacity: 0.7;
    transition: var(--transition);
}
.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--primary);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.5s ease both;
}
.animate-fade {
    animation: fadeIn 0.4s ease both;
}
.animate-scale {
    animation: scaleIn 0.3s ease both;
}

[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}
[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 20px;
}
.breadcrumb a {
    color: var(--primary);
}
.breadcrumb span {
    opacity: 0.5;
}

/* === SHOP MENU TABS === */
.shop-menu-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}
.shop-menu-tabs::-webkit-scrollbar {
    display: none;
}
.shop-menu-tabs-inner {
    display: flex;
    gap: 0;
    white-space: nowrap;
}
.shop-menu-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.shop-menu-tab:hover {
    color: var(--primary);
}
.shop-menu-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    body {
        padding-top: var(--header-height);
        padding-bottom: var(--bottom-nav-height);
    }
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    .bottom-nav {
        display: block;
        width: min(100vw, 480px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .header-nav {
        display: none;
    }
    .search-wrap {
        display: none;
    }
    .search-hero-bar {
        display: block;
    }
    .header-actions .account-wrap {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .home-products-strip {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(45.5%, 45.5%);
        grid-template-columns: none;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding-right: 8%;
        padding-bottom: 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .home-products-strip::-webkit-scrollbar {
        display: none;
    }
    .home-products-strip .product-card {
        min-width: 0;
        scroll-snap-align: start;
    }
    .home-products-strip {
        scroll-snap-type: x proximity;
    }

    .home-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .home-title-row > div {
        min-width: 0;
    }
    .home-title-more-link {
        display: inline-flex;
        flex-shrink: 0;
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--primary);
        line-height: 1;
    }
    .home-title-more-link:hover {
        color: var(--primary-dark);
    }
    .home-featured-more-wrap {
        display: none;
    }
    .home-nearby-more-wrap {
        display: none;
    }
    .home-products-strip .product-card-price {
        font-size: 0.88rem;
        gap: 4px;
    }
    .home-products-strip .price-original {
        font-size: 0.66rem;
    }
    .home-title-row + .home-products-strip {
        margin-top: 2px;
    }
    .home-products-strip + .home-title-row {
        margin-top: 10px;
    }
    .shops-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .shop-card-meta {
        flex-wrap: wrap;
        row-gap: 6px;
    }
    .shop-card-meta span:last-child {
        flex-basis: 100%;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .banner-slider {
        margin: 8px 0;
    }
    .category-tabs {
        padding: 6px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .account-layout {
        grid-template-columns: 1fr;
    }
    .product-modal-layout {
        grid-template-columns: 1fr;
    }
    .modal {
        width: 95%;
    }
    .cart-popup {
        width: 100%;
        right: -100%;
    }
    .cart-popup.open {
        right: 0;
    }
    .page-hero h1 {
        font-size: 1.3rem;
    }
    .slide {
        aspect-ratio: 16/7;
    }
    .shop-cover {
        height: 200px;
    }
    .service-detail-body h1 {
        font-size: 1.4rem;
    }
    .toast-container {
        right: 10px;
        left: 10px;
    }
    .toast {
        min-width: auto;
        max-width: 100%;
    }
    .floating-cart {
        display: block;
        right: 14px;
    }
    body.search-empty-mobile .search-hero-bar {
        position: relative;
        top: auto;
        margin-top: 18vh;
    }
    body.search-empty-mobile .search-hero-inner {
        max-width: 560px;
        margin: 0 auto;
    }
    body.search-empty-mobile #suggested-section {
        margin-top: 24px !important;
    }
}

@media (min-width: 769px) {
    .home-title-more-link {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }
    .section {
        padding: 24px 0;
    }
    .auth-card {
        padding: 28px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Category page banner small */
.category-banner-small {
    height: 160px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    position: relative;
    margin-bottom: 24px;
}
.category-banner-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-banner-small::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 30%, transparent);
}
.category-banner-small-info {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    z-index: 1;
}
.category-banner-small-info h1 {
    font-size: 1.4rem;
    font-weight: 800;
}
.category-banner-small-info p {
    font-size: 0.82rem;
    opacity: 0.85;
}

/* Address radio */
.address-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}
.address-option input[type="radio"] {
    accent-color: var(--primary);
    margin-top: 2px;
}
.address-option.selected {
    border-color: var(--primary);
    background: var(--accent);
}
.address-option-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}
.address-option-sub {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Payment method */
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}
.payment-option input[type="radio"] {
    accent-color: var(--primary);
}
.payment-option.selected {
    border-color: var(--primary);
}
.payment-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-label {
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
}

/* Pulse animation for cart badge */
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}
.pulse {
    animation: pulse 0.4s ease;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-wave 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-wave {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}
