/* ==========================================================================
   Rangoli Boutique — Ethnic Minimalist Design System
   ========================================================================== */

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

:root {
    /* Palette — warm earth tones with gold accent */
    --cream:        #faf6f1;
    --ivory:        #f5efe7;
    --sand:         #ebe3d7;
    --warm-grey:    #d4cbc0;
    --taupe:        #9a8f82;
    --earth:        #6b5e52;
    --charcoal:     #3a322b;
    --deep:         #2a231e;

    --burgundy:     #7a3b3f;
    --burgundy-lt:  #944a4f;
    --burgundy-dk:  #612e31;
    --gold:         #b89a5a;
    --gold-lt:      #d4b978;
    --gold-muted:   #c4a96a;

    --whatsapp:     #25d366;
    --whatsapp-dk:  #1ebe57;
    --sold:         #8b3a3a;
    --white:        #ffffff;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container:    1120px;
    --gap:          1.5rem;
    --radius:       4px;
    --radius-lg:    8px;
}

/* --- Base --- */
body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: var(--charcoal);
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a { color: var(--burgundy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--burgundy-dk); }

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

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

/* ==========================================================================
   Top Accent Line
   ========================================================================== */
.top-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--gold-muted), var(--burgundy), var(--gold-muted));
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: var(--cream);
    padding: 1.75rem 0 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--sand);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--burgundy);
    text-decoration: none;
}
.brand:hover { color: var(--burgundy-dk); }

.brand-ornament {
    color: var(--gold);
    display: flex;
    align-items: center;
}

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

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--burgundy);
}

.brand-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-top: 0.2rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--earth);
    transition: color 0.2s;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}
.nav-link:hover,
.nav-link.active {
    color: var(--burgundy);
    border-bottom-color: var(--gold);
}

.nav-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--warm-grey);
}

/* ==========================================================================
   Catalog Page
   ========================================================================== */
.catalog {
    padding: 2.5rem 0 3rem;
}

.catalog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.catalog-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--deep);
    letter-spacing: 0.02em;
}

.catalog-subtitle {
    font-size: 0.85rem;
    color: var(--taupe);
    margin-top: 0.35rem;
    font-weight: 300;
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

/* --- Filter Bar --- */
.filter-bar {
    background: var(--ivory);
    border: 1px solid var(--sand);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 2.5rem;
}

.filter-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 120px;
}

.filter-item--price {
    min-width: 180px;
}

.filter-item label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 0.3rem;
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--warm-grey);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-family: var(--font-body);
    background: var(--white);
    color: var(--charcoal);
    transition: border-color 0.2s;
}

.filter-item select:focus,
.filter-item input:focus {
    outline: none;
    border-color: var(--gold);
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.price-range-inputs input { flex: 1; }

.range-sep {
    color: var(--warm-grey);
    font-size: 0.85rem;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-filter {
    padding: 0.5rem 1.5rem;
    background: var(--burgundy);
    color: var(--white);
    border: 1px solid var(--burgundy);
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-filter:hover {
    background: var(--burgundy-dk);
    border-color: var(--burgundy-dk);
}

.btn-clear-link {
    font-size: 0.75rem;
    color: var(--taupe);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.75rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--charcoal);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--sand);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(42, 35, 30, 0.08);
    color: var(--charcoal);
}

.card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--ivory);
}

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

.product-card:hover .card-image img {
    transform: scale(1.03);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sand), var(--ivory));
}

.badge-sold {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.2rem 0.75rem;
    background: var(--sold);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
}

.card-body {
    padding: 1rem 1.1rem 1.25rem;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.card-id {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-transform: uppercase;
}

.card-new {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--burgundy);
    border: 1px solid var(--burgundy);
    padding: 0.05rem 0.4rem;
    border-radius: 2px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--deep);
}

.card-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.card-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--deep);
}

.card-usd {
    font-size: 0.72rem;
    color: var(--taupe);
}

/* --- Empty State --- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
}

.empty-icon { color: var(--warm-grey); margin-bottom: 1rem; }

.empty-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--earth);
    margin-bottom: 0.5rem;
}

.empty-hint {
    font-size: 0.85rem;
    color: var(--taupe);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 0 1rem;
}

.page-btn {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--burgundy);
    padding: 0.4rem 1rem;
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.page-btn:hover {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.page-btn--disabled {
    color: var(--warm-grey);
    pointer-events: none;
}

.page-info {
    font-size: 0.8rem;
    color: var(--taupe);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Product Detail Page (PDP)
   ========================================================================== */

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 1.25rem 0;
    font-size: 0.75rem;
    color: var(--taupe);
    letter-spacing: 0.04em;
}

.breadcrumb a { color: var(--earth); }
.breadcrumb a:hover { color: var(--burgundy); }
.breadcrumb span { margin: 0 0.35rem; }

/* --- PDP Layout --- */
.pdp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    padding-bottom: 3rem;
    align-items: start;
}

/* --- Gallery --- */
.gallery-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ivory);
    border: 1px solid var(--sand);
}

.gallery-img {
    width: 100%;
    display: block;
}

.gallery-sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 35, 30, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-sold-overlay span {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 0.5rem 2rem;
}

.gallery-toggle {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.toggle-btn {
    flex: 0 0 72px;
    border: 2px solid var(--sand);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    padding: 0;
    transition: border-color 0.2s;
    text-align: center;
}

.toggle-btn:hover { border-color: var(--gold); }
.toggle-btn.active { border-color: var(--gold); }

.toggle-btn img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.toggle-btn span {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--taupe);
    padding: 0.25rem 0;
    font-weight: 500;
}

.toggle-btn.active span { color: var(--gold); }

/* --- PDP Details --- */
.pdp-details {
    padding-top: 0.5rem;
}

.pdp-header {
    margin-bottom: 1rem;
}

.pdp-id {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
    padding: 0.15rem 0.6rem;
    border: 1px solid var(--gold-lt);
    border-radius: 2px;
}

.pdp-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--deep);
    margin-top: 0.5rem;
}

.pdp-description {
    color: var(--earth);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.pdp-divider {
    height: 1px;
    background: var(--sand);
    margin: 1.25rem 0;
}

/* --- Price --- */
.pdp-price {
    margin-bottom: 1rem;
}

.pdp-price-inr {
    display: block;
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--deep);
    line-height: 1.2;
}

.pdp-price-usd {
    display: block;
    font-size: 0.8rem;
    color: var(--taupe);
    margin-top: 0.15rem;
    font-style: italic;
    font-family: var(--font-display);
}

/* --- Sold Banner --- */
.pdp-sold-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ivory);
    border: 1px solid var(--sand);
    color: var(--sold);
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* --- Variants --- */
.pdp-variants {
    margin: 1.25rem 0;
}

.variant-group {
    margin-bottom: 1rem;
}

.variant-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 0.5rem;
}

.variant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.variant-chip {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--warm-grey);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.8rem;
    font-family: var(--font-body);
    color: var(--charcoal);
    transition: all 0.2s;
}

.variant-chip:hover {
    border-color: var(--gold);
    color: var(--deep);
}

.variant-chip.active {
    border-color: var(--burgundy);
    background: var(--burgundy);
    color: var(--white);
}

/* --- Tags --- */
.pdp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 1rem 0;
}

.ptag {
    padding: 0.15rem 0.55rem;
    border-radius: 2px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    background: var(--ivory);
    color: var(--earth);
    border: 1px solid var(--sand);
}

.ptag--cat {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.ptag--cat:hover {
    background: var(--burgundy-dk);
    color: var(--white);
}

/* --- WhatsApp Button --- */
.wa-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: var(--radius-lg);
    transition: background 0.2s, transform 0.15s;
    margin: 1.25rem 0;
}

.wa-btn:hover {
    background: var(--whatsapp-dk);
    color: var(--white);
    transform: translateY(-1px);
}

.wa-icon {
    flex-shrink: 0;
}

.wa-text {
    display: flex;
    flex-direction: column;
}

.wa-label {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.wa-hint {
    font-size: 0.72rem;
    opacity: 0.85;
    font-weight: 300;
}

/* --- Shipping Note --- */
.pdp-shipping {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: var(--ivory);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: var(--earth);
    line-height: 1.5;
}

.pdp-shipping svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--gold);
}

.shipping-fine {
    font-size: 0.72rem;
    color: var(--taupe);
}

/* ==========================================================================
   Instagram Section
   ========================================================================== */
.insta-section {
    margin-top: 5rem;
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--sand);
}

.insta-header {
    text-align: center;
    margin-bottom: 3rem;
}

.insta-ornament {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.insta-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--deep);
    letter-spacing: 0.02em;
}

.insta-subtitle { margin-top: 0.3rem; }

.insta-handle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--burgundy);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.insta-handle:hover { color: var(--burgundy-dk); }

.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.insta-embed-card {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.insta-embed-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Force Instagram embeds to fit within grid columns */
.insta-embed-card iframe,
.insta-embed-card .instagram-media,
.insta-embed-card .instagram-media-rendered {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: none !important;
}

.insta-embed-card blockquote {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
}

.insta-cta {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.insta-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--burgundy);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--burgundy);
    transition: all 0.2s;
}

.insta-follow-btn:hover {
    background: var(--burgundy);
    color: var(--white);
}

.insta-follow-btn svg { flex-shrink: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    margin-top: auto;
    background: var(--ivory);
    border-top: 1px solid var(--sand);
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.divider-line {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--warm-grey);
}

.divider-star {
    color: var(--gold);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--burgundy);
    letter-spacing: 0.04em;
}

.footer-by {
    font-size: 0.75rem;
    color: var(--taupe);
    margin-top: 0.15rem;
    font-style: italic;
    font-family: var(--font-display);
}

.footer-info {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--earth);
    line-height: 1.7;
}

.footer-fine {
    font-size: 0.7rem;
    color: var(--taupe);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .pdp {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .brand-name { font-size: 1.6rem; }

    .catalog-title { font-size: 1.75rem; }

    .filter-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-item { min-width: 100%; }
    .filter-item--price { min-width: 100%; }

    .filter-actions {
        width: 100%;
        justify-content: space-between;
    }

    .btn-filter { flex: 1; }

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

    .card-title { font-size: 1rem; }
    .card-price { font-size: 1rem; }

    .pdp-title { font-size: 1.6rem; }
    .pdp-price-inr { font-size: 1.5rem; }

    .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 480px) {
    .brand-ornament { display: none; }
    .brand-name { font-size: 1.5rem; }

    .header-nav { gap: 1rem; }
    .nav-link { font-size: 0.7rem; }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card-body { padding: 0.75rem 0.85rem 1rem; }
    .card-title { font-size: 1.05rem; }

    .insta-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .insta-title { font-size: 1.4rem; }
}
