@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;700&family=DM+Sans:wght@300;400;500&display=swap");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Base Palette */
    --acd-gold: #b8860b;
    --acd-gold-light: #f5e6c0;
    --acd-dark: #1a1a1a;
    --acd-mid: #3d3d3d;
    --acd-steel: #6b7280;
    --acd-smoke: #f4f3f0;
    --acd-white: #ffffff;
    --acd-accent: #c9a84c;
    --acd-badge: #e8f5e9;

    /* Brand Extensions */
    --brand-blue: #2e3d8b;
    --brand-green: #2ba81f;
    --brand-dark: #1a1a1a;
    --brand-charcoal: #2d2d2d;
    --brand-silver: #8a8a8a;
    --brand-light: #f4f3f0;
    --brand-white: #ffffff;
    --brand-accent: #40aae8;

    /* Semantic Assignments */
    --text-primary: var(--brand-dark);
    --text-secondary: var(--brand-silver);
    --border-light: rgba(0, 0, 0, 0.395);
    --section-gap: 80px;
    --r: 8px; /* Fixed missing reference */
    
    font-family: "Poppins", sans-serif;
}

body {
    /* Replaced undefined tertiary var with brand smoke */
    background: var(--acd-smoke);
}

/* ── HERO BANNER ── */
.product-hero {
    /* Mapped hardcoded hexes to brand darks */
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-charcoal) 60%, var(--brand-dark) 100%);
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--acd-gold);
}
.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
}
.product-hero-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--acd-gold);
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.product-hero-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(22px, 4vw, 38px);
    color: var(--acd-gold-light);
    line-height: 1.15;
    margin-bottom: 14px;
    font-weight: 700;
}
.product-hero-title span {
    color: var(--acd-gold);
}
.product-hero-sub {
    font-size: 13px;
    color: var(--brand-silver);
    line-height: 1.6;
    margin-bottom: 22px;
}
.product-hero-ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-primary {
    background: var(--acd-gold);
    color: var(--brand-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
}
.btn-outline {
    background: transparent;
    color: var(--acd-gold-light);
    border: 1px solid var(--acd-steel);
    padding: 10px 20px;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none; 
}
.product-hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.stat-pill {
    text-align: center;
}
.stat-num {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    color: var(--acd-gold-light);
    font-weight: 700;
}
.stat-lbl {
    font-size: 10px;
    color: var(--brand-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.product-hero-right {
    position: relative;
}
.shade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.shade-card {
    border-radius: 6px;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}
.shade-card:hover {
    transform: scale(1.05);
    z-index: 2;
}
.shade-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Uses dark brand rgb for transparency */
    background: rgba(26, 26, 26, 0.65); 
    color: var(--acd-gold-light);
    font-size: 9px;
    padding: 3px 5px;
    text-align: center;
    line-height: 1.2;
}
.shade-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--acd-gold);
    color: var(--brand-dark);
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
}

/* ── CATEGORY NAV ── */
.cat-nav {
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border-light);
    top: 0; 
    z-index: 100;
}

.cat-nav-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 1160px;
    margin: 0 auto;
}
.cat-nav-inner::-webkit-scrollbar {
    display: none;
}
.cat-tab {
    padding: 14px 18px;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cat-tab.active {
    color: var(--acd-gold);
    border-bottom-color: var(--acd-gold);
}
.cat-tab:hover:not(.active) {
    color: var(--text-primary);
    background: var(--acd-smoke);
}
.cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
}
.cat-tab.active .cat-dot {
    opacity: 1;
}
.cat-pin {
    font-size: 9px;
    color: var(--acd-gold);
    background: var(--acd-gold-light);
    padding: 2px 5px;
    border-radius: 10px;
}

/* ── SECTION WRAPPER ── */
.section {
    padding: 32px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.section-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 3px;
}
.see-all {
    font-size: 12px;
    color: var(--acd-gold);
    cursor: pointer;
    border: 0.5px solid var(--acd-accent);
    padding: 5px 12px;
    border-radius: 20px;
    background: transparent;
}

/* ── FILTER BAR ── */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}
.filter-chip {
    border: 0.5px solid var(--border-light);
    background: var(--brand-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
    font-family: "Poppins", sans-serif;
}
.filter-chip:hover {
    border-color: var(--acd-gold);
    color: var(--acd-gold);
}
.filter-chip.on {
    background: var(--acd-gold-light);
    border-color: var(--acd-gold);
    color: var(--brand-dark);
    font-weight: 500;
}
.filter-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 4px;
}

/* ── ACP PRODUCT GRID ── */
.acp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.acp-card {
    background: var(--brand-white);
    border: 1px solid var(--border-light);
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}
.acp-card:hover {
    border-color: var(--brand-green);
}
.acp-thumb {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
}
.acp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.acp-thumb-swatch {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.acp-info {
    padding: 10px 12px;
}
.acp-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.acp-code {
    font-size: 12px;
    color: var(--text-secondary);
}
.acp-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--acd-smoke);
    color: var(--text-secondary);
}
/* Replaced non-brand orange with brand gold logic */
.tag.fr {
    background: var(--acd-gold-light);
    color: var(--acd-gold);
}
.acp-cta {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-top: 0.5px solid var(--border-light);
}
.acp-cta button {
    flex: 1;
    font-size: 10px;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
}
.acp-cta .enq {
    background: var(--brand-green);
    color: var(--brand-white);
    border: none;
    font-weight: 500;
}
.acp-cta .view {
    background: transparent;
    border: 0.5px solid var(--border-light);
    color: var(--text-secondary);
}
.featured-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--acd-gold);
    color: var(--brand-dark);
    font-size: 8px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 10px;
}

/* ── CATEGORY MODULE GRID ── */
.cat-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.cat-module {
    background: var(--brand-white);
    border: 0.5px solid var(--border-light);
    border-radius: var(--r);
    padding: 18px;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
}
.cat-module:hover {
    border-color: var(--acd-gold);
}
.cat-module.disabled {
    opacity: 0.4;
}
.cat-module.disabled::after {
    content: "Unavailable";
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 9px;
    background: var(--acd-smoke);
    color: var(--text-secondary);
    padding: 2px 7px;
    border-radius: 10px;
}
.cat-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}
.cat-m-title {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.cat-m-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}
.cat-m-cta {
    font-size: 11px;
    color: var(--acd-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── TRUST BAR ── */
.trust-bar {
    background: var(--brand-blue);
    padding: 24px 14px;
}
.trust-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.trust-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-charcoal);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.trust-text {
    font-size: 11px;
    color: var(--brand-light);
    line-height: 1.4;
}
.trust-text strong {
    display: block;
    color: var(--acd-gold-light);
    font-size: 12px;
    font-weight: 500;
}

/* ── PREMIUM PRODUCT MODAL ── */
.modal-overlay {
    position: fixed;
    inset: 0; 
    background: rgba(26, 26, 26, 0.8); /* Replaced raw black with brand-dark */
    backdrop-filter: blur(8px); 
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    padding: 20px; 
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--brand-dark);
    border: 1px solid var(--acd-mid);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh; 
    position: relative;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* The Glassmorphism Close Button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(61, 61, 61, 0.6); /* Based on acd-mid */
    backdrop-filter: blur(8px);
    border: 1px solid var(--acd-steel);
    color: var(--brand-white);
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #c94c4c;
    border-color: #e25555;
    transform: rotate(90deg);
}

/* ── RESPONSIVE LAYOUT LOGIC ── */

.modal-body {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto; 
    scrollbar-width: none; 
}
.modal-body::-webkit-scrollbar {
    display: none;
}

.modal-image {
    width: 100%;
    height: 280px; 
    flex-shrink: 0;
    background: var(--acd-mid);
}

.modal-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modal-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(20px, 4vw, 28px); 
    font-weight: 700;
    color: var(--brand-white);
    margin: 0 0 6px;
    line-height: 1.2;
}

.modal-code {
    font-size: 12px;
    color: var(--brand-green); 
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.modal-desc {
    font-size: 14px;
    color: var(--brand-silver);
    line-height: 1.7;
    margin-bottom: 32px;
}

.modal-actions {
    display: flex;
    /* flex-direction: column;  */
    gap: 12px;
    margin-top: auto; 
}

.modal-btn-primary,
.modal-btn-secondary {
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

.modal-btn-primary {
    background: var(--brand-green);
    color: var(--brand-light);
}

.modal-btn-primary:hover {
    background: #50a65d;
    transform: translateY(-2px);
}

.modal-btn-secondary {
    background: transparent;
    color: var(--brand-white);
    border: 1px solid var(--acd-steel);
}

.modal-btn-secondary:hover {
    background: var(--acd-mid);
    border-color: var(--brand-white);
}

/* ── RESOURCES ROW ── */
.resources-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.res-card {
    background: var(--brand-white);
    border: 0.5px solid var(--border-light);
    border-radius: var(--r);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.res-card:hover {
    border-color: var(--acd-gold);
}
.res-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--acd-smoke);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.res-info {
    flex: 1;
    min-width: 0;
}
.res-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}
.res-sub {
    font-size: 10px;
    color: var(--text-secondary);
}
.res-dl {
    font-size: 11px;
    color: var(--acd-gold);
}

/* ── STICKY CTA ── */
.sticky-cta {
    position: sticky;
    bottom: 0;
    z-index: 200;
    background: var(--brand-white);
    border-top: 0.5px solid var(--border-light);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.sticky-left {
    font-size: 12px;
    color: var(--text-secondary);
}
.sticky-left strong {
    color: var(--text-primary);
    font-weight: 500;
    display: block;
    font-size: 13px;
}
.sticky-btns {
    display: flex;
    gap: 8px;
}

/* ── DEALER TOGGLE PANEL ── */
.dealer-panel {
    background: var(--acd-smoke);
    border: 0.5px dashed var(--acd-steel);
    border-radius: var(--r);
    padding: 16px 18px;
    margin-bottom: 20px;
}
.dealer-panel-title {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 500;
}
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 0.5px solid var(--border-light);
}
.toggle-row:last-child {
    border-bottom: none;
}
.toggle-label {
    font-size: 12px;
    color: var(--text-primary);
}
.toggle-switch {
    width: 32px;
    height: 18px;
    border-radius: 9px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle-switch.on {
    background: var(--acd-gold);
}
.toggle-switch.off {
    background: var(--border-light);
}
.toggle-knob {
    width: 14px;
    height: 14px;
    background: var(--brand-white);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    transition: left 0.2s;
}
.toggle-switch.on .toggle-knob {
    left: 16px;
}
.toggle-switch.off .toggle-knob {
    left: 2px;
}
.dealer-note {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ── ENQUIRY FORM ── */
.enquiry-section {
    background: var(--brand-dark);
    padding: 32px 20px;
}
.enq-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.enq-left {
    color: var(--acd-gold-light);
}
.enq-title {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.enq-sub {
    font-size: 12px;
    color: var(--brand-silver);
    line-height: 1.6;
    margin-bottom: 20px;
}
.enq-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.enq-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--brand-silver);
}
.enq-contact-icon {
    font-size: 14px;
}
.enq-form {
    background: var(--brand-charcoal);
    border-radius: var(--r);
    padding: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.form-label {
    font-size: 11px;
    color: var(--brand-silver);
}
.form-input {
    background: var(--acd-mid);
    border: 0.5px solid var(--acd-steel);
    border-radius: 4px;
    padding: 9px 12px;
    color: var(--acd-gold-light);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
}
.form-input::placeholder {
    color: var(--brand-silver);
}
.form-select {
    background: var(--acd-mid);
    border: 0.5px solid var(--acd-steel);
    border-radius: 4px;
    padding: 9px 12px;
    color: var(--acd-gold-light);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    width: 100%;
}
.form-submit {
    width: 100%;
    background: var(--acd-gold);
    color: var(--brand-dark);
    border: none;
    padding: 11px;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    margin-top: 6px;
}