* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f7f4ed;
    color: #222;
}


/* GENERAL SCREEN */

.screen {
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.screen.active {
    display: flex;
}


/* WELCOME SCREEN */

.welcome-content {
    max-width: 600px;
    padding: 40px;
}

.eyebrow {
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 15px;
    color: #777;
}

h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

.intro {
    font-size: 20px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 35px;
}


/* BUTTON */

button {
    font-family: inherit;
    cursor: pointer;
}

.marketplace-back-wrap {
    width: 100%;
    margin: 0 0 28px;
}

.marketplace-back {
    display: inline-block;
    padding: 8px 14px;

    border: 1px solid #ddd8ce;
    border-radius: 20px;

    background: #fffdf8;
    color: #555;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    text-decoration: none;

    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.marketplace-back:hover {
    color: #222;
    border-color: #222;
    background: #fff;
}

@media (max-width: 600px) {

    .marketplace-back-wrap {
        margin-bottom: 20px;
    }

}

body > .marketplace-back-wrap {
    padding: 18px 8% 0;
    margin-bottom: 8px;
    box-sizing: border-box;
}

#getStartedBtn {
    padding: 15px 32px;
    border: none;
    border-radius: 30px;
    background: #222;
    color: white;
    font-size: 16px;
    transition: 0.2s ease;
}

#getStartedBtn:hover {
    transform: translateY(-2px);
}


/* CITY SCREEN */

.selection-content {
    width: 90%;
    max-width: 700px;
}

h2 {
    font-size: 48px;
    margin-bottom: 18px;
}

.selection-intro {
    font-size: 18px;
    color: #666;
    margin-bottom: 45px;
}

.city-options {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.city-btn {
    min-width: 170px;
    padding: 18px 30px;
    border: 1px solid #ddd8ce;
    border-radius: 14px;
    background: #fffdf8;
    color: #222;
    font-size: 17px;
    transition: 0.2s ease;
}

.city-btn:hover {
    background: #222;
    color: white;
    transform: translateY(-3px);
}


/* PET SELECTION */

.pet-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 650px;
    margin: 0 auto;
}

.pet-btn {
    min-height: 130px;
    border: 1px solid #ddd8ce;
    border-radius: 16px;
    background: #fffdf8;
    color: #222;
    font-size: 17px;
    line-height: 1.8;
    transition: 0.2s ease;
}

.pet-btn:hover {
    background: #222;
    color: white;
    transform: translateY(-3px);
}


/* MOBILE */

@media (max-width: 600px) {

    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 36px;
    }

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

}/* =========================
   MARKETPLACE
========================= */

.marketplace-screen {
    display: none;
    min-height: 100vh;
    background: #f7f4ed;
}

.marketplace-screen.active {
    display: block;
}


/* HEADER */

.market-header {
    position: relative;
    z-index: 100;
    background: #fffdf8;
    border-bottom: 1px solid #e5e0d7;
}

.market-header-inner {
    height: 72px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 50px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    font-size: 21px;
    font-weight: bold;
    line-height: 1.2;
}

.market-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 28px;
}

.market-nav-item {
    position: relative;
}

.market-nav-trigger {
    background: none;
    border: none;
    padding: 10px 4px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    transition: color 0.2s ease;
}

.market-nav-trigger:hover,
.market-nav-trigger:focus-visible,
.market-nav-trigger.is-open {
    color: #000;
}

.market-nav-trigger:focus-visible {
    outline: 2px solid #222;
    outline-offset: 3px;
    border-radius: 4px;
}

.market-mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    width: min(920px, calc(100vw - 32px));
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 24px;
    border: 1px solid #e5e0d7;
    border-radius: 16px;
    background: #fffdf8;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    z-index: 200;
}

.market-mega-menu:not([hidden]) {
    display: block;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px 28px;
}

.mega-menu-pet-block {
    min-width: 0;
}

.mega-menu-pet-title {
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    cursor: pointer;
}

.mega-menu-pet-title:hover,
.mega-menu-pet-title:focus-visible {
    color: #000;
    text-decoration: underline;
}

.mega-menu-category {
    margin-bottom: 12px;
}

.mega-menu-category-name {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
}

.mega-menu-category-name:hover,
.mega-menu-category-name:focus-visible {
    color: #222;
}

.mega-menu-subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-subcategory-list li {
    margin: 0;
}

.mega-menu-subcategory-btn {
    width: 100%;
    padding: 4px 0;
    border: none;
    background: none;
    text-align: left;
    font: inherit;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.mega-menu-subcategory-btn:hover,
.mega-menu-subcategory-btn:focus-visible {
    color: #222;
}

.explore-services-ngo-menu {
    width: min(1120px, calc(100vw - 32px));
}

.explore-services-ngo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.explore-pet-block {
    padding-right: 8px;
}

.mega-menu-pet-heading {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #222;
}

.mega-menu-listing-type {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ece5db;
}

.mega-menu-pet-block .mega-menu-listing-type:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mega-menu-listing-label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777;
}

.market-city-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 10px;
    border: 1px solid #e5e0d7;
    border-radius: 14px;
    background: #fffdf8;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    z-index: 200;
}

.market-city-menu.show {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.city-option {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    font: inherit;
    color: #222;
    cursor: pointer;
    font-size: 14px;
}

.city-option:hover,
.city-option:focus-visible,
.city-option.is-active {
    background: #f3ede4;
}

.city-option.is-active {
    font-weight: 600;
}

.header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.header-icon-actions {
    gap: 2px;
}

.header-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #222;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-icon-btn:hover,
.header-icon-btn:focus-visible {
    background: #f3ede4;
}

.header-icon-btn:focus-visible {
    outline: 2px solid #222;
    outline-offset: 2px;
}

.header-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-icon-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #222;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.header-icon-badge:empty,
.header-icon-badge[data-count="0"] {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.location {
    font-size: 15px;
    color: #555;
    position: relative;
}

.location-dropdown-btn {
    background: none;
    border: none;
    font: inherit;
    color: #555;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.location-dropdown-btn:hover {
    background: #f5f5f5;
}

.location-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    min-width: 140px;
}

.location-dropdown.show {
    display: flex;
    flex-direction: column;
}

.city-option {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 10px 14px;
    border-radius: 8px;
    font: inherit;
    color: #222;
    cursor: pointer;
    font-size: 14px;
}

.city-option:hover {
    background: #f5f5f5;
}

#cartButton.header-icon-btn {
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #222;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

#cartButton.header-icon-btn:hover {
    transform: none;
    background: #f3ede4;
}


/* HERO CAROUSEL */

.hero-carousel {
    position: relative;
    width: 100%;
    background: #f7f4ed;
    border-bottom: 1px solid #e5e0d7;
}

.hero-carousel-viewport {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 320px;
    height: clamp(320px, 42vw, 480px);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 24px;
    padding: 36px clamp(20px, 5vw, 64px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease,
        visibility 0.65s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 1;
}

.hero-slide.is-leaving {
    opacity: 0;
    transform: translateX(-24px);
    z-index: 0;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.hero-slide-headline {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #1f1f1f;
}

.hero-slide-subheadline {
    margin: 0 0 24px;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.55;
    color: #5f5a54;
    max-width: 46ch;
}

.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-slide-cta:hover,
.hero-slide-cta:focus-visible {
    background: #000;
    transform: translateY(-2px);
}

.hero-slide-cta:focus-visible {
    outline: 2px solid #222;
    outline-offset: 3px;
}

.hero-slide-media {
    position: relative;
    min-height: 220px;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #ece5db;
}

.hero-slide-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(34, 34, 34, 0.12);
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.92);
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hero-carousel-arrow:hover,
.hero-carousel-arrow:focus-visible {
    background: #222;
    color: #fff;
    border-color: #222;
}

.hero-carousel-arrow:focus-visible {
    outline: 2px solid #222;
    outline-offset: 3px;
}

.hero-carousel-prev {
    left: clamp(12px, 2vw, 28px);
}

.hero-carousel-next {
    right: clamp(12px, 2vw, 28px);
}

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.82);
    backdrop-filter: blur(6px);
}

.hero-carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c9bfb2;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-carousel-dot:hover,
.hero-carousel-dot:focus-visible {
    background: #8f8579;
    transform: scale(1.08);
}

.hero-carousel-dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: #222;
}

.hero-carousel-dot:focus-visible {
    outline: 2px solid #222;
    outline-offset: 2px;
}

@media (max-width: 900px) {

    .hero-carousel-viewport {
        height: auto;
        min-height: 0;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 28px 20px 72px;
        gap: 18px;
    }

    .hero-slide-content {
        max-width: none;
        text-align: center;
        margin: 0 auto;
    }

    .hero-slide-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slide-media {
        min-height: 180px;
        max-height: 220px;
        order: -1;
    }

    .hero-carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .hero-slide {
        transition: none;
        transform: none;
    }

    .hero-slide.is-leaving {
        transform: none;
    }

}


/* CONTENT */

.market-content {
    max-width: 1250px;
    margin: 0 auto;
    padding: 65px 40px;
}

.market-intro {
    text-align: center;
    position: relative;
}

.market-intro h2 {
    margin-bottom: 30px;
}

.pet-dropdown-btn {
    background: none;
    border: none;
    font: inherit;
    color: #222;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
    font-weight: inherit;
    font-size: inherit;
    letter-spacing: inherit;
}

.pet-dropdown-btn:hover {
    background: #f5f5f5;
}

.pet-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    min-width: 180px;
}

.pet-dropdown.show {
    display: flex;
    flex-direction: column;
}

.pet-option {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 10px 14px;
    border-radius: 8px;
    font: inherit;
    color: #222;
    cursor: pointer;
    font-size: 14px;
}

.pet-option:hover {
    background: #f5f5f5;
}


/* SEARCH */

.search-box {
    max-width: 650px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 17px 22px;
    border: 1px solid #ddd8ce;
    border-radius: 12px;
    background: #fffdf8;
    font-size: 16px;
    outline: none;
}


/* MARKETPLACE FILTERS */

.marketplace-filters {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 650px;
    margin: 28px auto 40px;
}

.filter-control {
    flex: 1 1 220px;
    min-width: 0;
    text-align: left;
}

.filter-control label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777;
}

.marketplace-filter-select {
    width: 100%;
    padding: 14px 42px 14px 16px;
    border: 1px solid #ddd8ce;
    border-radius: 12px;
    background-color: #fffdf8;
    color: #222;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.marketplace-filter-select:hover:not(:disabled) {
    border-color: #222;
}

.marketplace-filter-select:focus {
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.08);
}

.marketplace-filter-select:disabled {
    color: #999;
    background-color: #f3f0ea;
    cursor: not-allowed;
    opacity: 0.85;
}


/* PRODUCTS */

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fffdf8;
    border: 1px solid #e5e0d7;
    border-radius: 18px;
    padding: 16px;
    transition: 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
}

.service-card {
    display: flex;
    flex-direction: column;
    background: #fffdf8;
    border: 1px solid #e5e0d7;
    border-radius: 18px;
    overflow: hidden;
    transition: 0.2s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eee9df;
    overflow: hidden;
}

.service-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.92);
    color: #555;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.service-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    color: #222;
}

.service-provider {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.4;
}

.service-price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.service-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.inquire-btn {
    border: none;
    border-radius: 20px;
    padding: 9px 16px;
    background: #222;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.inquire-btn:hover,
.inquire-btn:focus-visible {
    opacity: 0.9;
}

.inquire-btn-large {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 15px;
}

.sdp-provider {
    margin: 8px 0 0;
    color: #777;
    font-size: 15px;
    line-height: 1.4;
}

.sdp-price-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 18px 0 6px;
}

.sdp-price {
    font-size: 28px;
}

.sdp-inquire-row {
    margin-top: 20px;
}

.sdp-description-panel {
    display: block;
    padding-top: 8px;
}

.contact-provider-modal {
    z-index: 10001;
    padding: 16px;
    box-sizing: border-box;
}

.contact-provider-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 420px);
    max-width: 420px;
    max-height: min(85vh, 560px);
    margin: 0;
    padding: 48px 24px 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.contact-provider-content h3 {
    flex: 0 0 auto;
    margin: 0 0 16px;
    padding-right: 28px;
    font-size: 22px;
}

.contact-provider-content #contactProviderBody {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.contact-provider-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #f5f2eb;
    color: #222;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.contact-provider-close:hover,
.contact-provider-close:focus-visible {
    background: #ebe6dc;
}

.contact-provider-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-provider-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e5e0d7;
    border-radius: 12px;
    background: #fffdf8;
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
    min-width: 0;
}

.contact-provider-row:hover,
.contact-provider-row:focus-visible {
    border-color: #cfc7ba;
    background: #f8f4ed;
}

.contact-provider-row.is-static {
    cursor: default;
}

.contact-provider-icon {
    flex: 0 0 22px;
    margin-top: 2px;
}

.contact-provider-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: #444;
}

.contact-provider-details {
    flex: 1 1 auto;
    min-width: 0;
}

.contact-provider-label {
    display: block;
    color: #999;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contact-provider-value {
    display: block;
    color: #222;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    word-break: normal;
    overflow-wrap: normal;
}

.contact-provider-row--phone .contact-provider-value,
.contact-provider-row--whatsapp .contact-provider-value {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.contact-provider-row--phone .contact-provider-value::-webkit-scrollbar,
.contact-provider-row--whatsapp .contact-provider-value::-webkit-scrollbar {
    display: none;
}

.contact-provider-row--website .contact-provider-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-provider-row--address .contact-provider-value {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    font-weight: 500;
    line-height: 1.55;
}

.contact-provider-loading,
.contact-provider-unavailable {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 600px) {

    .contact-provider-modal {
        padding: 12px;
    }

    .contact-provider-content {
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 24px);
        padding: 40px 18px 18px;
    }

    .contact-provider-content h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .contact-provider-row {
        padding: 12px 14px;
    }

    .contact-provider-value {
        font-size: 15px;
    }

}

body.contact-modal-open {
    overflow: hidden;
}

.service-price-label {
    color: #999;
    font-size: 11px;
    letter-spacing: 0.02em;
}

.service-price {
    font-size: 22px;
    line-height: 1.2;
    color: #222;
}

@media (max-width: 600px) {

    .service-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .inquire-btn {
        width: 100%;
    }

}

.product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #f3f0ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.product-image.has-photo {
    font-size: 0;
    padding: 0;
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f3f0ea;
}

.product-image-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;

    display: flex;
    justify-content: center;
    gap: 6px;
}

.product-image-dot {
    width: 8px;
    height: 8px;
    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);

    cursor: pointer;
}

.product-image-dot.active {
    background: #222;
}

.product-category {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 8px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.seller {
    color: #777;
    font-size: 13px;
    margin-bottom: 18px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-bottom strong {
    font-size: 19px;
}

.add-btn {
    border: none;
    border-radius: 20px;
    padding: 9px 18px;
    background: #222;
    color: white;
    cursor: pointer;
}


/* MOBILE */

@media (max-width: 900px) {

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

    .explore-services-ngo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .market-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        height: auto;
        min-height: 64px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        gap: 0;
    }

    .market-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        gap: 18px;
        padding-top: 2px;
    }

    .market-nav-trigger {
        font-size: 13px;
        padding: 8px 2px;
    }

    .market-mega-menu {
        left: 0;
        transform: none;
        width: calc(100vw - 32px);
        max-width: none;
    }

    .explore-services-ngo-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        gap: 0;
    }

    .header-icon-btn {
        width: 38px;
        height: 38px;
    }

    .market-header {
        padding: 0;
    }

    .market-content {
        padding: 40px 20px;
    }

    .marketplace-filters {
        flex-direction: column;
        align-items: stretch;
        margin: 24px auto 32px;
    }

    .filter-control {
        flex-basis: auto;
    }

    .products {
        grid-template-columns: 1fr;
    }

}/* =========================
   QUANTITY CONTROL
========================= */

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #222;
    border-radius: 22px;
    padding: 4px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #222;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    transform: scale(1.05);
}

.quantity {
    min-width: 18px;
    text-align: center;
    color: white;
    font-size: 14px;
}/* =========================
   PRODUCT ILLUSTRATIONS
========================= */

.product-svg {
    width: 150px;
    height: 150px;
    fill: #d6d0c4;
    stroke: #222;
    stroke-linejoin: round;
    stroke-linecap: round;
}/* =========================
   CART SCREEN
========================= */

.cart-screen {
    display: none;
    min-height: 100vh;
    background: #f7f4ed;
}

.cart-screen.active {
    display: block;
}

.cart-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 65px 30px;
}

.cart-heading {
    margin-bottom: 45px;
}

.cart-heading h2 {
    margin-bottom: 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: start;
    gap: 16px 18px;
    padding: 22px;
    background: #fffdf8;
    border: 1px solid #e5e0d7;
    border-radius: 16px;
}

.cart-item-thumb {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background: #f3f0ea;
    border: 1px solid #e8e3da;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cart-item-thumb .product-svg {
    width: 42px;
    height: auto;
    display: block;
}

.cart-item-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.cart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cart-item-info {
    min-width: 0;
    flex: 1 1 auto;
}

.cart-item-info h3 {
    font-size: 17px;
    margin-bottom: 6px;
    line-height: 1.35;
    word-break: break-word;
}

.cart-item-info p {
    font-size: 13px;
    color: #777;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cart-quantity-control {
    width: fit-content;
    flex: 0 0 auto;
    gap: 4px;
    padding: 2px;
    border-radius: 999px;
    min-height: 32px;
}

.cart-quantity-control .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.cart-quantity-control .quantity {
    min-width: 14px;
    padding: 0 2px;
    font-size: 13px;
}

.cart-item-remove {
    border: none;
    background: none;
    padding: 6px 2px;
    font-size: 13px;
    color: #888;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.cart-item-remove:hover,
.cart-item-remove:focus-visible {
    color: #222;
}

.cart-item-price {
    font-weight: bold;
    min-width: 72px;
    text-align: right;
    flex: 0 0 auto;
    white-space: nowrap;
}

.cart-summary {
    margin-top: 35px;
    padding: 28px;
    background: #fffdf8;
    border: 1px solid #e5e0d7;
    border-radius: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
}

.cart-note {
    margin: 12px 0 25px;
    color: #777;
    font-size: 13px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 28px;
    background: #222;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.continue-btn {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #ddd8ce;
    border-radius: 28px;
    background: transparent;
    color: #222;
    font-size: 15px;
    cursor: pointer;
}

.empty-cart {
    padding: 60px 20px;
    text-align: center;
    color: #777;
}

.cart-action-bar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 9990;
    width: min(560px, calc(100% - 32px));
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.24s ease,
        opacity 0.24s ease;
}

.cart-action-bar.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cart-action-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px 14px 20px;
    background: #fffdf8;
    border: 1px solid #e5e0d7;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(34, 34, 34, 0.12);
}

.cart-action-bar-count {
    margin: 0;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.cart-action-bar-btn {
    border: none;
    border-radius: 999px;
    padding: 11px 18px;
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.cart-action-bar-btn:hover,
.cart-action-bar-btn:focus-visible {
    opacity: 0.92;
}

body.has-cart-action-bar {
    padding-bottom: 92px;
}


/* MOBILE */

@media (max-width: 600px) {

    .cart-content {
        padding: 40px 20px;
    }

    .cart-item {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px 14px;
        padding: 16px;
    }

    .cart-item-thumb {
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }

    .cart-item-thumb .product-svg {
        width: 34px;
    }

    .cart-item-top {
        gap: 10px;
    }

    .cart-item-price {
        font-size: 15px;
        min-width: 0;
    }

    .cart-item-actions {
        gap: 12px;
    }

    .cart-item-remove {
        padding: 8px 2px;
    }

    .cart-action-bar {
        bottom: 14px;
        width: calc(100% - 24px);
    }

    .cart-action-bar-inner {
        padding: 12px 12px 12px 16px;
    }

    .cart-action-bar-count {
        font-size: 14px;
    }

    .cart-action-bar-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    body.has-cart-action-bar {
        padding-bottom: 84px;
    }

}/* =========================
   CHECKOUT PAGE
========================= */

.checkout-page {
    min-height: 100vh;
    padding: 60px 8%;
    background: #f7f3ed;
}

.checkout-header {
    margin-bottom: 50px;
}

.checkout-header .brand {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 50px;
}

.checkout-header h1 {
    font-size: 56px;
    margin: 0;
    letter-spacing: -2px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 40px;
    max-width: 1100px;
}

.checkout-details,
.checkout-summary {
    background: #fff;
    border: 1px solid #ddd7cf;
    border-radius: 18px;
    padding: 35px;
}

.checkout-details h2,
.checkout-summary h2 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.field-label-row label {
    margin-bottom: 0;
}

.use-saved-address-btn {
    background: none;
    border: none;
    padding: 0;
    color: #777;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.use-saved-address-btn:hover {
    color: #222;
}

.saved-address-choice {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid #e5e0d7;
    border-radius: 12px;
    background: #fffdf8;
    text-align: left;
    font: inherit;
    color: #222;
    cursor: pointer;
}

.saved-address-choice:hover {
    border-color: #222;
}

.saved-address-choice strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.saved-address-choice span {
    display: block;
    color: #777;
    font-size: 13px;
}

.saved-address-empty,
.saved-address-error {
    color: #777;
    font-size: 14px;
    margin-bottom: 16px;
}

.saved-address-error {
    color: #7a3b32;
}

.add-new-address-choice {
    width: 100%;
    margin: 8px 0 12px;
    padding: 12px;
    border: 1px dashed #ccc;
    border-radius: 10px;
    background: #faf9f6;
    color: #555;
    font-size: 14px;
}

.add-new-address-choice:hover {
    border-color: #222;
    color: #222;
}

.saved-address-modal .continue-btn {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #d8d3cc;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.phone-input-group {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d8d3cc;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.phone-input-prefix {
    flex: 0 0 auto;
    padding: 14px 0 14px 16px;
    color: #444;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.phone-input-divider {
    flex: 0 0 auto;
    padding: 0 12px;
    color: #ccc;
    font-size: 15px;
    line-height: 1;
}

.phone-input-field {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    padding: 14px 16px 14px 0;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    outline: none;
}

.phone-input-group:focus-within {
    border-color: #222;
}

.profile-form .phone-input-group {
    border-color: #d8d4cc;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: #222;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    opacity: 0.9;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e0d9;
}

.checkout-item strong {
    font-size: 15px;
}

.checkout-item p {
    margin: 6px 0 0;
    color: #777;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #222;
    font-size: 18px;
}

.summary-total strong {
    font-size: 22px;
}


.orders-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 720px;
}

.order-card h2 {
    margin-bottom: 8px;
}

.order-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 24px;
}


/* =========================
   MY ORDERS
========================= */

.orders-page {
    min-height: 100vh;
    padding: 50px 8% 80px;
    background: #f7f4ed;
}

.orders-page-inner {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.orders-page-header {
    margin-bottom: 36px;
}

.orders-page-inner .orders-main-tabs,
.orders-page-inner .orders-sub-tabs,
.orders-page-inner .orders-list,
.orders-page-inner .orders-empty {
    max-width: none;
    width: 100%;
}

.orders-page-header .back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.orders-page-header .back-link:hover {
    color: #222;
}

.orders-page-header h1 {
    font-size: 52px;
    letter-spacing: -1.5px;
    margin: 0;
}

.orders-main-tabs,
.orders-sub-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 820px;
}

.orders-main-tabs {
    margin-bottom: 22px;
}

.orders-sub-tabs {
    margin-bottom: 28px;
}

.orders-main-tab,
.orders-sub-tab {
    border: 1px solid #ddd8ce;
    background: #fffdf8;
    color: #555;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 14px;
}

.orders-main-tab.active,
.orders-sub-tab.active {
    background: #222;
    border-color: #222;
    color: #fff;
}

.orders-page .orders-list {
    max-width: 820px;
}

.orders-page-inner .orders-list,
.orders-page-inner .orders-empty {
    max-width: none;
    width: 100%;
}

.order-summary-card,
.order-detail-card {
    background: #fffdf8;
    border: 1px solid #e5e0d7;
    border-radius: 18px;
    padding: 24px;
}

.order-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.order-id-label {
    font-size: 11px;
    letter-spacing: 1.4px;
    color: #888;
    margin-bottom: 6px;
}

.order-summary-card h2,
.order-detail-card h2 {
    font-size: 28px;
    letter-spacing: -0.5px;
    margin: 0;
}

.order-summary-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.view-order-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 22px;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.view-order-btn:hover {
    opacity: 0.9;
}

.status-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.4px;
    background: #eee9df;
    color: #333;
    white-space: nowrap;
}

.status-pill.status-new {
    background: #eee9df;
}

.status-pill.status-delivered,
.status-pill.status-returned {
    background: #e7f0e4;
    color: #2c5a2c;
}

.status-pill.status-cancelled {
    background: #f3e6e4;
    color: #7a3b32;
}

.orders-empty {
    max-width: 820px;
    padding: 48px 28px;
    background: #fffdf8;
    border: 1px solid #e5e0d7;
    border-radius: 18px;
    text-align: center;
}

.orders-empty h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.orders-empty p {
    color: #777;
}

.order-return-reason {
    color: #555;
    margin-bottom: 18px;
}

.order-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 820px;
}

.order-detail-block {
    margin-top: 28px;
}

.order-detail-block h3 {
    font-size: 16px;
    margin-bottom: 14px;
}

.order-detail-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee9df;
}

.order-detail-item:last-child {
    border-bottom: none;
}

.order-item-photo {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    background: #f3f0ea;
}

.order-item-photo.placeholder {
    display: block;
}

.order-detail-item-info h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.order-detail-item-info p {
    margin: 0 0 4px;
    color: #777;
    font-size: 14px;
}

.order-payment-id {
    margin-top: 8px;
    color: #888;
    font-size: 13px;
    word-break: break-all;
}

@media (max-width: 768px) {

    .orders-page {
        padding: 32px 20px 60px;
    }

    .orders-page-header h1 {
        font-size: 38px;
    }

    .order-summary-top,
    .order-summary-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-detail-item {
        grid-template-columns: 64px 1fr;
    }

    .order-detail-item strong {
        grid-column: 2;
    }

}


/* MOBILE */

@media (max-width: 768px) {

    .checkout-page {
        padding: 35px 20px;
    }

    .checkout-header h1 {
        font-size: 42px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

}.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    width: 100%;
    max-width: 430px;
    padding: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 16px;
}

.auth-box h1 {
    margin: 0;
}

.auth-subtitle {
    margin-bottom: 30px;
}

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

.auth-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.auth-box .submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.auth-switch {
    margin-top: 25px;
    text-align: center;
}

#message {
    margin-top: 15px;
}/* =========================
   AUTH PAGE
========================= */

.auth-screen {
    min-height: 100vh;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    background: #f7f4ed;
}

.auth-card {
    width: 100%;
    max-width: 450px;

    padding: 45px;

    background: #fff;

    border-radius: 20px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.auth-card .eyebrow {
    margin-bottom: 18px;
}

.auth-card h1 {
    margin: 0 0 20px;

    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -2px;
}

.auth-subtitle {
    margin-bottom: 32px;

    color: #666;

    font-size: 16px;
    line-height: 1.5;
}

.auth-card label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;
}

.auth-card input {
    width: 100%;

    padding: 15px 16px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #fff;

    font-family: inherit;
    font-size: 16px;

    outline: none;
}

.auth-card input:focus {
    border-color: #222;
}

.auth-card button {
    width: 100%;

    margin-top: 15px;
    padding: 15px;

    border: none;
    border-radius: 10px;

    background: #000;
    color: #fff;

    font-family: inherit;
    font-size: 16px;

    cursor: pointer;

    transition: 0.2s ease;
}

.auth-card button:hover {
    transform: translateY(-1px);
}

#authMessage {
    margin-top: 18px;

    font-size: 14px;
    color: #666;
}


/* MOBILE */

@media (max-width: 600px) {

    .auth-card {
        padding: 32px 25px;
    }

    .auth-card h1 {
        font-size: 46px;
    }

}/* ================================
   HEADER FIX
================================ */

.site-header {
    height: 72px;
    padding: 0 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 1px solid #e5e1d8;
}

.site-header .logo {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.site-header .location {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header .login-link {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
}

.site-header .cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 44px;
    padding: 0 22px;

    border-radius: 24px;
    background: #222;
    color: white;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    box-sizing: border-box;
}


/* ================================
   GENERAL RESET
================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f3eb;
    color: #222;
}


/* Prevent random heading/link sizing */
h1,
h2,
h3,
p {
    margin-top: 0;
}


/* ================================
   LOGIN PAGE
================================ */

.auth-page {
    min-height: calc(100vh - 72px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 460px;

    background: white;

    padding: 48px;

    border-radius: 24px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.08);
}

.auth-card .brand {
    font-size: 14px;
    letter-spacing: 5px;
    margin-bottom: 26px;
}

.auth-card h1 {
    font-size: 58px;
    line-height: 0.98;
    letter-spacing: -2px;
    margin: 0 0 24px;
}

.auth-card .subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 34px;
}

.auth-card label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-card input {
    width: 100%;
    height: 52px;

    padding: 0 16px;

    border: 1px solid #d8d4cc;
    border-radius: 10px;

    background: #faf9f6;

    font-size: 16px;

    margin-bottom: 20px;
}

.auth-card input:focus {
    outline: none;
    border-color: #222;
}

.auth-card button {
    width: 100%;
    height: 52px;

    border: 0;
    border-radius: 10px;

    background: #222;
    color: white;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

.auth-card button:hover {
    opacity: 0.9;
}

.signup-text {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.signup-text a {
    color: #222;
    font-weight: 600;
}

.auth-text-btn {
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: #222;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.auth-card .auth-text-btn {
    width: auto;
    margin-top: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    color: #222;
    font-size: 14px;
    font-weight: 600;
}

.auth-card .auth-text-btn:hover {
    opacity: 0.8;
}

.magic-link-hint {
    margin: 0 0 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.auth-card .auth-phone-input {
    width: 100%;
    margin-bottom: 18px;
    border-radius: 8px;
    border-color: #d8d5ce;
}

.auth-card .auth-phone-input .phone-input-field {
    padding: 16px 18px 16px 0;
    font-size: 16px;
}

.auth-card .auth-phone-input .phone-input-prefix {
    padding: 16px 0 16px 18px;
    font-size: 16px;
}

.signup-otp-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #e8e3da;
}

.signup-otp-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.signup-secondary-btn {
    width: auto;
    margin-top: 0;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.signup-secondary-btn:hover,
.signup-secondary-btn:focus-visible {
    opacity: 0.92;
}

.signup-secondary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.signup-text-btn {
    width: auto;
    margin-top: 0;
    padding: 8px 2px;
    border: none;
    border-radius: 0;
    background: none;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    font-family: inherit;
}

.signup-text-btn:hover,
.signup-text-btn:focus-visible {
    color: #222;
}

.signup-text-btn:disabled {
    color: #aaa;
    cursor: not-allowed;
    text-decoration: none;
}

/* ================================
   PROFILE PAGE
================================ */

.profile-screen {
    min-height: 100vh;
    background: #f7f5ef;
    padding: 80px 24px;
}

.profile-content {
    width: min(680px, 100%);
    margin: 0 auto;
}

.profile-content .eyebrow {
    margin-bottom: 14px;
}

.profile-content h1 {
    margin-bottom: 55px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.profile-form label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: -16px;
}

.profile-form input,
.profile-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid #d8d5ce;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.profile-form input:focus,
.profile-form textarea:focus {
    border-color: #222;
}

.profile-form .phone-input-group {
    width: 100%;
    border-radius: 8px;
    border-color: #d8d5ce;
}

.profile-form .phone-input-field {
    width: auto;
    border: none;
    padding: 16px 18px 16px 0;
    background: transparent;
    border-radius: 0;
}

.profile-form .phone-input-field:focus {
    border-color: transparent;
}

.profile-form .phone-input-prefix {
    padding: 16px 0 16px 18px;
}

.profile-form textarea {
    min-height: 120px;
    resize: vertical;
}

.profile-form button[type="submit"] {
    margin-top: 8px;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.login-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    color: #555;
    cursor: pointer;
}

#profileMessage {
    margin-top: 18px;
    font-size: 14px;
}.back-link {
    display: inline-block;
    margin-bottom: 45px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
}

.profile-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.profile-nav .back-link {
    margin-bottom: 0;
}

.back-link:hover {
    text-decoration: underline;
}#logoutButton {
    margin-top: 16px;
    background: transparent;
    border: 1px solid #ddd;
    padding: 12px 18px;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    color: #222;
    cursor: pointer;
}/* ========================
   USER MENU
======================== */

.user-menu {
    position: relative;
}

.user-button {
    background: none;
    border: none;
    font: inherit;
    color: #222;
    cursor: pointer;
    padding: 8px 4px;

    display: flex;
    align-items: center;
    gap: 6px;
}

.user-arrow {
    font-size: 13px;
}

.user-dropdown {
    display: none;

    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    width: 190px;

    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;

    padding: 8px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

    z-index: 9999;
}

.user-dropdown.show {
    display: flex;
    flex-direction: column;
}

.user-dropdown button {
    width: 100%;

    background: none;
    border: none;

    text-align: left;

    padding: 12px 14px;

    border-radius: 8px;

    font: inherit;
    color: #222;

    cursor: pointer;
}

.user-dropdown button:hover {
    background: #f5f5f5;
}.user-display {
    color: #222;
    font: inherit;
    padding: 8px 4px;
    cursor: default;
}

/* ========================
   ADDRESS SECTION
======================== */

.address-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e5e0d7;
}

.address-section h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
}

.address-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e0d7;
    border-radius: 12px;
    gap: 20px;
}

.address-details {
    flex: 1;
}

.address-details p {
    margin: 4px 0;
    color: #555;
    font-size: 14px;
}

.address-details strong {
    color: #222;
    font-weight: 600;
}

.delete-address-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-address-btn:hover {
    background: #fee;
    border-color: #fcc;
    color: #c33;
}

.no-addresses {
    color: #888;
    font-style: italic;
    padding: 20px 0;
}

.add-address-btn {
    margin-top: 15px;
    padding: 14px 24px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background: #faf9f6;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.add-address-btn:hover {
    border-color: #222;
    color: #222;
    background: #fff;
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    z-index: 4000;

    max-width: calc(100% - 32px);
    padding: 12px 20px;

    background: #222;
    color: #fff;
    border-radius: 999px;

    font-size: 14px;
    line-height: 1.4;
    text-align: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.site-toast.error {
    background: #7a3b32;
}

@media (max-width: 600px) {

    .site-toast {
        bottom: 18px;
        width: calc(100% - 32px);
        border-radius: 14px;
    }

}

/* ========================
   MODAL
======================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin: 0 0 25px;
    font-size: 24px;
}

.modal-content label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 20px;
}

.modal-content label:first-of-type {
    margin-top: 0;
}

.modal-content input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8d4cc;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}

.modal-content input:focus {
    outline: none;
    border-color: #222;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.modal-buttons button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.modal-buttons button[type="submit"] {
    background: #222;
    color: #fff;
}

.modal-buttons button[type="button"] {
    background: #f5f5f5;
    color: #222;
}

.modal-buttons button:hover {
    opacity: 0.9;
}

/* Read-only input styling */
input[readonly] {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .address-card {
        flex-direction: column;
        gap: 15px;
    }

    .delete-address-btn {
        width: 100%;
    }

    .modal-content {
        padding: 25px;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

/* =========================
   PRODUCT DETAIL PAGE
========================= */

.product-detail {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.product-detail[hidden] {
    display: none;
}

.pdp-inner {
    width: 100%;
}

.pdp-back {
    border: none;
    background: none;
    padding: 0;
    margin-bottom: 28px;
    font-size: 14px;
    color: #666;
    letter-spacing: 0.2px;
}

.pdp-back:hover {
    color: #222;
}

.pdp-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.pdp-gallery {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: start;
}

.pdp-gallery.single {
    grid-template-columns: 1fr;
}

.pdp-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdp-thumb {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid #e5e0d7;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f0ea;
}

.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f3f0ea;
}

.pdp-thumb.active {
    border-color: #222;
    box-shadow: 0 0 0 1px #222;
}

.pdp-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 22px;
    background: #f3f0ea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdp-main-image.has-photo {
    font-size: 0;
}

.pdp-main-photo {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    display: block;
}

.pdp-main-image .product-svg {
    width: 180px;
    height: 160px;
}

.pdp-info h1 {
    font-size: 40px;
    letter-spacing: -1px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.pdp-price {
    display: block;
    font-size: 28px;
    margin: 8px 0 18px;
}

.pdp-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}

.pdp-meta p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.pdp-meta span {
    color: #888;
    letter-spacing: 0.4px;
    font-size: 13px;
}

.pdp-cart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pdp-add-btn.add-btn {
    min-width: 180px;
    padding: 14px 28px;
    border-radius: 28px;
    font-size: 15px;
}

.pdp-cart-row .quantity-control {
    padding: 6px;
}

.pdp-panels {
    background: #fffdf8;
    border: 1px solid #e5e0d7;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 56px;
}

.pdp-tabs {
    display: flex;
    border-bottom: 1px solid #e5e0d7;
    overflow-x: auto;
}

.pdp-tab {
    border: none;
    background: none;
    padding: 18px 28px;
    font-size: 15px;
    color: #777;
    white-space: nowrap;
}

.pdp-tab.active {
    color: #222;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 #222;
}

.pdp-panel {
    display: none;
    padding: 28px 32px 36px;
}

.pdp-panel.active {
    display: block;
}

.pdp-spec {
    width: 100%;
    border-collapse: collapse;
}

.pdp-spec tr {
    border-bottom: 1px solid #eee9df;
}

.pdp-spec tr:last-child {
    border-bottom: none;
}

.pdp-spec th,
.pdp-spec td {
    text-align: left;
    vertical-align: top;
    padding: 16px 12px 16px 0;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.55;
}

.pdp-spec th {
    width: 220px;
    color: #888;
    font-weight: 600;
}

.pdp-long-copy {
    margin-top: 8px;
}

.pdp-long-copy h4 {
    font-size: 13px;
    letter-spacing: 1.2px;
    color: #888;
    margin: 0 0 10px;
    font-weight: 600;
}

.pdp-long-copy p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
}

.pdp-manufacturer p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.pdp-manufacturer .pdp-label {
    display: block;
    font-size: 12px;
    letter-spacing: 1.2px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 600;
}

.pdp-empty {
    color: #777;
    font-size: 15px;
    line-height: 1.6;
}

.pdp-reviews-placeholder {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.pdp-similar {
    margin-top: 8px;
}

.pdp-similar h2 {
    font-size: 32px;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.pdp-similar .products {
    margin-top: 0;
}

.pdp-not-found {
    padding: 80px 20px;
    text-align: center;
    color: #666;
}

@media (max-width: 900px) {

    .product-detail {
        padding: 28px 20px 60px;
    }

    .pdp-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pdp-gallery {
        grid-template-columns: 1fr;
    }

    .pdp-thumbs {
        flex-direction: row;
        order: 2;
        overflow-x: auto;
    }

    .pdp-main-image {
        min-height: 0;
        order: 1;
    }

    .pdp-main-photo {
        min-height: 0;
    }

    .pdp-info h1 {
        font-size: 32px;
    }

    .pdp-spec th {
        width: 40%;
    }

    .pdp-tabs {
        justify-content: flex-start;
    }

    .pdp-panel {
        padding: 22px 18px 28px;
    }

}