/* The Booker - Main Stylesheet
 * Modern, premium design with full responsiveness
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #5f4b8b 0%, #7b61b3 100%);
    --secondary-gradient: linear-gradient(135deg, #f19a2a 0%, #f4c76b 100%);
    --accent-gradient: linear-gradient(135deg, #ffffff 0%, #f6f2ff 100%);
    --success-gradient: linear-gradient(135deg, #7b61b3 0%, #8f74c4 100%);
    --warning-gradient: linear-gradient(135deg, #f19a2a 0%, #f6c86f 100%);

    --primary-color: #5f4b8b;
    --secondary-color: #7b61b3;
    --accent-color: #f19a2a;
    --text-dark: #2e2641;
    --text-gray: #5f5871;
    --text-light: #857d96;
    --border-color: #e7e2f1;
    --bg-light: #f7f7fb;
    --bg-white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(57, 41, 86, 0.05);
    --shadow-md: 0 16px 34px rgba(57, 41, 86, 0.09);
    --shadow-lg: 0 24px 52px rgba(57, 41, 86, 0.12);
    --shadow-xl: 0 32px 72px rgba(57, 41, 86, 0.16);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 400ms ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background:
        radial-gradient(circle at top left, rgba(123, 97, 179, 0.08), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #fbfaff 58%, #ffffff 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

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

/* ===== Icon Utilities ===== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon svg {
    width: 1em;
    height: 1em;
    stroke-width: 2;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm svg {
    width: 1rem;
    height: 1rem;
}

.icon-md svg {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg svg {
    width: 1.75rem;
    height: 1.75rem;
}

.icon-xl svg {
    width: 2.5rem;
    height: 2.5rem;
}

.icon-2xl svg {
    width: 3.5rem;
    height: 3.5rem;
}

/* ===== Utilities ===== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 26px rgba(57, 41, 86, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(95, 75, 139, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem var(--spacing-lg);
    gap: var(--spacing-lg);
}


/* Logo */
.nav-logo a {
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.logo-img {
    height: 176px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition-base);
}

.nav-logo a:hover .logo-img {
    transform: scale(1.04);
    opacity: 0.9;
}

/* Footer logo */
.footer-logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
    opacity: 0.98;
}

.footer-logo-img:hover {
    opacity: 1;
}


/* Search */
.nav-search {
    flex: 1;
    max-width: 640px;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-full);
    border: 1px solid rgba(95, 75, 139, 0.12);
}

.search-input {
    flex: 1;
    padding: 0.72rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: var(--transition-base);
    background: transparent;
    color: var(--text-dark);
}

.search-input:focus {
    outline: none;
    border-color: rgba(13, 77, 59, 0.12);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(13, 77, 59, 0.08);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    flex-shrink: 0;
    border: 1px solid rgba(219, 231, 247, 0.9);
}

.search-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-btn:hover {
    transform: translateY(-1px);
    background: white;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.94rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    position: relative;
    color: var(--text-gray);
    transition: var(--transition-base);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.72);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Cart Link */
.cart-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark) !important;
    padding: 0.72rem 1rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600;
    border: 1px solid rgba(219, 231, 247, 0.95);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.cart-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07);
    background: white;
}

.cart-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    background: transparent;
    flex-shrink: 0;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.72);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-base);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-nav-overlay.active {
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(320px, 85vw);
    background: rgba(255, 255, 255, 0.98);
    z-index: 1001;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.mobile-nav-header .logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
}

.mobile-nav-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition-base);
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
}

.mobile-nav-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-nav-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mobile-nav-search .search-input {
    font-size: 0.88rem;
}

.mobile-nav-search .search-btn {
    width: 38px;
    height: 38px;
}

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

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-gray);
    transition: var(--transition-base);
}

.mobile-nav-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary-color);
}

.mobile-nav-link.active {
    background: rgba(13, 77, 59, 0.08);
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-cart-link {
    background: var(--primary-gradient) !important;
    color: white !important;
    margin-top: 1rem;
    border-radius: var(--radius-full) !important;
    justify-content: center;
}

/* ===== Marketplace Shell ===== */
.market-header {
    position: sticky;
    top: 0;
    z-index: 1100;
}

.market-utility {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(95, 75, 139, 0.08);
}

.market-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.market-utility-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #726986;
    font-size: 0.9rem;
    font-weight: 500;
}

.market-utility-email svg {
    width: 0.95rem;
    height: 0.95rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-utility-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    color: #6b637c;
    font-size: 0.92rem;
    font-weight: 500;
}

.market-utility-links a:hover {
    color: var(--primary-color);
}

.market-navbar {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    border-bottom: 1px solid rgba(95, 75, 139, 0.08);
}

.market-nav-container {
    gap: 1.2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.market-brand .logo-img {
    height: 88px;
}

.market-search {
    max-width: 760px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(95, 75, 139, 0.12);
    padding: 0.2rem 0.3rem 0.2rem 0.75rem;
    gap: 0.65rem;
    box-shadow: none;
}

.market-search-icon {
    display: inline-flex;
    color: #7c748c;
}

.market-search-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-search .search-input {
    padding: 0.78rem 0.2rem;
    font-size: 0.98rem;
    background: transparent;
    box-shadow: none;
}

.market-actions {
    gap: 0.5rem;
}

.market-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1rem;
    border-radius: 12px;
    color: #44395f;
    font-size: 0.98rem;
    font-weight: 500;
}

.market-action-link:hover,
.market-action-link.active {
    background: rgba(95, 75, 139, 0.08);
    color: var(--primary-color);
}

.market-cart-link {
    border: 1px solid rgba(95, 75, 139, 0.12);
    background: white;
}

.market-cart-link svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-footer {
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(95, 75, 139, 0.08);
    color: var(--text-gray);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: 1.2rem;
    box-shadow: none;
}

.market-footer-top {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(210, 191, 152, 0.18);
}

.market-footer-brand {
    max-width: 420px;
}

.market-footer-brand .footer-logo-img {
    filter: none;
    opacity: 1;
    height: 40px;
    margin-bottom: 0.35rem;
}

.market-footer-brand p {
    color: var(--text-light);
    margin-top: 0.15rem;
    line-height: 1.55;
    font-size: 0.92rem;
}

.market-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem 1rem;
    color: var(--text-gray);
    font-weight: 600;
}

.market-footer-links a:hover {
    color: var(--primary-color);
}

.market-footer-grid,
.footer-grid.market-footer-grid {
    display: none;
}

.market-footer .footer-bottom {
    border-top: none;
    color: var(--text-light);
    text-align: center;
    padding: 0.2rem 0 1rem;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f4ff 58%, #ffffff 100%);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 97, 179, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(95, 75, 139, 0.07) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

/* Keep "The Booker" on one line in the hero title */
.hero-title .gradient-text {
    white-space: nowrap;
    display: inline;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    line-height: 1.5;
    max-width: 44ch;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    max-width: 46ch;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Hero floating cards */
.hero-image {
    position: relative;
    height: 400px;
}

.hero-card {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition-slow);
    animation: float 3s ease-in-out infinite;
}

.floating-card:hover {
    transform: scale(1.1) translateY(-10px) !important;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.discount-badge {
    display: inline-block;
    background: var(--warning-gradient);
    color: white;
    font-weight: 800;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.floating-card p {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn,
.btn-checkout,
.btn-continue-shopping,
.btn-place-order,
.btn-add-cart,
.btn-view-details,
.vouchers-toolbar-cart,
.auth-primary-btn,
.auth-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.85rem 1.35rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn svg,
.btn-checkout svg,
.btn-continue-shopping svg,
.vouchers-toolbar-cart svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-primary,
.btn-checkout,
.btn-place-order,
.btn-add-cart,
.auth-primary-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 24px rgba(13, 77, 59, 0.18);
}

.btn-primary:hover,
.btn-checkout:hover,
.btn-place-order:hover,
.btn-add-cart:hover,
.auth-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(13, 77, 59, 0.22);
    color: white;
}

.btn-secondary,
.btn-outline,
.btn-continue-shopping,
.btn-view-details,
.vouchers-toolbar-cart,
.auth-secondary-btn {
    background: white;
    color: var(--primary-color);
    border: 1px solid rgba(205, 188, 150, 0.5);
    box-shadow: none;
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-continue-shopping:hover,
.btn-view-details:hover,
.vouchers-toolbar-cart:hover,
.auth-secondary-btn:hover {
    background: rgba(13, 77, 59, 0.06);
    color: var(--primary-color);
    border-color: rgba(13, 77, 59, 0.22);
    transform: translateY(-2px);
}

/* Store Logo Images */
.store-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #f7fafc;
    padding: 8px;
}

.store-logo-img-large {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    background: #f7fafc;
    padding: 12px;
}

.cart-item-details img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: #f7fafc;
    padding: 6px;
}

/* Category Badge */
.category-badge {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* No Results */
.no-results {
    text-align: center;
    grid-column: 1/-1;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 3rem;
}

/* ===== Section Styles ===== */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-dark);
}

.how-it-works-section,
.top-stores-section,
.categories-section {
    padding: var(--spacing-3xl) 0;
}

/* ===== How It Works ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.step-card {
    background: white;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.15);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.08));
    border-radius: 50%;
    margin: var(--spacing-md) auto;
    color: var(--primary-color);
}

.step-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== Stores Grid ===== */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.store-card {
    background: white;
    border-radius: 12px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(95, 75, 139, 0.12);
}

.store-card-media {
    height: 220px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-bottom: 1px solid #eef2f7;
}

.store-card-image {
    width: 100%;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.store-card-body {
    padding: 0.9rem 0.9rem 1rem;
}

.store-name {
    font-weight: 500;
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-starting-price {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.store-starting-price strong {
    color: var(--text-dark);
}

/* ===== Categories Grid ===== */
.categories-section {
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.category-card {
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
}

.category-card:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05) translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    margin: 0 auto var(--spacing-md);
    color: var(--primary-color);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.category-card:hover .category-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: none;
}

.category-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.category-card p {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* ===== Footer ===== */
.footer {
    background:
        radial-gradient(circle at top left, rgba(216, 178, 119, 0.16), transparent 22%),
        linear-gradient(180deg, #123629 0%, #0d2d22 100%);
    color: white;
    padding: calc(var(--spacing-3xl) + 0.5rem) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: calc(var(--spacing-xl) + 0.5rem);
    margin-bottom: calc(var(--spacing-xl) + 0.5rem);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: 0.02em;
}

.footer-col p {
    color: rgba(255, 248, 236, 0.72);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 248, 236, 0.72);
    font-size: 0.9rem;
}

.footer-col ul li svg {
    width: 15px;
    height: 15px;
    stroke: rgba(255, 248, 236, 0.52);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.footer-col a {
    color: rgba(255, 248, 236, 0.72);
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: white;
    padding-left: 4px;
}

/* Social links */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.8);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-link:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.social-link:hover svg {
    stroke: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 248, 236, 0.09);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 248, 236, 0.48);
    font-size: 0.85rem;
}

/* ===== Loading Skeleton ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-logo {
    height: 60px;
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.skeleton-text {
    height: 18px;
    width: 70%;
    margin: 0 auto var(--spacing-sm);
}

.skeleton-badge {
    height: 22px;
    width: 50%;
    margin: 0 auto;
}

/* ===== Responsive Design ===== */
@media (max-width: 1100px) {

    .stores-grid,
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 280px;
    }
}

@media (max-width: 900px) {
    .nav-search {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .market-utility {
        display: none;
    }

    .market-nav-container {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .market-brand .logo-img {
        height: 70px;
    }

    /* Show hamburger, hide desktop links */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .nav-container {
        padding: 0.75rem var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .market-footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .market-footer-links {
        justify-content: flex-start;
        gap: 0.9rem 1.15rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-image {
        display: none;
    }

    .stores-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

/* ===== Cart page specific responsive ===== */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr !important;
    }

    .cart-summary {
        position: static !important;
    }

    .checkout-layout {
        grid-template-columns: 1fr !important;
    }

    .order-summary {
        position: static !important;
    }

    .payment-methods {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 60px 1fr !important;
        grid-template-rows: auto auto !important;
    }

    .cart-item-actions {
        grid-column: 2 !important;
    }

    .payment-methods {
        grid-template-columns: 1fr !important;
    }
}
