/* =========================================================
   MAHINZO FRONTEND – UNIFIED ARCHITECTURE
   Cleaned and optimized - Only used CSS
========================================================= */
/* ================= GLOBAL FLUID RESPONSIVE SYSTEM ================= */

:root {

  /* Container width auto adjust */
  --container-max: min(1400px, 95vw);

  /* Fluid font sizes */
  --fs-xl: clamp(26px, 3vw, 34px);
  --fs-lg: clamp(20px, 2.2vw, 26px);
  --fs-md: clamp(16px, 1.8vw, 20px);
  --fs-sm: clamp(14px, 1.4vw, 16px);

  /* spacing auto scale */
  --space-xl: clamp(40px, 5vw, 70px);
  --space-lg: clamp(24px, 3vw, 40px);
  --space-md: clamp(14px, 2vw, 22px);
  --space-sm: clamp(8px, 1.4vw, 14px);
}

/* universal responsive container */

.page-container,
.featured-wrap,
.product-section,
.home-category-section,
.top-category-section,
.footer-inner {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(12px, 3vw, 24px);
}
/* ================= AUTO RESPONSIVE GRID ================= */

.product-grid,
.subcategory-products-section .product-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: clamp(12px, 2vw, 22px);
}
.product-row {
    display: flex;
    gap: clamp(12px, 2vw, 20px);

    overflow-x: auto;
    scroll-behavior: smooth;

    padding: 10px 0;
}

/* card width auto scale */

.product-row .product-card {
    flex: 0 0 clamp(200px, 22vw, 260px);
}
.hero-banner {
    width: 100%;
    height: clamp(180px, 28vw, 350px);
}
.category-item img {
    width: clamp(55px, 6vw, 70px);
    height: clamp(55px, 6vw, 70px);
}

.category-name {
    font-size: clamp(11px, 1.4vw, 13px);
}

/* ---------- BRAND VARIABLES ---------- */
:root {
    --brand-orange: #F7941D;
    --brand-purple: #5A3D99;
    --brand-white: #FFFFFF;
    --bg-light: #FFF8EE;       
    --border-light: #E5E7EB;
    --text-dark: #1F2937;

    /* RESPONSIVE CONTAINER WIDTHS */
    --container-max: 1400px;
    --container-desktop: 1200px;
    --container-laptop: 1024px;
    --container-tablet: 768px;
    --container-mobile: 100%;

    /* RESPONSIVE SPACING */
    --spacing-xl: 60px;
    --spacing-lg: 40px;
    --spacing-md: 20px;
    --spacing-sm: 12px;
    --spacing-xs: 8px;
}

/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* ---------- BODY (STICKY FOOTER READY) ---------- */
body {
    font-family: "Times New Roman", Times, serif;
    background: #ffffff;
    color: var(--text-dark);

    display: flex;
    flex-direction: column;
    min-height: 100vh;

    /* fixed header space */
    padding-top: 100px;
}

/* main content must grow */
main.page-content {
    flex: 1;
}

/* ---------- BREADCRUMB NAVIGATION ---------- */
.breadcrumb-nav {
    background:none;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    margin-bottom: 20px;
}

.breadcrumb {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb-item a {
    color: #670a6e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item a:hover {
    color: #f7941d;
}

.breadcrumb-item.active {
    color: #1f2937;
    font-weight: 600;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #9ca3af;
    font-size: 18px;
    font-weight: 300;
}

.breadcrumb-item i {
    font-size: 15px;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 0 20px;
        font-size: 13px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 6px;
        font-size: 16px;
    }
}

/* ---------- COMMON ---------- */
a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: rgba(247, 148, 29, 0.3);
    touch-action: manipulation;
}

/* Smooth transitions */
.product-card,
.add-to-cart-btn,
.nav-btn,
.category-item,
button {
    transition: all 0.3s ease;
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    background: #fdfdff;
    padding: 12px 0;

    border-bottom: 2px solid var(--brand-orange);
    box-shadow: none;

    transition: box-shadow 0.3s ease;
    overflow: visible;
}

/* Header shadow on scroll */
.site-header.scrolled {
    box-shadow:
        0 6px 16px rgba(247, 148, 29, 0.25),
        0 14px 40px rgba(247, 148, 29, 0.18);
}

.header-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    gap: 22px;
}

/* ---------- BRAND ---------- */
.brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-logo {
    height: 56px;
    width: auto;
}

.brand-text {
    font-size: 22px;
    font-weight: bold;

    background: linear-gradient(135deg, #670a6e 0%, #F7941D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- NAV BUTTONS ---------- */
.header-nav {
    display: flex;
    gap: 14px;
    align-items: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #4a0e5e;
    font-size: 17px;
    font-weight: normal;

    padding: 6px 12px;
    border-radius: 4px;
}

.nav-btn:hover {
    background: rgba(74, 14, 94, 0.15);
    color: #2d1b4e;
}

/* ---------- CATEGORY TOGGLE (NO OUTLINE) ---------- */
.category-toggle {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

.category-toggle:focus,
.category-toggle:focus-visible,
.category-toggle:active {
    outline: none;
    box-shadow: none;
}

.site-header button {
    border: none;
    outline: none;
    box-shadow: none;
}

/* ---------- SEARCH BAR ---------- */
.header-search {
    margin: 0 auto;
}

.dookan-search {
    display: flex;
    align-items: center;

    height: 46px;
    min-width: 420px;
    padding: 4px 6px 4px 14px;

    background: #ffffff;
    border-radius: 24px;
    border: 1.5px solid rgba(90, 61, 153, 0.45);

    box-shadow:
        0 2px 6px rgba(90, 61, 153, 0.18),
        0 0 0 3px rgba(90, 61, 153, 0.06);

    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.dookan-search:focus-within {
    border-color: var(--brand-purple);
    box-shadow:
        0 4px 12px rgba(90, 61, 153, 0.35),
        0 0 0 4px rgba(90, 61, 153, 0.12);
}

.dookan-search i {
    margin-right: 10px;
    font-size: 15px;
    color: #6b7280;
}

.dookan-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;

    font-size: 15px;
    color: #1f2937;
}

.dookan-search button {
    margin-left: 10px;
    padding: 8px 22px;

    background: var(--brand-purple);
    color: #ffffff;

    border: none;
    border-radius: 20px;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.dookan-search button:hover {
    background: #4a3285;
}

/* ---------- CART ---------- */
.cart-link {
    position: relative;
    color: #4a0e5e;
}

.cart-link i {
    font-size: 30px;
    color: #4a0e5e;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;

    background: #ff3b3b;
    color: #ffffff;

    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}
/* ---------- USER MENU & LOGIN ---------- */
.login-btn {
    background: #ffffff;
    color: #1F2937 !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 8px;

    border: 1px solid #E5E7EB;
    transition: all 0.25s ease;
}

.login-btn i {
    font-size: 18px;
    color: #4B5563;
}

.login-btn span {
    font-size: 14px;
    white-space: nowrap;
}

.login-btn:hover {
    background: #F9FAFB;
    border-color: var(--brand-orange);
    color: var(--brand-orange) !important;
}

.login-btn:hover i {
    color: var(--brand-orange);
}

/* ---------- USER DROPDOWN ---------- */
.user-menu {
    position: relative;
}

.user-btn {
    background: transparent;
    color: #ffffff !important;
    padding: 0;
    border-radius: 50%;
    font-weight: 500;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    border: none;
}

.user-btn:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* User Avatar Circle */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5A3D99 0%, #4A2D89 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(90, 61, 153, 0.4);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    box-shadow: 0 4px 15px rgba(90, 61, 153, 0.5);
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;

    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);

    transition: all 0.25s ease;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 16px;
    color: #374151;
    text-decoration: none;

    border-bottom: 1px solid #F3F4F6;
    transition: all 0.2s ease;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #FFF8EE;
    color: var(--brand-orange);
}

.user-dropdown a i {
    font-size: 16px;
    width: 20px;
}

/* ---------- CHECKOUT PAGE ---------- */
.checkout-hero {
    max-width: var(--container-desktop);
    margin: 10px auto 30px;
    padding: 18px 22px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    background: linear-gradient(120deg, #fff3e4 0%, #fff9f2 55%, #add381 100%);
    border: 1px solid rgba(90, 61, 153, 0.15);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.checkout-hero__eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #9a3412;
    font-weight: 700;
}

.checkout-hero__title {
    font-size: 28px;
    margin: 6px 0 4px;
    color: #2d1b4e;
}

.checkout-hero__sub {
    font-size: 14px;
    color: #6b7280;
}

.checkout-hero__badge {
    background: #ffffff;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(247, 148, 29, 0.25);
    box-shadow: 0 10px 20px rgba(247, 148, 29, 0.15);

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-hero__badge-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: #9a3412;
}

.checkout-hero__badge-value {
    font-size: 15px;
    font-weight: 700;
    color: #3b0764;
}

.checkout-alert {
    max-width: var(--container-desktop);
    margin: 0 auto 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.checkout-grid {
    max-width: var(--container-desktop);
    margin: 0 auto 60px;
    padding: 0 20px;
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
}

.checkout-main,
.checkout-summary {
    display: flex;
    align-self: start;
    flex-direction: column;
    gap: 20px;
}

.checkout-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 12px 26px rgba(31, 41, 55, 0.06);
}

.checkout-card--soft {
    background: #fffdf9;
    border: 1px solid rgba(247, 148, 29, 0.2);
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.checkout-step__index {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #3b0764;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.checkout-step__title {
    font-size: 20px;
    color: #1f2937;
    margin: 0 0 4px;
}

.checkout-step__desc {
    font-size: 13px;
    color: #6b7280;
}

.checkout-form {
    display: grid;
    gap: 12px;
}

.checkout-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.checkout-input,
.checkout-textarea {
    width: 100%;
    border: 1px solid rgba(90, 61, 153, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-textarea {
    min-height: 100px;
    resize: vertical;
}

.checkout-address-picker {
    width: 100%;
    border: 1px solid rgba(90, 61, 153, 0.18);
    border-radius: 16px;
    padding: 16px 18px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checkout-address-picker:hover {
    border-color: rgba(103, 10, 110, 0.4);
    box-shadow: 0 10px 18px rgba(103, 10, 110, 0.08);
    transform: translateY(-1px);
}

.checkout-address-picker.is-selected {
    border-color: rgba(247, 148, 29, 0.45);
    background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}

.checkout-address-picker__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.checkout-address-picker__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9a3412;
}

.checkout-address-picker__action {
    font-size: 12px;
    font-weight: 700;
    color: #670a6e;
}

.checkout-address-picker__title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.checkout-address-picker__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

.checkout-address-note {
    margin: -2px 0 4px;
    font-size: 12px;
    color: #6b7280;
}

.checkout-input:focus,
.checkout-textarea:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(90, 61, 153, 0.12);
}

.checkout-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.checkout-btn {
    background: linear-gradient(135deg, #f7941d 0%, #f36f21 100%);
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(247, 148, 29, 0.25);
}

.checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(247, 148, 29, 0.3);
}

.checkout-hint {
    font-size: 12px;
    color: #6b7280;
}

/* ================= PAYMENT OPTIONS ================= */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.payment-option {
    display: block;
    position: relative;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s;
}

.payment-option input[type="radio"]:checked + .payment-option-content {
    border-color: #670a6e;
    background: #f8f4f9;
}

.payment-option:hover .payment-option-content {
    border-color: #670a6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 10, 110, 0.15);
}

.payment-option-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.payment-option strong {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.checkout-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-pill {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(90, 61, 153, 0.2);
    color: #4b5563;
    font-size: 13px;
    background: #ffffff;
}

.checkout-pill--active {
    background: #ede9fe;
    border-color: rgba(90, 61, 153, 0.35);
    color: #3b0764;
    font-weight: 600;
}

.checkout-summary__card {
    position: static;
    top: auto;
}

.checkout-summary__title {
    font-size: 20px;
    margin-bottom: 14px;
}

.checkout-summary__items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.checkout-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e7eb;
}

.checkout-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-item__name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.checkout-item__variant {
    font-size: 12px;
    color: #6b7280;
}

.checkout-item__price {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.checkout-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.checkout-support {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.checkout-support h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.checkout-support p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.checkout-support__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #92400e;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.checkout-support__cta:hover {
    background: #fff7ed;
}

.checkout-address-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.52);
    backdrop-filter: blur(3px);
    z-index: 10030;
}

.checkout-address-modal.is-visible {
    display: flex;
}

.profile-address-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(3px);
    z-index: 10040;
}

.profile-address-modal.is-visible {
    display: flex;
}

.profile-address-dialog {
    width: min(100%, 740px);
    background: #ffffff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.25);
}

.address-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid #eef2f7;
}

.address-dialog-header h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #111827;
}

.address-dialog-header p {
    margin: 0;
    color: #282a2d;
    font-size: 13px;
}

.address-dialog-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f5f7fb;
    color: #8a94a6;
    cursor: pointer;
    font-size: 18px;
}

.address-dialog-body {
    padding: 18px 22px 22px;
}

.address-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #ead8e5;
    border-radius: 16px;
    background: #ffffff;
    margin-bottom: 18px;
}

.address-search-box i {
    color: #8b93a7;
    font-size: 16px;
}

.address-search-box input {
    border: none;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

.address-search-box input:focus {
    box-shadow: none;
}

.address-form-card {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.address-form-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    margin-bottom: 18px;
}

.address-form-group label,
.address-form-inline label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.address-form-group input,
.address-form-group textarea,
.address-form-inline input {
    width: 100%;
    border: 1px solid #dbe2ec;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 14px;
    background: #ffffff;
    color: #111827;
}

.address-form-group input:focus,
.address-form-group textarea:focus,
.address-form-inline input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.address-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.address-type-picker {
    display: flex;
    align-items: end;
    gap: 10px;
}

.address-type-button {
    min-width: 74px;
    height: 48px;
    border: 1px solid #dbe2ec;
    border-radius: 14px;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.address-type-button:disabled,
.address-type-button.is-disabled {
    opacity: 0.42;
    cursor: not-allowed;
    filter: blur(0.8px);
    box-shadow: none;
}

.address-type-button.is-active {
    border-color: #f43f7b;
    background: #fff1f7;
    color: #be185d;
}

.address-form-group {
    margin-bottom: 16px;
}

.address-location-status {
    margin: 0 0 16px;
    color: #7c3aed;
    font-size: 13px;
    font-weight: 600;
}

.address-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.address-form-actions .address-submit {
    flex: 1;
    width: auto;
}

.address-locate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid #d9def8;
    border-radius: 18px;
    background: #f8faff;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.address-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff186f 0%, #f43f7b 100%);
    color: #ffffff;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 28px rgba(244, 63, 123, 0.25);
}

.address-locate-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.address-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.checkout-address-dialog {
    width: min(100%, 760px);
    max-height: min(88vh, 760px);
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
}

.checkout-address-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #eef2f7;
}

.checkout-address-dialog__header h3 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #111827;
}

.checkout-address-dialog__header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.checkout-address-dialog__close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f5f7fb;
    color: #8a94a6;
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
}

.checkout-address-dialog__body {
    padding: 20px 22px 24px;
    overflow-y: auto;
    max-height: calc(88vh - 88px);
}

.checkout-address-panel {
    display: none;
}

.checkout-address-panel.is-active {
    display: block;
}

.checkout-address-add {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #f0d7e7;
    background: #ffffff;
    color: #ff2d6f;
    text-decoration: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
    margin-bottom: 26px;
}

.checkout-address-add__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff1f6;
    font-size: 18px;
}

.checkout-address-add__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.checkout-address-add__content strong {
    font-size: 18px;
}

.checkout-address-add__content small {
    font-size: 13px;
    color: #6b7280;
}

.checkout-address-add__arrow {
    margin-left: auto;
    color: #7c8699;
}

.checkout-address-modal__section-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #111827;
    margin-bottom: 16px;
}

.checkout-address-list {
    display: grid;
    gap: 12px;
}

.checkout-address-option {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e7ebf1;
    border-radius: 18px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checkout-address-option:hover {
    border-color: rgba(103, 10, 110, 0.28);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.checkout-address-option.is-selected {
    border-color: rgba(247, 148, 29, 0.45);
    background: #fffdf8;
}

.checkout-address-option__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f8f4fb;
    color: #670a6e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.checkout-address-option__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.checkout-address-option__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-address-option__title {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
}

.checkout-address-option__type {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.checkout-address-option__meta {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.checkout-address-option__text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.checkout-address-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 18px 20px;
    color: #6b7280;
}

.checkout-address-empty__icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    color: #f7941d;
    font-size: 28px;
    margin-bottom: 16px;
}

.checkout-address-empty h4 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #111827;
}

.checkout-address-empty p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.checkout-address-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
}

.checkout-address-form {
    display: grid;
    gap: 14px;
}

.checkout-address-type-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-address-type-button {
    min-width: 86px;
    padding: 11px 14px;
    border: 1px solid rgba(90, 61, 153, 0.18);
    border-radius: 12px;
    background: #ffffff;
    color: #4b5563;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-address-type-button.is-active {
    background: #3b0764;
    border-color: #3b0764;
    color: #ffffff;
}

.checkout-address-form-group {
    display: grid;
    gap: 8px;
}

.checkout-address-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.checkout-address-form-group input,
.checkout-address-form-group textarea {
    width: 100%;
    border: 1px solid rgba(90, 61, 153, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    background: #ffffff;
}

.checkout-address-form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.checkout-address-form-group input:focus,
.checkout-address-form-group textarea:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(90, 61, 153, 0.12);
}

.checkout-address-form-status {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.checkout-address-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkout-address-locate,
.checkout-address-save {
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.checkout-address-locate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    color: #1f2937;
}

.checkout-address-save {
    background: linear-gradient(135deg, #f7941d 0%, #f36f21 100%);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(247, 148, 29, 0.22);
}

.checkout-address-save:disabled,
.checkout-address-locate:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .checkout-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary__card {
        position: static;
    }
}

@media (max-width: 640px) {
    .checkout-hero {
        padding: 16px;
    }

    .checkout-hero__title {
        font-size: 22px;
    }

    .checkout-card {
        padding: 16px;
    }

    .checkout-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-address-modal {
        padding: 12px;
    }

    .checkout-address-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 24px;
    }

    .checkout-address-dialog__header h3 {
        font-size: 22px;
    }

    .profile-address-modal {
        padding: 14px;
        align-items: end;
    }

    .profile-address-dialog {
        border-radius: 24px 24px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .checkout-address-add {
        padding: 16px;
    }

    .checkout-address-add__content strong {
        font-size: 16px;
    }

    .checkout-address-option {
        padding: 16px;
    }

    .checkout-address-option__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-address-option__title {
        font-size: 17px;
    }

    .address-form-inline {
        grid-template-columns: 1fr;
    }

    .address-form-actions {
        flex-direction: column;
    }

    .checkout-address-form-actions {
        flex-direction: column;
    }
}

/* ---------- PAGE CONTENT ---------- */
/* flex:1 is REQUIRED for sticky footer */
.page-content {
    flex: 1;
    padding: 20px;
}

/* ================= HERO 1400px CENTERED — FINAL PRO ================= */

/* ================= HERO BANNER ================= */

.hero-banner {
    max-width: 1400px;
    width: 100%;
    height: 350px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    
}
/* Swiper full height */
.hero-swiper,
.hero-slide {
    width: 100%;
    height: 100%;
}

/* Center image perfectly */
.hero-media {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ⭐ FULL IMAGE VISIBLE — NO CROP */
/* ✅ Correct version */
.hero-image {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;

    object-fit: cover;
   

    display: block;
}

/* ================= MOBILE ================= */

@media (max-width: 1400px) {
    .hero-banner {
        height: 220px;
        border-radius: 14px;
    }
}

/* ================= CONTROLS ================= */

.hero-controls {
    padding: 12px 16px 18px;
}

.hero-arrow {
    background: rgba(253, 252, 252, 0.95);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: 0.2s ease;
}

.hero-arrow:hover {
    transform: scale(1.08);
}

.hero-arrow.swiper-button-prev::after,
.hero-arrow.swiper-button-next::after {
    color: #F7941D !important;
    font-size: 20px;
    font-weight: bold;
}

.hero-swiper .swiper-pagination-bullet {
    background: #9ca3af;
    opacity: 0.6;
    width: 8px;
    height: 8px;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #F7941D;
    opacity: 1;
    transform: scale(1.2);
}

/* ---------- CATEGORY BAR ---------- */
.category-bar-shell {
    --category-shell-pad: clamp(10px, 1vw, 16px);
    --category-side-slot: 25px;
    --category-bar-gap: clamp(12px, 1.4vw, 20px);
    max-width: 1400px;
    width: min(1400px, calc(100% - 32px));
    box-sizing: border-box;
    margin: 0 auto 1px auto;
    padding: clamp(10px, 1vw, 16px) 0;
    position: relative;
    z-index: 100;
    background: #ffffff;
    border: 1px solid #f0e6ff;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(90, 61, 153, 0.12);
    overflow: hidden;
}

.category-bar-shell::before,
.category-bar-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 76px;
    pointer-events: none;
    z-index: 12;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.category-bar-shell::before {
    left: var(--category-side-slot);
    background: linear-gradient(90deg, #ffffff 68%, rgba(255, 255, 255, 0));
}

.category-bar-shell::after {
    right: var(--category-side-slot);
    background: linear-gradient(270deg, #ffffff 68%, rgba(255, 255, 255, 0));
}

.category-bar-shell.is-static::before,
.category-bar-shell.is-static::after {
    opacity: 0;
}

.category-bar-shell.category-carousel-animating {
    overflow: hidden !important;
}

.category-bar {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: min(1300px, calc(100% - (var(--category-side-slot) * 2)));
    min-width: 0;
    margin: 0 auto;
    padding: 10px 6px 12px;
    gap: var(--category-bar-gap);
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-padding-inline: 6px;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-bar-shell.is-static .category-bar {
    padding-inline: clamp(12px, 2vw, 24px);
    overflow-x: hidden;
}

.category-bar--few {
    justify-content: center;
}

.category-bar--few .category-item {
    flex: 0 1 min(
        260px,
        calc((100% - ((var(--visible-category-count) - 1) * var(--category-bar-gap))) / var(--visible-category-count))
    );
}

.category-bar--many .category-item {
    flex: 0 0 clamp(112px, 9vw, 132px);
}

/* ================= CATEGORY SCROLL BUTTONS ================= */

.category-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--brand-purple);
    background: #ffffff;
    color: var(--brand-purple);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(90, 61, 153, 0.18);
    z-index: 20;
    opacity: 1;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.category-scroll-btn:hover {
    background: var(--brand-purple);
    color: #ffffff;
}

.category-bar-shell.is-static .category-scroll-btn {
    opacity: 0.45;
    pointer-events: none;
}

.category-scroll-btn.left {
    left: 2px;
}

.category-scroll-btn.right {
    right: 2px;
}

/* ================= CATEGORY ITEM ================= */

.category-item {
    width: auto;
    min-width: 0;
    height: auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.category-item:hover,
.category-item:focus-within {
    z-index: 99999;
}

.category-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    position: relative;
    text-decoration: none;
}

.category-item img {
    width: clamp(64px, 5.6vw, 78px) !important;
    height: clamp(64px, 5.6vw, 78px) !important;
    min-width: clamp(64px, 5.6vw, 78px);
    min-height: clamp(64px, 5.6vw, 78px);
    border-radius: 50%;
    border: 2px solid var(--brand-orange);
    background: #ffffff;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
    transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-bar--few .category-item img {
    width: clamp(70px, 6vw, 84px) !important;
    height: clamp(70px, 6vw, 84px) !important;
    min-width: clamp(70px, 6vw, 84px);
    min-height: clamp(70px, 6vw, 84px);
}

.category-item:hover img,
.category-item:focus-within img {
    border-color: #f6a53a;
    box-shadow:
        0 0 0 4px rgba(247, 148, 29, 0.25),
        0 6px 16px rgba(247, 148, 29, 0.35);
    transform: translateY(-2px);
}

.category-name {
    display: -webkit-box;
    width: 100%;
    max-width: 100%;
    min-height: calc(1.25em * 2);
    font-size: clamp(12px, 0.95vw, 14px);
    font-weight: 500;
    color: var(--brand-purple);
    cursor: pointer;
    text-align: center;
    line-height: 1.25;
    margin: 0;
    padding: 0 4px;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ================= SUB CATEGORY DROPDOWN ================= */

.sub-category-box {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    margin-top:-18px;
    width: min(280px, calc(100vw - 32px));
    max-height: min(340px, calc(100vh - 40px));
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    border: 1px solid #e5e7eb;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 9999999;
}

.sub-category-box::-webkit-scrollbar {
    width: 6px;
}

.sub-category-box::-webkit-scrollbar-thumb {
    background: rgba(90, 61, 153, 0.24);
    border-radius: 999px;
}

.sub-category-box.active {
    display: block;
}

.sub-category-box a {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    color: #1f2937;
    text-decoration: none;
    white-space: normal;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.sub-category-box a:hover {
    background: var(--brand-orange);
    color: #ffffff;
    padding-left: 22px;
}

/* ================= SECTION TITLE ================= */

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-purple);

    max-width: var(--container-max);
    margin: 9px auto 16px;
    padding: 0 var(--spacing-md);
}

/* ================= SUBCATEGORY FRAMES ================= */

.subcategory-section {
    max-width: var(--container-max);
    margin: 26px auto 10px;
    padding: 0 var(--spacing-md);
}

.subcategory-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;

    scroll-behavior: smooth;
    scrollbar-width: none;
}

.subcategory-grid::-webkit-scrollbar {
    display: none;
}

.subcategory-card {
    min-width: 180px;
    min-height: 180px;

    background: #ffffff;
    border: 1px solid #efe3ff;
    border-radius: 14px;
    padding: 12px;

    box-shadow: 0 8px 18px rgba(90, 61, 153, 0.12);
}

.subcategory-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-purple);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.subcategory-list {
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 13px;
}

.subcategory-list li {
    padding: 4px 6px;
    border-radius: 8px;
    background: #faf6ff;
}

/* ================= FEATURED / PRODUCTS ================= */

.featured-wrap {
    max-width: var(--container-max);
    margin: 0 auto 60px;
    padding: 0 var(--spacing-md);
}

.product-grid::-webkit-scrollbar {
    display: none;
}

.product-image-box {
    border-radius: 10px;
    padding-top: 35px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;

    background: #ef4444;
    color: #ffffff;

    padding: 5px 12px;
    border-radius: 8px;

    font-size: 12px;
    font-weight: 700;

    z-index: 20;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}
.product-card:hover img {
    transform: scale(1.08);
}

.product-name {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    min-height: 38px;
    margin: 10px 0 6px;
    color: var(--text-dark);
}

.product-tamil-name {
    font-size: 16px;
    font-weight: 700;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
}

.pv-tamil-name {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin-top: 6px;
}
/* ================= PRICE ================= */

.price {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #4d004d;
    margin: 4px 0 0px;
}

.price-row {
    text-align: center;
}

/* MRP / DISCOUNT */
.mrp {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    color: #1f2937;
    font-size: 19px;
}

.discount {
    color: #16a34a;
    font-size: 20px;
    font-weight: 600;
}

/* ================= ADD TO CART BUTTON ================= */

.add-to-cart-btn {
    width: 100%;
    margin-top: auto;
    padding: 10px 0;

    background: var(--brand-purple);
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    border: none;
    border-radius: 6px;
    cursor: pointer;

    transition: background 0.2s ease, transform 0.12s ease;
}

.add-to-cart-btn:hover {
    background: #4a3285;
}

.add-to-cart-btn:active {
    transform: scale(0.96);
}

/* ================= VIEW SHOPS BUTTON (Search Results) ================= */

.view-shops-btn {
    width: 100%;
    margin-top: auto;
    padding: 10px 0;

    background: #670a6e;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    text-align: center;

    border: none;
    border-radius: 6px;
    cursor: pointer;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.view-shops-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 10, 110, 0.3);
}

/* ================= WISHLIST HEART ICON ================= */

.wishlist-heart {
    position: absolute;
    top: 10px;
    left: 10px;

    width: 36px;
    height: 36px;

    border-radius: 50%;
    border: none;

    background: #ffffff;
    color: #9ca3af;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 20;

    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    transition: all 0.2s ease;
}

.wishlist-heart:hover {
    transform: scale(1.1);
    color: #ef4444;
}

.wishlist-heart:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.wishlist-heart i {
    font-size: 18px;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.wishlist-heart.is-wishlisted i {
    color: #ef4444;
    font-weight: 900;
}

.wishlist-heart:hover i {
    color: #ef4444;
}

/* ================= WISHLIST SIDEBAR ================= */

.page-with-sidebar {
    display: flex;
    gap: 24px;
    width: 90%;
    max-width: 1400px;
    margin: 24px auto;
    align-items: flex-start;
}

.page-main {
    flex: 1;
    min-width: 0;
}

.page-main .product-view-container {
    width: 100%;
    max-width: none;
    margin: 0 0 24px 0;
}

.page-main .pv-description {
    width: 100%;
    max-width: none;
    margin: 0 0 24px 0;
}

.page-main .featured-wrap {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.wishlist-sidebar {
    width: 260px;
    background: #ffffff;
    border: 1px solid rgba(247,148,29,0.3);
    border-radius: 10px;
    padding: 16px;
    position: sticky;
    top: 20px;
}

.wishlist-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.wishlist-empty {
    color: #666666;
    font-size: 14px;
}

.wishlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wishlist-item-link {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.wishlist-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eeeeee;
    background: #f7f7f7;
}

.wishlist-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.wishlist-tamil {
    display: block;
    font-size: 12px;
    color: #777777;
}

.wishlist-view-all {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--brand-purple);
    text-decoration: none;
}

@media (max-width: 980px) {
    .page-with-sidebar {
        flex-direction: column;
    }

    .wishlist-sidebar {
        width: 100%;
        position: static;
    }
}

/* ================= WISHLIST PAGE ================= */

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto 40px;
}

.wishlist-card {
    background: #ffffff;
    border: 1px solid rgba(247,148,29,0.3);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
}

.wishlist-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    background: #f7f7f7;
}

.wishlist-card-name {
    margin-top: 8px;
    font-weight: 600;
}

.wishlist-card-tamil {
    margin-top: 2px;
    font-size: 12px;
    color: #777777;
}

/* ================= PRODUCT VIEW — PRO LAYOUT ================= */

.product-view-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Image | Details */
    gap: 40px;

    width: 90%;
    max-width: 1400px;
    margin: 30px auto;

    align-items: stretch; /* 🔥 Equal height columns */
}

/* ===== IMAGE CARD ===== */

.product-view-container .product-image-box {
    position: relative;

    background: #ffffff;
    padding: 24px;

    border-radius: 14px;
    border: 1px solid rgba(247,148,29,0.35);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    height: 100%;        /* 🔥 Fill full column height */
    min-height: 460px;   /* 🔥 Ensures good size */
    
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

/* PRODUCT IMAGE */

.product-view-container .product-image-box img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
    display: block;

    transition: transform 0.3s ease;
}

.product-view-container .product-image-box:hover img {
    transform: scale(1.05);
}

/* DISCOUNT BADGE */

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;

    background: #ef4444;
    color: #ffffff;

    padding: 5px 12px;
    border-radius: 8px;

    font-size: 12px;
    font-weight: 700;

    z-index: 20;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}
/* WISHLIST BUTTON */

.wishlist-heart {
    position: absolute;
    top: 10px;
    left: 10px;

    width: 36px;
    height: 36px;

    border-radius: 50%;
    border: none;

    background: #ffffff;
    color: #9ca3af;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 20;

    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    transition: all 0.2s ease;
}

.wishlist-heart:hover {
    transform: scale(1.1);
    color: #ef4444;
}

.wishlist-heart:hover {
    transform: scale(1.1);
    color: #ef4444;
}
.wishlist-heart:hover {
    color: #e53935;
    transform: scale(1.1);
}

/* ===== DETAILS CARD ===== */

.product-details-box {
    background: #ffffff;
    padding: 30px;

    border-radius: 14px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

/* TITLE */

.pv-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
}

.pv-tamil-name {
    display: block;
    font-size: 18px;
    color: #777;
    margin-top: 4px;
    font-weight: 500;
}

/* PRICE */

.pv-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--brand-purple);
    margin: 18px 0 6px;
}

.pv-mrp .mrp {
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
}

/* SECTIONS */

.pv-section {
    margin-top: 22px;
}

.pv-label {
    font-weight: 700;
    margin-bottom: 10px;
}

/* VARIANTS */

.pv-variants {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pv-variant {
    border: 2px solid #e5e5e5;
    padding: 12px 20px;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pv-variant:hover {
    border-color: var(--brand-purple);
    background: #f7f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 10, 110, 0.15);
}

.pv-variant input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d1d1;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pv-variant input[type="radio"]:checked {
    border-color: var(--brand-purple);
    background: var(--brand-purple);
}

.pv-variant input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.pv-variant input[type="radio"]:checked + span {
    color: var(--brand-purple);
    font-weight: 700;
}

/* QUANTITY CONTROL */

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
    background: white;
}

.cart-qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: white;
    color: #16a34a;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-qty-btn:hover {
    background: #16a34a;
    color: white;
}

.cart-qty-btn:active {
    transform: scale(0.95);
}

.cart-qty-display {
    font-size: 18px;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    padding: 0 10px;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
}

/* ADD TO CART BUTTON */

.pv-add-cart {
    margin-top: 28px;
    width: 100%;
    max-width: 420px;
    padding: 16px 24px;
    background: var(--brand-purple);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(103, 10, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pv-add-cart:hover {
    background: #4a3285;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(103, 10, 110, 0.4);
}

.pv-add-cart:active {
    transform: translateY(-1px);
}

/* ===== DESCRIPTION ===== */

.pv-description {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;

    width: 90%;
    max-width: 1400px;
    margin: 30px auto;

    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}
/* ================= RELATED PRODUCTS ================= */

.related-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.related-row::-webkit-scrollbar {
    display: none;
}

.related-card {
    min-width: 240px;
    background: #ffffff;
    border: 1px solid rgba(247,148,29,0.4);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    color: var(--text-dark);
}

.related-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
    transition: transform 0.35s ease;
}

.related-card:hover img {
    transform: scale(1.08);
}

.related-name {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
}

.related-price {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-purple);
}

/* ================= SCROLL ARROWS ================= */

.scroll-wrap {
    position: relative;
    padding: 0 40px;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 36px;
    height: 36px;
    border-radius: 50%;

    border: none;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);

    font-size: 20px;
    cursor: pointer;
    z-index: 10;

    transition: background 0.2s ease, color 0.2s ease;
}

.scroll-arrow.left { left: 0; }
.scroll-arrow.right { right: 0; }

.scroll-arrow:hover {
    background: var(--brand-orange);
    color: #ffffff;
}

/* ================= CART TOAST ================= */

.cart-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;

    background: #1f2937;
    color: #ffffff;

    padding: 14px 16px;
    border-radius: 10px;

    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    font-size: 14px;

    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;

    transition: all 0.3s ease;
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cart-toast.success {
    background: #059669;
}

.cart-toast.error {
    background: #b91c1c;
}

.cart-toast-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-toast-btn {
    background: var(--brand-orange);
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;

    transition: background 0.2s ease;
}

.cart-toast-btn:hover {
    background: #e67e00;
}

/* ================= CART PAGE ================= */

.cart-item-card {
    background: #ffffff;
    border: 1px solid rgba(247,148,29,0.35);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    cursor:pointer;

    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-item-image {
    width: 110px;
    height: 110px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(247,148,29,0.35);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 2;
}

.cart-item-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cart-item-variant {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-purple);
}
.cart-item-shop{
font-size:17px;
color:#181a1c;
margin-top:3px;
display:flex;
align-items:center;
gap:4px;
}
.cart-item-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 2px 6px;
    gap: 6px;
}

.cart-qty-btn {
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cart-qty-btn:hover {
    background: #15803d;
}

.cart-qty-btn:active {
    transform: scale(0.95);
}

.cart-qty-display {
    min-width: 30px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.cart-item-total {
    font-size: 16px;
    font-weight: 700;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}


/* ================= CART SUMMARY ================= */

.cart-summary {
    flex: 1;
    background: #ffffff;
    border: 1px solid rgba(247,148,29,0.35);
    border-radius: 12px;
    padding: 18px;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 14px;
    font-size: 18px;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.summary-total {
    font-size: 18px;
    font-weight: 700;
}

.checkout-btn {
    display: block;
    margin-top: 20px;
    text-align: center;
}

.btn-primary {
    background: var(--brand-purple);
    color: #ffffff;
    padding: 12px 24px;

    border: none;
    border-radius: 6px;

    font-size: 16px;
    font-weight: 600;
    cursor: pointer;

    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #4a3285;
}

/* =========================================================
   FOOTER
========================================================= */

.mahinzo-footer {
    background: #f2e9ff;
    margin-top: 40px;
    color: #3d1d6a;
}

.footer-top {
    padding: 40px 0;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;          /* 🔥 key */
    flex-wrap: nowrap;      /* 🔥 single line only */
    gap: 20px;
    align-items: flex-start;
}
.footer-col {
    flex: 1;
    min-width: 0;
}

.footer-brand .logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(61, 29, 106, 0.15);
}

.logo-circle img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #3d1d6a;
}

.footer-brand-tagline {
    font-size: 13px;
    font-weight: 600;
    color: #6a4c8c;
}

.footer-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #5a3b86;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #3d1d6a;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    font-size: 14px;
    line-height: 1.6;
    color: #5a3b86;
    margin: 4px 0;
}

.footer-list a {
    color: #3d1d6a;
    text-decoration: none;
}

.footer-list a:hover {
    text-decoration: underline;
}

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(61, 29, 106, 0.2);
    color: #3d1d6a;
    font-weight: 700;
    text-decoration: none;
}

.footer-help {
    margin-top: 14px;
}
.footer-help a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 18px;
    background: #5a2f8f;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.footer-bottom {
    background: #4a2a7a;
    color: #ffffff;
}

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-payments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-payments span {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 700;
}

.footer-copy {
    font-size: 13px;
    font-weight: 600;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #4a2a7a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */

/* ================= LAPTOP (≤1439px) ================= */
@media (max-width: 1439px) {

    .footer-inner {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 24px;
    }
}

/* ================= TABLET (≤1023px) ================= */
@media (max-width: 1023px) {

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-top {
        padding: 30px 0;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ================= MOBILE (≤767px) ================= */
@media (max-width: 810px) {

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 16px;
    }

   /* FOOTER LOGO */

.logo-circle{
width:92px;
height:75px;

border-radius:50%;
overflow:hidden;

display:flex;
align-items:center;
justify-content:center;

background:#ffffff;
border:2px solid #eee;
}

/* IMAGE */

.logo-circle img{
width:90%;
height:90%;
object-fit:cover;   /* prevents oval stretch */

}


    .footer-col h3 {
        font-size: 16px;
    }

    .footer-desc,
    .footer-list li {
        font-size: 13px;
    }
}

/* ================= SMALL MOBILE (≤479px) ================= */
@media (max-width: 479px) {

    .logo-circle {
        width: 54px;
        height: 54px;
    }
}
/* =========================================================
   CATEGORY DROPDOWN — OUTSIDE FLOATING (FINAL FIX)
========================================================= */

.category-item.has-dropdown {
    position: relative;
    z-index: 1;
}

.category-item.has-dropdown:hover,
.category-item.has-dropdown:focus-within {
    z-index: 999999;
}
/* ================= TOP CATEGORY SECTION (7 CATEGORIES) ================= */

.top-category-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.top-category-block {
    margin-bottom: 36px;
}

/* Header row */
.top-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.top-category-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.top-category-header .see-all {
    font-size: 15px;
    font-weight: 600;
    color:#1f2937;
}

/* Subcategory horizontal row */
.top-subcategory-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.top-subcategory-row::-webkit-scrollbar {
    display: none;
}

/* ================= PRODUCTS SUBCATEGORY FILTER ================= */
.products-subcategory-bar {
    max-width: 1400px;
    margin: 10px auto 0;
    padding: 0 20px;

    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.products-subcategory-bar::-webkit-scrollbar {
    display: none;
}

.products-subcategory-link {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(90, 61, 153, 0.25);
    background: #ffffff;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.products-subcategory-link:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
}

.products-subcategory-link.is-active {
    background: #ede9fe;
    border-color: rgba(90, 61, 153, 0.5);
    color: #3b0764;
}

/* ================= CATEGORY FRAME — ALIGN WITH BANNER ================= */

.home-category-section {
    max-width: 1400px;
    width: 100%;

    margin: 10px auto;

    padding: 0 20px;   /* 🔥 SAME AS HERO BANNER */

    box-sizing: border-box;
}

/* Header */
.home-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.home-category-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.home-category-header .see-all {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

/* ⭐ Wrapper — CLIPS SCROLL INSIDE FRAME */
.subcategory-scroll-wrap {
    position: relative;
    overflow: hidden;   /* 🔥 prevents outside overlap */
}

/* ⭐ Scrollable Row */
.subcategory-row {
    display: flex;
    gap: 15px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    padding: 10px 0;

    scrollbar-width: none;
}

.subcategory-row::-webkit-scrollbar {
    display: none;
}

/* ⭐ EXACT 7 CARDS VISIBLE */
.subcategory-card {
    flex: 0 0 calc((100% - 90px) / 7);
    max-width: calc((100% - 90px) / 7);

    background: #ffffff;
    border-radius: 12px;
    border: 2px solid rgba(90, 61, 153, 0.35);

    padding: 15px 12px;
    text-align: center;

    box-shadow: 0 8px 22px rgba(90, 61, 153, 0.14);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.subcategory-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-purple);
    background: #faf7ff;

    box-shadow:
        0 0 0 3px rgba(90, 61, 153, 0.20),
        0 12px 28px rgba(90, 61, 153, 0.25);
}

/* Image */
.subcategory-img {
    width: 100%;
    height: 150px;

    background: #f9fafb;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;
    overflow: hidden;
}

.subcategory-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Name */
.subcategory-name {
    font-size: 14px;
    font-weight: 600;
    color: #4d004d;
    margin-top: 4px;
}

/* ⭐ Scroll arrows */
.sub-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;

    border-radius: 50%;
    border: 2px solid var(--brand-purple);
    background: #ffffff;
    color: var(--brand-purple);

    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

.sub-scroll-btn.left {
   left: 0px;   
    /* 🔥 inside frame */
}

.sub-scroll-btn.right {
    right: 0px;    /* 🔥 inside frame */
}

.sub-scroll-btn:hover {
    background: var(--brand-purple);
    color: #ffffff;
}

/* ================= RESPONSIVE STYLES ================= */

@media (max-width: 1200px) {
    .category-bar-shell {
        --category-side-slot: 46px;
    }

    .category-bar {
        padding-block: 10px;
    }

    .category-bar--many .category-item {
        flex-basis: clamp(108px, 11vw, 124px);
    }

    .sub-category-box {
        width: min(250px, calc(100vw - 32px));
    }
}

@media (max-width: 768px) {
    .category-bar-shell {
        width: calc(100% - 20px);
        margin: 0 auto 30px auto;
        padding: 8px 0;
        --category-side-slot: 40px;
        --category-bar-gap: 10px;
    }

    .category-bar {
        padding: 10px 4px 12px;
    }

    .category-bar-shell.is-static .category-bar {
        padding-inline: 8px;
    }

    .category-bar--many .category-item {
        flex-basis: 102px;
    }

    .category-name {
        font-size: 12px;
    }

    .category-scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .sub-category-box {
        width: min(220px, calc(100vw - 24px));
        font-size: 13px;
    }

    .sub-category-box a {
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .category-bar-shell {
        --category-side-slot: 36px;
        --category-bar-gap: 8px;
    }

    .category-bar {
        padding: 10px 2px 10px;
    }

    .category-bar-shell.is-static .category-bar {
        padding-inline: 6px;
    }

    .category-bar--many .category-item {
        flex-basis: 90px;
    }

    .category-name {
        font-size: 11px;
    }

    .sub-category-box {
        width: min(200px, calc(100vw - 20px));
    }
}
/* ================= PRODUCT FRAME SECTION (LIKE VEGETABLE) ================= *//* ================= PRODUCT FRAME SECTION (1400px SAFE SCROLL) ================= */

.product-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ⭐ IMPORTANT — CLIPS EVERYTHING INSIDE FRAME */
.product-scroll-wrap {
    position: relative;
    overflow: hidden;
}

/* ⭐ SCROLL HAPPENS HERE */
.product-row {
    display: flex;
    gap: 20px;

    overflow-x: auto;      /* ✅ enable horizontal scroll */
    overflow-y: hidden;

    scroll-behavior: smooth;
    padding: 20px 0;

    scrollbar-width: none;
}

.product-row::-webkit-scrollbar {
    display: none;
}

/* Scroll Arrows */
.product-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;

    border-radius: 50%;
    border: 2px solid var(--brand-purple);
    background: #ffffff;
    color: var(--brand-purple);

    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 5;

    box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

/* ⭐ KEEP ARROWS INSIDE FRAME */
.product-scroll-btn.left {
    left: 5px;
}

.product-scroll-btn.right {
    right: 5px;
}

.product-scroll-btn:hover {
    background: var(--brand-purple);
    color: #ffffff;
}

/* ⭐ EXACT 5 CARDS VISIBLE */
.product-row .product-card {
    flex: 0 0 calc((100% - 80px) / 5);
    max-width: calc((100% - 80px) / 5);
}
/* ================= CATEGORY FRAME — MATCH HERO EXACTLY ================= */

.home-category-section {
    max-width: 1400px;   /* 🔥 MATCH HERO VISIBLE WIDTH */
    width: 100%;

    margin: 10px auto;

    padding: 16px 20px;
    border-radius: 12px;
    

    box-sizing: border-box;
}

/* Vegetable */
.vegetable-section {
    background: linear-gradient(135deg, #f0faf4, #e2f5e9);
}

/* Fruits */
.fruits-section {
    background: linear-gradient(135deg, #fff6ed, #ffe8d6);
}

/* Meats */
.meats-section {
    background: linear-gradient(135deg, #fff1f1, #ffe4e6);
}

/* Bakery */
.bakery-section {
    background: linear-gradient(135deg, #fffaf3, #fef3e7);
}

/* Grocery */
.grocery-section {
    background: linear-gradient(135deg, #f7f5ff, #ede9fe);
}

/* Snacks */
.snacks-section {
    background: linear-gradient(135deg, #fffdf3, #fef9c3);
}

/* Hotel */
.hotel-section {
    background: linear-gradient(135deg, #f0f7ff, #e0f2fe);
}
/* ================= SUBCATEGORY PRODUCTS SECTION ================= */


/* Responsive Grid */
@media (max-width: 1400px) {
    .subcategory-products-section .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .subcategory-products-section .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .subcategory-products-section .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .subcategory-products-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ================= LOCATION SELECTION MODAL ================= */
.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.location-modal-overlay.hidden {
    display: none;
}

.location-modal {
    background: white;
    border-radius: 18px;

    max-width: 420px;   /* 🔥 smaller width */
    width: 95%;

    max-height: 80vh;   /* 🔥 smaller height */

    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(40px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}
/* Collapsible Locations Header */
.location-list-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 13px;
    font-weight: 700;
    color: #6B7280;

    padding: 10px 12px;
    margin-bottom: 8px;

    border: 1px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    background: #F9FAFB;
    width: 88%;
margin: 0 auto;
}

/* Arrow animation */
.location-list-toggle i {
    transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.location-list-toggle.active i {
    transform: rotate(180deg);
}

/* Collapsed state */
.location-list.collapsed {
    display: none;
}

.location-modal-header {
    background:var(--brand-purple);
    color: white;

    padding: 16px 18px;   /* 🔥 Reduced height */

    text-align: center;
}
.location-modal-header .location-icon {
    font-size: 30px;   /* 🔥 smaller icon */
    margin-bottom: 8px;
    display: block;
}
.location-modal-header h2 {
    font-size: 20px;   /* 🔥 smaller title */
    font-weight: 700;
    margin-bottom: 4px;
}

.location-modal-header p {
    font-size: 12px;   /* 🔥 smaller subtitle */
    opacity: 0.9;
}

.location-modal-body {
    padding: 20px;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.location-search-box {
    position: relative;
    margin-bottom: 25px;
}

.location-search-box input {
    width: 100%;
    margin: 0 auto;
    display: block;
    padding: 14px 45px 14px 45px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
}

.location-search-box input:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(90, 61, 153, 0.1);
}

.location-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 18px;
}

.location-clear-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    cursor: pointer;
    font-size: 18px;
    display: none;
}

.location-clear-icon.active {
    display: block;
}

.location-list-label {
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
}

.location-item {
    width: 88%;            /* 🔥 reduce width */
    margin: 0 auto;        /* 🔥 center */

    padding: 14px 18px;

    border: 2px solid #E5E7EB;
    border-radius: 12px;

    cursor: pointer;
    transition: all 0.3s;

    display: flex;
    align-items: center;
    justify-content: space-between;
}
.location-item:hover {
    border-color: var(--brand-purple);
    background: rgba(90, 61, 153, 0.05);
    transform: translateX(5px);
}

.location-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.location-item-icon {
    color: var(--brand-purple);
    font-size: 18px;
}

.location-not-found {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
}

.location-not-found i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #D1D5DB;
}

.location-not-found h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.location-not-found p {
    font-size: 14px;
    line-height: 1.6;
}

/* Use My Location Button */
.use-my-location {
    width: 70%;
    margin: 0 auto 13px auto;
    padding: 16px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.use-my-location:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.use-my-location:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.use-my-location i {
    font-size: 18px;
}

/* Location Divider */
.location-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #9CA3AF;
}

.location-divider::before,
.location-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.location-divider span {
    padding: 0 15px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.location-detect-btn {
    width: 100%;
    padding: 14px;
    background: var(--brand-purple);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.location-detect-btn:hover {
    background: #4A2F7F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 61, 153, 0.3);
}

.location-detect-btn:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    transform: none;
}

/* Custom Scrollbar */
.location-list::-webkit-scrollbar,
.location-modal-body::-webkit-scrollbar {
    width: 6px;
}

.location-list::-webkit-scrollbar-track,
.location-modal-body::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 10px;
}

.location-list::-webkit-scrollbar-thumb,
.location-modal-body::-webkit-scrollbar-thumb {
    background: var(--brand-purple);
    border-radius: 10px;
}

.location-list::-webkit-scrollbar-thumb:hover,
.location-modal-body::-webkit-scrollbar-thumb:hover {
    background: #4A2F7F;
}

/* Success Message */
.location-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10B981;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.location-success-message i {
    font-size: 20px;
}

/* Current Location Badge in Header */
.current-location-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: #4a0e5e;
    border-radius: 20px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s;
}

.current-location-badge:hover {
    background: rgba(74, 14, 94, 0.15);
    color: #2d1b4e;
}

.current-location-badge i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .location-modal {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }
    
    .location-modal-header h2 {
        font-size: 22px;
    }
    
    .location-modal-body {
        padding: 20px;
    }
    
    .location-success-message {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 14px;
    }
}
/* ================= PRODUCTS PAGE LAYOUT ================= */

.products-page-layout {
    display: flex;
    gap: 24px;
    padding: 20px 0;
}

.products-sidebar {
    width: 260px;
    min-width: 260px;

    background: #ffffff;
    border-radius: 16px;

    padding: 18px;

    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;

    position: sticky;
    top: 120px;

    /* 🔥 FIXED HEIGHT */
   height: calc(100vh - 140px); /* adjust header */
overflow-y: auto;
    /* 🔥 NO SCROLL */
   
    display: flex;
flex-direction: column;
}
/* Sidebar items */
/* ================= PURPLE THEMED SIDEBAR ================= */

.sidebar-item {
    display: block;

    padding: 12px 14px;
    margin-bottom: 6px;

    border-radius: 10px;

    text-decoration: none;

    /* 🔥 BRAND PURPLE TEXT */
    color: var(--brand-purple);
    font-weight: 500;

    transition: all 0.18s ease;
}

/* Hover state */
.sidebar-item:hover {
    background: rgba(90, 61, 153, 0.08);
    color: var(--brand-purple);
}

/* Active selected category */
.sidebar-item.active {
    background: rgba(90, 61, 153, 0.16);
    color: var(--brand-purple);
    font-weight: 700;
}
/* RIGHT CONTENT */
.products-main {
    flex: 1;
    height: 100%;

    /* Scroll enabled */
    overflow-y: auto;

    /* 🔥 HIDE SCROLLBAR — ALL BROWSERS */
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE / old Edge */
}
.products-sidebar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-sidebar::-webkit-scrollbar {
    display: none;
}
/* Chrome / Safari */

/* ================= PAGE MAX WIDTH CONTAINER ================= */

.page-container {
    max-width: 1400px;
    margin: 0 auto;        /* center */
    padding: 0 16px;       /* small side spacing */
}
/* ================= PREMIUM PRODUCTS PAGE ================= */

.products-page-layout {
    display: flex;
    gap: 28px;
    padding: 24px 0;
}

/* Light app background */
body {
    background: #f7f8fa;
}

/* ================= PRODUCTION PRODUCT CARD ================= */
.product-card {
    background: #ffffff;

    border-radius: 16px;
    padding: 12px;

    text-align: center;
    text-decoration: none;

    border: 1px solid rgba(90, 61, 153, 0.22);

    box-shadow: 0 6px 20px rgba(0,0,0,0.05);

    transition: all 0.22s ease;

    /* 🔥 NEW — control height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    height: 346px;   /* ⭐ KEY FIX */
    position: relative !important;   /* 🔥 force parent */

}
.product-card:hover {
    transform: translateY(-6px);

    /* Stronger shadow on hover */
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);

    /* Slight border glow */
    border-color: rgba(90, 61, 153, 0.45);
}
.product-image-box {
    height: 150px;   /* 🔥 reduced */

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;
}

.product-image-box img {
    max-height: 150px;
    object-fit: contain;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 6px;
}

.product-tamil-name {
    font-size: 12px;
    color: #7a7a7a;
}
.price {
    font-size: 19px;
    font-weight: 700;
    color: #3a0d5c;
    margin-top:8px;
}

.mrp {
    font-size: 14px;
    color: #9a9a9a;
    text-decoration: line-through;
}
/* ================= PRODUCTS PAGE FIXED HEIGHT LAYOUT ================= */

.products-page-layout {
    display: flex;
    gap: 28px;

    /* 🔥 IMPORTANT */
    height: calc(100vh - 40px);
}
.products-main .subcategory-products-section {
    margin: 0;
    padding-right: 10px; /* space for scrollbar */
}
/* ================= PRODUCT SECTION HEADER (FIX SEE ALL ALIGNMENT) ================= */

.product-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-wrap: nowrap;      /* 🔥 keep single row */
    gap: 10px;

    margin-bottom: 14px;
}

/* Title */
.product-section-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

/* See All link */
.product-section-header .see-all {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-purple);

    white-space: nowrap;    /* 🔥 PREVENT LINE BREAK */
}
/* ===== FINAL BADGE FIX ===== */

.product-card .discount-badge {
    position: absolute !important;
    top: 12px;
    right: 12px;
    z-index: 50;
}

.product-card .wishlist-heart {
    position: absolute !important;
    top: 12px;
    left: 12px;
    z-index: 50;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ================= PREMIUM BENEFITS ================= */

.premium-benefits {
    max-width: 1400px;
    margin: 60px auto 20px;
    padding: 0 20px;
}

/* Header */
.premium-benefits-header {
    text-align: center;
    margin-bottom: 28px;
}

.premium-benefits-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-purple);
    margin-bottom: 6px;
}

.premium-benefits-header p {
    font-size: 16px;
    color: #6b7280;
}

/* Grid */
.premium-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Card */
.premium-card {
    position: relative;

    background: linear-gradient(135deg, #ffffff, #faf7ff);

    border-radius: 22px;
    padding: 30px 20px;

    text-align: center;

    border: 1px solid rgba(90, 61, 153, 0.22);

    box-shadow: 0 10px 30px rgba(90, 61, 153, 0.15);

    transition: all 0.35s ease;
    overflow: hidden;
    cursor:pointer;
}

/* Glow background effect */
.premium-card::before {
    content: "";
    position: absolute;
    inset: -40%;

    background: radial-gradient(
        circle at center,
        rgba(90, 61, 153, 0.25),
        transparent 60%
    );

    opacity: 0;
    transition: opacity 0.35s ease;
}

.premium-card:hover::before {
    opacity: 1;
}

/* Hover animation */
.premium-card:hover {
    transform: translateY(-10px) scale(1.02);

    border-color: var(--brand-purple);

    box-shadow:
        0 0 0 4px rgba(90, 61, 153, 0.18),
        0 18px 45px rgba(90, 61, 153, 0.35);
}

/* Icon */
.premium-icon {
    font-size: 44px;
    margin-bottom: 14px;

 background: linear-gradient(
    135deg,
    var(--brand-purple),
    var(--brand-orange)
);

/* Standard property */
background-clip: text;

/* WebKit support */
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

/* Fallback */
color: transparent;
}

/* Title */
.premium-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

/* Description */
.premium-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}







/* --------================= PREMIUM BENEFITS GRID RESPONSIVENESS ================= -----------*/
/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
    .premium-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .premium-benefits-grid {
        grid-template-columns: 1fr;
    }
}
.section-offer-badge {

    position: absolute;

    top: 8px;
    right: 20px;   /* ⭐ RIGHT SIDE */

    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;

    padding: 8px 16px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;

    box-shadow: 0 6px 18px rgba(0,0,0,0.25);

    z-index: 10;

}
/* ================= RESPONSIVE PRODUCT CARDS ================= */

@media (max-width: 1024px) {
    .product-row .product-card {
        flex: 0 0 calc((100% - 60px) / 3);
        max-width: calc((100% - 60px) / 3);
    }

    .subcategory-card {
        flex: 0 0 calc((100% - 60px) / 4);
        max-width: calc((100% - 60px) / 4);
    }
}

@media (max-width: 768px) {
    .product-row .product-card {
        flex: 0 0 calc((100% - 60px) / 3);
        max-width: calc((100% - 60px) / 3);
    }

    .subcategory-card {
        flex: 0 0 calc((100% - 60px) / 4);
        max-width: calc((100% - 60px) / 4);
    }
}
/* ================= PROFESSIONAL TABLET HEADER ================= */
/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
    .premium-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .premium-benefits-grid {
        grid-template-columns: 1fr;
    }
}
.section-offer-badge {

    position: absolute;

    top: 8px;
    right: 20px;   /* ⭐ RIGHT SIDE */

    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;

    padding: 8px 16px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;

    box-shadow: 0 6px 18px rgba(0,0,0,0.25);

    z-index: 10;

}
/* ================= RESPONSIVE PRODUCT CARDS ================= */

@media (max-width: 1024px) {
    .product-row .product-card {
        flex: 0 0 calc((100% - 60px) / 3);
        max-width: calc((100% - 60px) / 3);
    }

    .subcategory-card {
        flex: 0 0 calc((100% - 60px) / 4);
        max-width: calc((100% - 60px) / 4);
    }
}

@media (max-width: 768px) {
    .product-row .product-card {
        flex: 0 0 calc((100% - 60px) / 3);
        max-width: calc((100% - 60px) / 3);
    }

    .subcategory-card {
        flex: 0 0 calc((100% - 60px) / 4);
        max-width: calc((100% - 60px) / 4);
    }
}
/* ================= PROFESSIONAL TABLET HEADER ================= */
@media (max-width:1024px){

body{
padding-top:170px;
}

.header-inner{
display:grid;
grid-template-columns:auto auto 1fr auto;
grid-template-rows:auto auto;
align-items:center;
gap:10px;
}

/* LOGO */

.brand{
grid-column:1;
grid-row:1;
}

/* LOGIN */

.login-btn{
grid-column:2;
grid-row:1;

justify-self:start;

padding:4px 10px;

font-size:13px;
height:36px;
width:auto;

}

/* SEARCH BAR */

.header-search{
grid-column:3;
grid-row:1;

width:100%;
max-width:420px;
}

.dookan-search{
width:auto;
height:36px;
}

/* CART */

.cart-link{
grid-column:4;
grid-row:1;
justify-self:end;
}

/* NAVIGATION */

.header-nav{
grid-column:1 / 5;
grid-row:2;

display:flex;
justify-content:center;
gap:24px;

border-top:1px solid #eee;
padding-top:10px;
}

/* NAV BUTTON */

.nav-btn{
font-size:14px;
padding:6px 10px;
}

/* LOGO */

.brand-logo{
height:46px;
}

/* CART ICON */

.cart-link i{
font-size:24px;
}

}
/* ================= SMALL TABLET / LARGE MOBILE ================= */





/* ================= HERO BANNER PERFECT FIX ================= */

.hero-banner {
    max-width: 1400px;
    width: 100%;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;

    height: 350px;   /* keep your desktop height */
}

/* Swiper full size */
.hero-swiper,
.hero-slide {
    width: 100%;
    height: 100%;
}

/* Image wrapper */
.hero-media {
    width: 100%;
    height: 100%;
}

/* ⭐ IMAGE PERFECT FIT (NO HIDE) */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;              /* 🔥 fill more height */
    object-position: center center; /* crop balanced */
    display: block;
}

/* .hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
} */
/* ================= PERFECT CENTER ARROWS ================= */

.hero-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;  /* exact center */

    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);

    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
    z-index: 10;
}
/* REMOVE ROUND BACKGROUND FROM ARROWS */

.swiper-button-prev,
.swiper-button-next,
.sub-scroll-btn,
.product-scroll-btn{

background:none !important;
border:none !important;
box-shadow:none !important;
border-radius:0 !important;
width:auto !important;
height:auto !important;
}

/* optional — arrow size control */

.swiper-button-prev::after,
.swiper-button-next::after{
font-size:22px;
font-weight:bold;
color:#ff7a00;
}
/* Left & Right Proper Spacing */
.swiper-button-prev.hero-arrow {
    left: 25px;
}

.swiper-button-next.hero-arrow {
    right: 25px;
}

.hero-arrow:hover {
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow.swiper-button-prev::after,
.hero-arrow.swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
    color: #F7941D !important;
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {

    .hero-banner {
        height: 260px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .hero-banner {
        height: 200px;
    }

    .hero-arrow {
        width: 34px;
        height: 34px;
    }

}

/* =========================================================
   INDEX – HOME CATEGORY FULL TABLET RESPONSIVE
========================================================= */

/* ================= LARGE TABLET (1024px – 900px) ================= */
@media (max-width: 1024px) {

    .home-category-section {
        padding: 18px;
        margin: 18px auto;
        border-radius: 16px;
    }

    .home-category-header h2 {
        font-size: 18px;
    }

    .home-category-header .see-all {
        font-size: 14px;
    }

    .subcategory-scroll-wrap {
        padding: 0 40px;   /* arrow safe zone */
    }

    /* =========================================================
   SUBCATEGORY – CLEAN RESPONSIVE STRUCTURE
   (Based on your existing full CSS)
========================================================= */

/* ================= DESKTOP (DEFAULT) ================= */
/* 5 cards visible */
.subcategory-row {
    gap: 20px;
}

.subcategory-card {
    flex: 0 0 calc((100% - 80px) / 5);
    max-width: calc((100% - 80px) / 5);
}

/* ================= TABLET ================= */
@media (max-width: 1024px) {

    .subcategory-scroll-wrap {
        padding: 0 50px;   /* arrow safe space */
    }

    .subcategory-row {
        gap: 16px;
    }

    /* 4 cards visible */
    /* 3 gaps × 16px = 48px */
    .subcategory-card {
        flex: 0 0 calc((100% - 48px) / 4);
        max-width: calc((100% - 48px) / 4);
    }

    .subcategory-img {
        height: 110px;
    }

    .subcategory-name {
        font-size: 13px;
    }

    .sub-scroll-btn {
        width: 36px;
        height: 36px;
        top: 50%;
        transform: translateY(-50%);
    }

    .sub-scroll-btn.left { left: 10px; }
    .sub-scroll-btn.right { right: 10px; }
}

/* ================= MOBILE ================= */


}
/* =========================================================
   PRODUCT SECTION RESPONSIVE (TABLET + MOBILE)
========================================================= */

/* ===== TABLET (≤1024px) ===== */
@media (max-width: 1024px) {

    .product-scroll-wrap {
        padding: 0 50px;   /* arrow safe space */
    }

    .product-row {
        gap: 18px;
        max-height: fit-content;
    }
    .product-card{
display:flex;
flex-direction:column;
justify-content:flex-start;
height:auto;
}

    /* 4 cards visible */
    .product-row .product-card {
        flex: 0 0 calc((100% - 54px) / 4);
        max-width: calc((100% - 54px) / 4);
    }

    .product-image-box {
        height: 110px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-image-box img {
        max-height: 90px;
        object-fit: contain;
    }

    .product-name {
        font-size: 14px;
        text-align: center;
        margin-bottom:6px;
    }

    .price {
        font-size: 16px;
        text-align: center;
        margin-top:4px;
        margin-top:2px;
margin-bottom:6px;
    }
    

    .view-shops-btn {
        padding: 7px 0;
        font-size: 13px;
        width: 100%;
        margin: 0;
        
    }

    .product-scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

/* ===== SMALL TABLET (≤900px) ===== */
@media (max-width: 900px) {

    .product-scroll-wrap {
        padding: 0 45px;
    }

    .product-row {
        gap: 16px;
    }

    /* 3 cards visible */
    .product-row .product-card {
        flex: 0 0 calc((100% - 32px) / 3);
        max-width: calc((100% - 32px) / 3);
    }

    .product-image-box {
        height: 100px;
    }

    .product-image-box img {
        max-height: 80px;
    }

}
