/* ==========================================================================
   VELIYATH GOLD & DIAMONDS
   PRODUCTS PAGE — REFINED LUXURY EDITORIAL STYLING
   ========================================================================== */


/* ==========================================================================
   PAGE BASE & RESETS
   ========================================================================== */

.products-page,
.products-page *,
.products-page *::before,
.products-page *::after {
    box-sizing: border-box;
}

.products-page {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--color-text, #25211f);
    background: var(--color-background-soft, #faf9f7);
    overflow: hidden;
}

.products-page a {
    color: inherit;
    text-decoration: none;
}

.products-page img {
    max-width: 100%;
    height: auto;
}

.products-page .container {
    width: min(1280px, calc(100% - clamp(32px, 5vw, 80px)));
    margin-inline: auto;
}


/* ==========================================================================
   SHARED TYPOGRAPHY
   ========================================================================== */

.products-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 18px;
    color: var(--color-gold-dark, #92742c);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(10px, 0.8vw, 11.5px);
    font-weight: var(--font-weight-semibold, 600);
    line-height: 1.4;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.products-section-eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    flex: 0 0 32px;
    background: currentColor;
    opacity: 0.8;
}


/* ==========================================================================
   PRODUCTS HERO (OBSIDIAN NOIR WITH AMBIENT GOLD ILLUMINATION)
   ========================================================================== */

.products-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    color: var(--color-text-white, #ffffff);
    background:
        radial-gradient(circle at 84% 25%, rgba(216, 184, 117, 0.18) 0%, transparent 26%),
        radial-gradient(circle at 72% 85%, rgba(125, 24, 54, 0.22) 0%, transparent 32%),
        linear-gradient(135deg, #18070d 0%, #2f0c19 50%, #120509 100%);
    border-bottom: 1px solid rgba(216, 184, 117, 0.32);
    overflow: hidden;
    isolation: isolate;
}

.products-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    pointer-events: none;
}

.products-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    top: 50%;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(216, 184, 117, 0.18);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow:
        0 0 0 32px rgba(216, 184, 117, 0.02),
        0 0 0 64px rgba(216, 184, 117, 0.015);
    pointer-events: none;
}

.products-hero .container {
    position: relative;
    z-index: 2;
}

.products-hero-content {
    width: min(780px, 100%);
    padding: clamp(75px, 8vw, 115px) 0;
}

.products-hero .products-section-eyebrow {
    color: var(--color-gold-light, #c7a85d);
}

.products-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--color-text-white, #ffffff);
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: clamp(38px, 4.8vw, 68px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.products-hero h1 span {
    color: var(--color-gold-light, #c7a85d);
    font-style: italic;
    font-weight: 400;
}

.products-hero p {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(14.5px, 1.05vw, 16.5px);
    font-weight: 400;
    line-height: 1.82;
    text-wrap: pretty;
}


/* ==========================================================================
   COLLECTION NAVIGATION
   ========================================================================== */

.products-navigation {
    position: relative;
    z-index: 20;
    background: var(--color-surface, #ffffff);
    border-bottom: 1px solid var(--color-border, #e4dfd8);
    box-shadow: 0 4px 20px rgba(35, 17, 23, 0.035);
}

.products-navigation-inner {
    display: flex;
    align-items: stretch;
    min-height: 68px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.products-navigation-inner::-webkit-scrollbar {
    display: none;
}

.products-filter-link {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    padding: 0 clamp(16px, 1.8vw, 26px);
    color: var(--color-text-muted, #6f6863);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(11px, 0.8vw, 12.5px);
    font-weight: var(--font-weight-semibold, 600);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.products-filter-link::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 2px;
    background: var(--color-gold, #b08d3c);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-filter-link:hover {
    color: var(--color-primary, #7d1836);
    background: var(--color-background-soft, #faf9f7);
}

.products-filter-link:hover::after,
.products-filter-link.active::after {
    transform: scaleX(1);
}

.products-filter-link.active {
    color: var(--color-primary, #7d1836);
    font-weight: var(--font-weight-bold, 700);
}

/* Subcategory Navigation Row */
.products-navigation-inner[style*="margin-top"] {
    min-height: 54px;
    margin-top: 10px !important;
    border-top: 1px solid var(--color-border-light, #eeeae4);
    background: linear-gradient(90deg, #fbf9f5 0%, #ffffff 50%, #fbf9f5 100%);
    padding-inline: 8px;
}

.products-navigation-inner[style*="margin-top"] .products-filter-link {
    min-height: 54px;
    padding-inline: clamp(14px, 1.4vw, 20px);
    color: var(--color-text-light, #96908a);
    font-size: clamp(10.5px, 0.75vw, 11.5px);
    letter-spacing: 0.12em;
}

.products-navigation-inner[style*="margin-top"] .products-filter-link::after {
    left: 16px;
    right: 16px;
}

.products-navigation-inner[style*="margin-top"] .products-filter-link.active {
    color: var(--color-primary, #7d1836);
    background: rgba(125, 24, 54, 0.035);
}


/* ==========================================================================
   PRODUCTS LISTING
   ========================================================================== */

.products-listing {
    position: relative;
    padding: clamp(75px, 7.5vw, 115px) 0 clamp(85px, 8.5vw, 130px);
    background: var(--color-background-soft, #faf9f7);
}

.products-listing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1100px, 85%);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(176, 141, 60, 0.28),
        transparent
    );
    transform: translateX(-50%);
}

.products-listing-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(40px, 4vw, 54px);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border, #e4dfd8);
}

.products-listing-header > div:first-child {
    min-width: 0;
}

.products-listing-header h2 {
    margin: 0;
    color: var(--color-text-dark, #181514);
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.products-listing-header h2 span {
    color: var(--color-primary, #7d1836);
    font-style: italic;
    font-weight: 400;
}

.products-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: var(--radius-sm, 4px);
    background: var(--color-surface, #ffffff);
    color: var(--color-gold-dark, #92742c);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(10.5px, 0.75vw, 11.5px);
    font-weight: var(--font-weight-semibold, 600);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(25, 18, 14, 0.035);
}


/* ==========================================================================
   PRODUCT GRID & CARDS
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(26px, 2.6vw, 36px);
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    background: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: var(--radius-sm, 4px);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(25, 18, 14, 0.04);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(176, 141, 60, 0.55);
    box-shadow:
        0 16px 45px rgba(45, 19, 29, 0.10),
        0 2px 10px rgba(176, 141, 60, 0.12);
}

/* Card Image & Inset Frame */
.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    background: linear-gradient(135deg, #fbf9f6 0%, #f3eee7 100%);
}

.product-card-image::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    z-index: 2;
    pointer-events: none;
    transition: inset 0.4s ease, border-color 0.3s ease;
}

.product-card:hover .product-card-image::before {
    inset: 10px;
    border-color: rgba(255, 255, 255, 0.85);
}

.product-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15),
        transparent 45%,
        rgba(45, 10, 20, 0.08) 100%
    );
    pointer-events: none;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.06);
}

/* Fallback Placeholder */
.product-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background:
        radial-gradient(circle at center, rgba(176, 141, 60, 0.12), transparent 55%),
        linear-gradient(145deg, #faf7f1 0%, #ece5db 100%);
    color: var(--color-primary, #7d1836);
}

.product-card-placeholder span {
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 500;
    letter-spacing: 0.12em;
}

.product-card-placeholder small {
    color: var(--color-gold-dark, #92742c);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(9.5px, 0.75vw, 11px);
    font-weight: var(--font-weight-semibold, 600);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* Featured Badge */
.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    color: #ffffff;
    background: rgba(125, 24, 54, 0.94);
    border: 1px solid rgba(216, 184, 117, 0.45);
    border-radius: var(--radius-sm, 3px);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(9px, 0.7vw, 10.5px);
    font-weight: var(--font-weight-semibold, 600);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(47, 12, 25, 0.25);
    backdrop-filter: blur(4px);
}

/* Card Content Details */
.product-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 24px 26px 26px;
    background: var(--color-surface, #ffffff);
}

.product-card-number {
    display: block;
    margin-bottom: 9px;
    color: var(--color-gold-dark, #92742c);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(10.5px, 0.75vw, 11.5px);
    font-weight: var(--font-weight-semibold, 600);
    line-height: 1;
    letter-spacing: 0.18em;
}

.product-card-content h3 {
    width: 100%;
    margin: 0;
    color: var(--color-text-dark, #181514);
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: clamp(20px, 1.55vw, 24px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.015em;
    transition: color 0.25s ease;
}

.product-card:hover .product-card-content h3 {
    color: var(--color-primary, #7d1836);
}

.product-card-content p {
    display: -webkit-box;
    width: 100%;
    margin: 10px 0 20px;
    overflow: hidden;
    color: var(--color-text-muted, #6f6863);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(13px, 0.95vw, 14.5px);
    font-weight: 400;
    line-height: 1.68;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--color-primary, #7d1836);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(11px, 0.8vw, 12.5px);
    font-weight: var(--font-weight-semibold, 600);
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-card-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 24px;
    height: 1px;
    background: var(--color-gold, #b08d3c);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card-link::after {
    width: 100%;
}

.product-card-link > span {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    color: var(--color-gold-dark, #92742c);
    transition: transform 0.25s ease;
}

.product-card:hover .product-card-link > span {
    transform: translateX(4px);
}


/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.products-empty {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 70px 30px;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(176, 141, 60, 0.08), transparent 50%),
        var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e4dfd8);
    border-radius: var(--radius-sm, 4px);
    overflow: hidden;
}

.products-empty::before,
.products-empty::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(176, 141, 60, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.products-empty::before {
    width: 360px;
    height: 360px;
    top: -240px;
    left: -120px;
}

.products-empty::after {
    width: 300px;
    height: 300px;
    right: -120px;
    bottom: -200px;
}

.products-empty .products-section-eyebrow {
    position: relative;
    z-index: 2;
    justify-content: center;
}

.products-empty h2 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--color-text-dark, #181514);
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 500;
    line-height: 1.15;
}

.products-empty p {
    position: relative;
    z-index: 2;
    width: min(600px, 100%);
    margin: 16px auto 28px;
    color: var(--color-text-muted, #6f6863);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(14px, 1vw, 15.5px);
    line-height: 1.75;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.products-page .btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm, 4px);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(11px, 0.8vw, 12.5px);
    font-weight: var(--font-weight-semibold, 600);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.products-page .btn-primary {
    color: #ffffff;
    background: var(--color-primary, #7d1836);
    border-color: var(--color-primary, #7d1836);
    box-shadow: 0 8px 24px rgba(125, 24, 54, 0.2);
}

.products-page .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--color-primary-dark, #64122b);
    border-color: var(--color-primary-dark, #64122b);
    box-shadow: 0 12px 28px rgba(125, 24, 54, 0.3);
}


/* ==========================================================================
   BRAND STATEMENT (EDITORIAL CLOSE)
   ========================================================================== */

.products-brand {
    position: relative;
    padding: clamp(85px, 8.5vw, 120px) 0;
    color: var(--color-text-white, #ffffff);
    background:
        radial-gradient(circle at 83% 25%, rgba(216, 184, 117, 0.14) 0%, transparent 28%),
        radial-gradient(circle at 17% 82%, rgba(125, 24, 54, 0.28) 0%, transparent 30%),
        linear-gradient(125deg, #1a070e 0%, #3f0d1f 50%, #15050a 100%);
    border-top: 1px solid rgba(216, 184, 117, 0.32);
    overflow: hidden;
}

.products-brand::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    top: -280px;
    right: -130px;
    border: 1px solid rgba(216, 184, 117, 0.18);
    border-radius: 50%;
}

.products-brand::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    left: -160px;
    bottom: -230px;
    border: 1px solid rgba(216, 184, 117, 0.12);
    border-radius: 50%;
}

.products-brand .container {
    position: relative;
    z-index: 2;
}

.products-brand-inner {
    width: min(780px, 100%);
    margin-inline: auto;
    text-align: center;
}

.products-brand-inner a {
    margin-top: 15px;
}


.products-brand .products-section-eyebrow {
    color: var(--color-gold-light, #c7a85d);
}

.products-brand h2 {
    margin: 0;
    color: var(--color-text-white, #ffffff);
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.products-brand h2 span {
    color: var(--color-gold-light, #c7a85d);
    font-style: italic;
    font-weight: 400;
}

.products-brand p {
    max-width: 680px;
    margin: 22px auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: clamp(14.5px, 1.05vw, 16.5px);
    line-height: 1.85;
    text-wrap: pretty;
}


/* ==========================================================================
   CONSOLIDATED RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (min-width: 1400px) {
    .products-grid {
        gap: 38px 32px;
    }
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 20px;
    }

    .product-card-content {
        padding: 22px 22px 24px;
    }
}

@media (max-width: 768px) {
    .products-listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
        padding-bottom: 20px;
    }

    .products-count {
        margin-top: 4px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .product-card-content {
        padding: 18px 16px 20px;
    }

    .product-card-image {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 520px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card-image {
        aspect-ratio: 16 / 13;
    }

    .product-card-content p {
        -webkit-line-clamp: 3;
    }
}


/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */

.products-filter-link:focus-visible,
.product-card:focus-visible,
.products-page .btn:focus-visible {
    outline: 2px solid var(--color-gold, #b08d3c);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .products-filter-link,
    .products-filter-link::after,
    .product-card,
    .product-card-image img,
    .product-card-content h3,
    .product-card-link > span,
    .products-page .btn {
        transition: none !important;
    }

    .product-card:hover {
        transform: none !important;
    }

    .product-card:hover .product-card-image img {
        transform: none !important;
    }
}