/* ═══════════════════════════════════════════════
   Beautiful Weddings LLC — Public Rental Catalog
   ═══════════════════════════════════════════════ */

:root {
    --bw-black: #1A1A1A;
    --bw-dark-gray: #333333;
    --bw-medium-gray: #666666;
    --bw-light-gray: #F5F5F5;
    --bw-border: #E0E0E0;
    --bw-white: #FFFFFF;
    --bw-gold: #D4AF37;
    --bw-gold-hover: #C49B2F;
    --bw-nav-text: #0F172A;
    --bw-nav-hover: #005EE9;
}

/* ─── Reset & Base ─────────────────────────────── */

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

body {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--bw-dark-gray);
    background: var(--bw-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--bw-dark-gray);
    text-decoration: none;
}

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

/* ─── Header ───────────────────────────────────── */

.site-header {
    background: var(--bw-white);
    border-bottom: 1px solid #eaeaea;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--bw-nav-text);
    transition: color 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    line-height: 1;
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--bw-nav-hover);
    }
}

.nav-link.active {
    color: var(--bw-nav-hover);
    border-bottom-color: var(--bw-nav-hover);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--bw-dark-gray);
    border-radius: 2px;
    transition: transform 0.3s;
}

/* ─── Mobile Nav Overlay ───────────────────────── */

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    background: rgba(0,0,0,0.5);
}

.mobile-nav-overlay.open {
    display: block;
}

.mobile-nav-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--bw-white);
    padding: 24px;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
}

.mobile-nav-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--bw-dark-gray);
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 48px;
}

.mobile-nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--bw-nav-text);
    border-bottom: 1px solid var(--bw-border);
}

.mobile-nav-links a.active {
    color: var(--bw-nav-hover);
}

/* ─── Main Content ─────────────────────────────── */

.site-main {
    min-height: calc(100vh - 80px - 80px);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Hero Section ─────────────────────────────── */

.catalog-hero {
    background: var(--bw-light-gray);
    padding: 14px 24px;
    text-align: center;
}

.catalog-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--bw-black);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.catalog-hero p {
    font-size: 17px;
    color: var(--bw-medium-gray);
    margin-bottom: 7px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid var(--bw-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
}

.search-input:focus {
    border-color: var(--bw-gold);
}

.search-btn {
    padding: 14px 24px;
    background: var(--bw-gold);
    color: var(--bw-white);
    border: 1px solid var(--bw-gold);
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    white-space: nowrap;
}

@media (hover: hover) {
    .search-btn:hover {
        background: var(--bw-gold-hover);
        border-color: var(--bw-gold-hover);
    }
}

/* ─── Section Headings ─────────────────────────── */

.section-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--bw-black);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.section-subheading {
    font-size: 15px;
    color: var(--bw-medium-gray);
    margin-top: -16px;
    margin-bottom: 24px;
}

/* ─── Category Grid ────────────────────────────── */

.category-section {
    padding: 48px 0;
}

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

.category-card {
    display: block;
    background: var(--bw-white);
    border: 1px solid var(--bw-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
    .category-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
}

.category-card-image {
    width: 100%;
    height: 160px;
    background: var(--bw-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-icon {
    font-size: 36px;
    color: var(--bw-gold);
}

.category-card-body {
    padding: 16px;
    text-align: center;
}

.category-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--bw-black);
    margin-bottom: 4px;
}

.category-card-count {
    font-size: 13px;
    color: var(--bw-medium-gray);
}

/* ─── Item Card Grid ───────────────────────────── */

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

.catalog-card {
    background: var(--bw-white);
    border: 1px solid var(--bw-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
    .catalog-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
}

.card-link {
    display: block;
    color: inherit;
}

.card-image {
    width: 100%;
    height: 240px;
    background: var(--bw-light-gray);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

@media (hover: hover) {
    .catalog-card:hover .card-image img {
        transform: scale(1.03);
    }
}

.card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bw-light-gray);
}

.card-body {
    padding: 14px 16px 16px;
}

.card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bw-medium-gray);
    margin-bottom: 4px;
}

.card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--bw-black);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--bw-gold);
}

/* ─── Featured Items ───────────────────────────── */

.featured-section {
    padding: 48px 0;
    background: var(--bw-light-gray);
}

.featured-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.featured-scroll::-webkit-scrollbar {
    height: 6px;
}

.featured-scroll::-webkit-scrollbar-track {
    background: var(--bw-border);
    border-radius: 3px;
}

.featured-scroll::-webkit-scrollbar-thumb {
    background: var(--bw-gold);
    border-radius: 3px;
}

.featured-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: var(--bw-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bw-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
    .featured-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
}

.featured-card a {
    display: block;
    color: inherit;
}

.featured-card .card-image {
    height: 200px;
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--bw-gold);
    color: var(--bw-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
}

.featured-card .card-image {
    position: relative;
}

.featured-card .card-body {
    padding: 12px 14px 14px;
}

/* ─── Landing Page Layout ─────────────────────── */

.landing-chips {
    padding: 20px 0 0;
}

.landing-content {
    padding: 32px 0 48px;
}

/* ─── Trust Signals ────────────────────────────── */

.trust-section {
    padding: 48px 0;
    border-top: 1px solid var(--bw-border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.trust-item {
    padding: 24px;
}

.trust-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--bw-gold);
    margin-bottom: 8px;
}

.trust-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--bw-black);
    margin-bottom: 4px;
}

.trust-desc {
    font-size: 14px;
    color: var(--bw-medium-gray);
}

/* ─── CTA Section ──────────────────────────────── */

.cta-section {
    background: var(--bw-black);
    padding: 56px 24px;
    text-align: center;
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--bw-white);
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 16px;
    color: #999;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    font-family: inherit;
    border: none;
    min-width: 44px;
    min-height: 44px;
}

.btn-gold {
    background: var(--bw-gold);
    color: var(--bw-white);
}

@media (hover: hover) {
    .btn-gold:hover {
        background: var(--bw-gold-hover);
        color: var(--bw-white);
    }
}

.btn-outline {
    background: transparent;
    color: var(--bw-white);
    border: 1px solid rgba(255,255,255,0.3);
}

@media (hover: hover) {
    .btn-outline:hover {
        background: rgba(255,255,255,0.1);
        color: var(--bw-white);
    }
}

/* ─── Breadcrumb ───────────────────────────────── */

.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--bw-medium-gray);
}

.breadcrumb a {
    color: var(--bw-medium-gray);
    transition: color 0.2s;
}

@media (hover: hover) {
    .breadcrumb a:hover {
        color: var(--bw-gold);
    }
}

.breadcrumb .sep {
    margin: 0 8px;
    color: var(--bw-border);
}

.breadcrumb .current {
    color: var(--bw-dark-gray);
    font-weight: 500;
}

/* ─── Back Chip (← All Rentals) ───────────────── */

.back-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bw-medium-gray);
    background: transparent;
    border: 1.5px solid var(--bw-border);
    border-radius: 20px;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}

@media (hover: hover) {
    .back-chip:hover {
        border-color: var(--bw-gold);
        color: var(--bw-gold);
        background: rgba(212, 175, 55, 0.06);
    }
}

/* ─── Sub-Category Filter Chips ───────────────── */

.subcategory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0 0;
}

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bw-dark-gray);
    background: var(--bw-light-gray);
    border: 1px solid var(--bw-border);
    border-radius: 20px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

@media (hover: hover) {
    .subcategory-chip:hover {
        border-color: var(--bw-gold);
        color: var(--bw-gold);
    }
}

.subcategory-chip.active {
    background: var(--bw-gold);
    border-color: var(--bw-gold);
    color: var(--bw-white);
}

.subcategory-chip.active .chip-count {
    color: rgba(255,255,255,0.8);
}

.chip-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--bw-medium-gray);
}

/* ─── Category Page ────────────────────────────── */

.category-header {
    padding: 32px 0 0;
}

.category-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--bw-black);
    margin-bottom: 8px;
}

.category-header .item-count {
    font-size: 15px;
    color: var(--bw-medium-gray);
    margin-bottom: 16px;
}

.category-description {
    font-size: 15px;
    color: var(--bw-medium-gray);
    max-width: 720px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ─── Category Search ─────────────────────────── */

.category-search-form {
    padding: 12px 0 0;
}

.category-search-wrap {
    position: relative;
    max-width: 400px;
}

.category-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bw-medium-gray);
    pointer-events: none;
}

.category-search-input {
    width: 100%;
    padding: 11px 40px 11px 42px;
    font-size: 15px;
    font-family: var(--bw-body-font);
    border: 1px solid var(--bw-border);
    border-radius: 8px;
    background: var(--bw-white);
    color: var(--bw-black);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.category-search-input:focus {
    border-color: var(--bw-gold);
}

.category-search-input::placeholder {
    color: #aaa;
}

.category-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bw-medium-gray);
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}

.category-search-clear:hover {
    background: var(--bw-light-gray);
    color: var(--bw-black);
}

.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--bw-border);
    margin-bottom: 24px;
}

.sort-bar .results-count {
    font-size: 14px;
    color: var(--bw-medium-gray);
}

.sort-select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--bw-border);
    border-radius: 6px;
    background: var(--bw-white);
    font-family: inherit;
    cursor: pointer;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.items-section {
    padding: 0 0 48px;
}

/* ─── Pagination ───────────────────────────────── */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--bw-border);
    color: var(--bw-dark-gray);
    transition: background 0.2s, border-color 0.2s;
}

@media (hover: hover) {
    .pagination a:hover {
        background: var(--bw-light-gray);
        border-color: var(--bw-gold);
    }
}

.pagination .current-page {
    background: var(--bw-gold);
    color: var(--bw-white);
    border-color: var(--bw-gold);
    font-weight: 700;
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination .page-arrow {
    font-size: 18px;
}

/* ─── Related Categories ───────────────────────── */

.related-section {
    padding: 48px 0;
    border-top: 1px solid var(--bw-border);
}

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

.related-category-link {
    display: block;
    padding: 16px;
    border: 1px solid var(--bw-border);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--bw-dark-gray);
    transition: border-color 0.2s, color 0.2s;
}

@media (hover: hover) {
    .related-category-link:hover {
        border-color: var(--bw-gold);
        color: var(--bw-gold);
    }
}

.related-category-link .count {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--bw-medium-gray);
    margin-top: 2px;
}

/* ─── Item Detail Page ─────────────────────────── */

.item-detail {
    padding: 24px 0 48px;
}

.item-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.item-image-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 96px;
}

.item-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bw-light-gray);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback for older Safari that doesn't support aspect-ratio */
@supports not (aspect-ratio: 4/3) {
    .item-image {
        height: 0;
        padding-bottom: 75%;
        position: relative;
    }
    .item-image img,
    .item-image .card-placeholder {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-image .card-placeholder {
    border-radius: 12px;
}

.item-info h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--bw-black);
    line-height: 1.2;
    margin-bottom: 12px;
}

.item-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--bw-gold);
    margin-bottom: 20px;
}

.item-description {
    font-size: 15px;
    color: var(--bw-medium-gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.item-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.spec-row {
    padding: 10px 14px;
    background: var(--bw-light-gray);
    border-radius: 8px;
}

.spec-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bw-medium-gray);
    margin-bottom: 2px;
}

.spec-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--bw-dark-gray);
}

.item-category-link {
    display: inline-block;
    font-size: 13px;
    color: var(--bw-medium-gray);
    margin-bottom: 24px;
}

@media (hover: hover) {
    .item-category-link:hover {
        color: var(--bw-gold);
    }
}

.item-cta {
    margin-top: 8px;
}

.item-cta .btn {
    width: 100%;
    padding: 16px 28px;
    font-size: 16px;
}

/* ─── Related Items ────────────────────────────── */

.related-items {
    padding: 48px 0;
    border-top: 1px solid var(--bw-border);
}

/* ─── Search Page ──────────────────────────────── */

.search-header {
    padding: 32px 0;
}

.search-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--bw-black);
    margin-bottom: 8px;
}

.search-header .results-info {
    font-size: 15px;
    color: var(--bw-medium-gray);
    margin-bottom: 16px;
}

.search-header .search-form {
    max-width: 480px;
    margin: 0;
}

/* ─── Empty State ──────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-state svg {
    margin: 0 auto 16px;
}

.empty-state h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--bw-dark-gray);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    color: var(--bw-medium-gray);
    margin-bottom: 20px;
}

/* ─── Footer ───────────────────────────────────── */

.site-footer {
    background: var(--bw-black);
    color: #999;
    padding: 28px 24px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    text-align: center;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.site-footer p {
    font-size: 14px;
}

/* ─── Wishlist Nav Badge ──────────────────────── */

.wishlist-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wishlist-badge-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--bw-gold);
    color: var(--bw-white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}

.mobile-nav-links .wishlist-nav-link {
    color: var(--bw-gold);
    font-weight: 600;
}

/* ─── Wishlist Heart on Cards ────────────────── */

.catalog-card {
    position: relative;
}

.wishlist-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, transform 0.15s;
    padding: 0;
}

@media (hover: hover) {
    .wishlist-heart:hover {
        background: var(--bw-white);
        transform: scale(1.1);
    }
}

.wishlist-heart svg {
    width: 18px;
    height: 18px;
    stroke: var(--bw-medium-gray);
    fill: none;
    transition: stroke 0.2s, fill 0.2s;
}

.wishlist-heart.in-wishlist svg {
    stroke: var(--bw-gold);
    fill: var(--bw-gold);
}

/* ─── Item Page Wishlist Button ──────────────── */

.item-cta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.wishlist-qty-input {
    width: 64px;
    padding: 14px 8px;
    font-size: 16px;
    border: 1px solid var(--bw-border);
    border-radius: 8px;
    text-align: center;
    font-family: inherit;
    min-height: 44px;
    -webkit-appearance: none;
}

.wishlist-qty-input:focus {
    border-color: var(--bw-gold);
    outline: none;
}

.btn-wishlist {
    flex: 1;
    padding: 16px 28px;
    font-size: 16px;
    background: var(--bw-gold);
    color: var(--bw-white);
    border: 2px solid var(--bw-gold);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
    min-height: 44px;
}

@media (hover: hover) {
    .btn-wishlist:hover {
        background: var(--bw-gold-hover);
        border-color: var(--bw-gold-hover);
    }
}

.btn-wishlist.in-wishlist {
    background: transparent;
    color: var(--bw-gold);
    border-color: var(--bw-gold);
}

@media (hover: hover) {
    .btn-wishlist.in-wishlist:hover {
        background: rgba(212,175,55,0.08);
    }
}

/* ─── Toast Notification ─────────────────────── */

.wishlist-toast {
    position: fixed;
    bottom: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bw-black);
    color: var(--bw-white);
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: calc(100vw - 32px);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

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

.wishlist-toast a {
    color: var(--bw-gold);
    font-weight: 600;
    margin-left: 8px;
}

@media (hover: hover) {
    .wishlist-toast a:hover {
        text-decoration: underline;
    }
}

/* ─── Wishlist Page ──────────────────────────── */

.wishlist-section {
    padding: 32px 0 64px;
}

.wishlist-empty {
    text-align: center;
    padding: 80px 24px;
}

.wishlist-empty svg {
    margin-bottom: 16px;
}

.wishlist-empty h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--bw-dark-gray);
    margin-bottom: 8px;
}

.wishlist-empty p {
    font-size: 15px;
    color: var(--bw-medium-gray);
    margin-bottom: 24px;
}

.wishlist-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.wishlist-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bw-medium-gray);
    padding: 12px 16px;
    border-bottom: 2px solid var(--bw-border);
}

.wishlist-table td {
    padding: 16px;
    border-bottom: 1px solid var(--bw-border);
    vertical-align: middle;
}

.wishlist-item-image {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bw-light-gray);
}

.wishlist-item-name {
    font-weight: 600;
    color: var(--bw-dark-gray);
}

.wishlist-item-name a {
    color: inherit;
}

@media (hover: hover) {
    .wishlist-item-name a:hover {
        color: var(--bw-gold);
    }
}

.wishlist-qty {
    width: 60px;
    padding: 8px;
    font-size: 14px;
    border: 1px solid var(--bw-border);
    border-radius: 6px;
    text-align: center;
    font-family: inherit;
    min-height: 44px;
}

.wishlist-qty:focus {
    border-color: var(--bw-gold);
    outline: none;
}

.wishlist-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--bw-medium-gray);
    cursor: pointer;
    padding: 4px 8px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) {
    .wishlist-remove:hover {
        color: #dc2626;
    }
}

.wishlist-subtotal {
    background: var(--bw-light-gray);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.wishlist-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--bw-black);
    margin-bottom: 12px;
}

.wishlist-subtotal-note {
    font-size: 13px;
    color: var(--bw-medium-gray);
    line-height: 1.5;
    margin-bottom: 12px;
}

.wishlist-continue {
    font-size: 14px;
    color: var(--bw-gold);
    font-weight: 500;
}

@media (hover: hover) {
    .wishlist-continue:hover {
        text-decoration: underline;
        color: var(--bw-gold-hover);
    }
}

/* ─── Wishlist Mobile Cards ──────────────────── */

.wishlist-cards {
    display: none;
}

.wishlist-card {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--bw-border);
    align-items: center;
}

.wishlist-card-image {
    width: 72px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bw-light-gray);
    flex-shrink: 0;
}

.wishlist-card-info {
    flex: 1;
    min-width: 0;
}

.wishlist-card-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--bw-dark-gray);
    margin-bottom: 4px;
}

.wishlist-card-name a {
    color: inherit;
}

.wishlist-card-price {
    font-size: 13px;
    color: var(--bw-gold);
    font-weight: 600;
}

.wishlist-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ─── Quote Request Form ─────────────────────── */

.quote-form-section {
    border-top: 1px solid var(--bw-border);
    padding-top: 40px;
    margin-top: 8px;
}

.quote-form-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--bw-black);
    margin-bottom: 8px;
}

.quote-form-section .form-subtext {
    font-size: 15px;
    color: var(--bw-medium-gray);
    margin-bottom: 28px;
}

.quote-form {
    max-width: 640px;
}

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

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bw-dark-gray);
    margin-bottom: 6px;
}

.form-label .required {
    color: #dc2626;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid var(--bw-border);
    border-radius: 8px;
    font-family: inherit;
    background: var(--bw-white);
    color: var(--bw-dark-gray);
    min-height: 44px;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--bw-gold);
    outline: none;
}

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

.form-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    display: none;
}

.form-input.error,
.form-select.error {
    border-color: #dc2626;
}

.btn-submit-quote {
    display: block;
    width: 100%;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    background: var(--bw-gold);
    color: var(--bw-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    min-height: 44px;
    margin-top: 8px;
}

@media (hover: hover) {
    .btn-submit-quote:hover {
        background: var(--bw-gold-hover);
    }
}

.btn-submit-quote:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─── Quote Success State ────────────────────── */

.quote-success {
    text-align: center;
    padding: 48px 24px;
    border: 2px solid #bbf7d0;
    background: #f0fdf4;
    border-radius: 12px;
}

.quote-success svg {
    margin-bottom: 12px;
}

.quote-success h2 {
    font-size: 22px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 8px;
}

.quote-success p {
    font-size: 15px;
    color: var(--bw-medium-gray);
    margin-bottom: 6px;
    line-height: 1.6;
}

.quote-ref {
    font-size: 14px;
    font-weight: 600;
    color: var(--bw-dark-gray);
    background: var(--bw-light-gray);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    margin: 12px 0 20px;
}

.quote-success-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
}

.quote-success-links a {
    color: var(--bw-gold);
    font-weight: 500;
    font-size: 14px;
}

@media (hover: hover) {
    .quote-success-links a:hover {
        text-decoration: underline;
    }
}

/* ─── 404 / Error ──────────────────────────────── */

.error-page {
    text-align: center;
    padding: 80px 24px;
}

.error-page h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--bw-gold);
    margin-bottom: 16px;
}

.error-page p {
    font-size: 17px;
    color: var(--bw-medium-gray);
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .item-layout {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

}

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

    .wishlist-table {
        display: none;
    }

    .wishlist-cards {
        display: block;
    }

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

    .item-cta-row {
        flex-direction: column;
    }

    .wishlist-qty-input {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .header-inner {
        height: 64px;
        padding: 0 24px;
    }

    .catalog-hero {
        padding: 9px 16px;
    }

    .catalog-hero h1 {
        font-size: 28px;
    }

    .search-form {
        flex-direction: column;
        gap: 8px;
    }

    .search-input {
        border-right: 1px solid var(--bw-border);
        border-radius: 8px;
    }

    .search-btn {
        border-radius: 8px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .item-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .item-image-wrapper {
        position: static;
    }

    .item-info h1 {
        font-size: 24px;
    }

    .item-price {
        font-size: 20px;
    }

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

    .container {
        padding: 0 16px;
    }

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

    .category-header h1 {
        font-size: 26px;
    }

    .subcategory-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .subcategory-chip {
        font-size: 13px;
        padding: 10px 14px;
        min-height: 44px;
    }

    .back-chip {
        font-size: 13px;
        padding: 10px 14px;
        min-height: 44px;
    }

    .breadcrumb a {
        padding: 8px 2px;
        display: inline-block;
    }

    .item-category-link {
        padding: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .wishlist-continue {
        padding: 12px 0;
        display: inline-block;
    }

    .quote-success-links a {
        padding: 10px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .featured-card {
        flex: 0 0 220px;
    }

}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .items-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .card-image {
        height: 180px;
    }

    .card-body {
        padding: 10px 12px 12px;
    }

    .card-name {
        font-size: 14px;
    }

    .card-price {
        font-size: 13px;
    }

    .category-card-image {
        height: 120px;
    }

    .item-specs {
        grid-template-columns: 1fr;
    }

    .category-search-wrap {
        max-width: 100%;
    }

    .sort-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sort-select {
        width: 100%;
    }

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

/* ─── SEO Intro Block ─────────────────────────── */
.category-seo-intro {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 20px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}
.category-seo-intro h2 {
    font-family: 'Cormorant Garamond', serif;
    color: #1a365d;
    font-size: 20px;
    margin-bottom: 12px;
}
.seo-intro-short { display: none; }
.seo-intro-toggle {
    display: none;
    background: none;
    border: none;
    color: #D4AF37;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 8px;
}
@media (max-width: 768px) {
    .seo-intro-collapsed .seo-intro-short { display: inline; }
    .seo-intro-collapsed .seo-intro-full { display: none; }
    .seo-intro-toggle { display: inline-block; }
}

/* ─── FAQ Section ─────────────────────────────── */
.category-faq {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
}
.category-faq h2 {
    font-family: 'Cormorant Garamond', serif;
    color: #1a365d;
    font-size: 22px;
    margin-bottom: 16px;
}
.category-faq details {
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 0;
}
.category-faq summary {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a365d;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-faq summary::-webkit-details-marker { display: none; }
.category-faq summary::after {
    content: '+';
    font-size: 20px;
    color: #D4AF37;
    flex-shrink: 0;
    margin-left: 12px;
}
.category-faq details[open] summary::after {
    content: '\2212';
}
.category-faq details p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-top: 12px;
    padding-left: 0;
}
