/* ==========================================================================
   PERFOMAX – Wix-style faithful clone
   ========================================================================== */

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f7f7f7;
    --color-text: #000000;
    --color-text-muted: #555555;
    --color-text-light: #888888;
    --color-accent: #d92027;
    --color-border: #e6e6e6;
    --color-dark: #0f0f0f;
    --color-highlight: #FFC107;

    --font-body: "Avenir Next", "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-heading: "Avenir Next", "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;

    --container: 980px;
    --container-wide: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 18px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    width: clamp(140px, 18vw, 210px);
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 36px;
    align-items: center;
}

.main-nav a {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #000;
    padding: 6px 0;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-highlight);
    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: #000;
    font-weight: 700;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icons a,
.header-icons button:not(.menu-toggle) {
    color: #000;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    position: relative;
}

.header-icons a:hover,
.header-icons button:not(.menu-toggle):hover {
    color: var(--color-accent);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #000;
    transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Product filter bar ---------- */
.product-filter-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 14px 24px;
    position: sticky;
    top: calc(clamp(36px, 5vw, 50px) + 37px);
    z-index: 99;
}

.filter-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.filter-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--color-highlight);
    background: rgba(255, 193, 7, 0.1);
    color: #000;
}

.filter-btn.active {
    background: var(--color-highlight);
    color: #000;
    font-weight: 700;
    border-color: var(--color-highlight);
}

.filter-search {
    position: relative;
    min-width: 200px;
}

.filter-search input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid #ddd;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
}

.filter-search input:focus {
    outline: none;
    border-color: #000;
}

.filter-search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.category-section {
    transition: opacity 0.3s ease;
}

.no-results {
    display: none;
    text-align: center;
    padding: 60px 24px;
    color: #999;
    font-size: 15px;
}

.no-results svg {
    margin-bottom: 16px;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Section heading ---------- */
.section-heading {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #000;
    text-align: left;
    margin: 64px 0 32px;
    padding-left: 8px;
}

/* ---------- Products grid ---------- */
.products {
    padding: 0 0 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}

.product-card {
    background: #fff;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card .add-to-cart-wrap,
.product-card .btn-inquiry {
    margin-top: auto;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 14px;
}

.product-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3%;
    background: #ffffff;
    transition: transform 0.3s ease;
    z-index: 1;
}

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

.quick-view {
    display: none;
}

.product-name {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin-bottom: 6px;
    line-height: 1.4;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-name a {
    color: #000;
}

.product-name a:hover {
    color: var(--color-accent);
}

.product-name {
    cursor: default;
}

.product-size {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.product-price-row {
    margin-bottom: 4px;
    font-size: 14px;
}

.price-old {
    color: #999;
    text-decoration: line-through;
    margin-right: 6px;
    font-size: 13px;
}

.price-new {
    color: #000;
    font-weight: 600;
}

.price-tax {
    font-size: 11px;
    color: #888;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    padding: 0 8px;
    text-align: center;
}

.price-inquiry {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-inquiry {
    display: inline-block;
    text-align: center;
    margin-top: auto;
    margin-bottom: 0;
    background: var(--color-accent);
    align-self: center;
}

.btn-inquiry:hover {
    background: #b71c1c;
}

/* ---------- Color swatches ---------- */
.color-swatches {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.variant-picker {
    margin-bottom: 8px;
}

.swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    padding: 0;
    outline: none;
    font-size: 0;
    color: transparent;
}

.swatch:hover {
    transform: scale(1.15);
}

.swatch.active {
    border-color: #000;
    box-shadow: 0 0 0 1px #fff inset;
}

/* Label-style swatches (ECO 2/4) */
.swatch-label {
    width: auto;
    height: auto;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
    background: #f0f0f0 !important;
    border: 1.5px solid #ddd;
    line-height: 1;
}

.swatch-label:hover {
    transform: none;
    border-color: #999;
}

.swatch-label.active {
    background: #000 !important;
    color: #fff;
    border-color: #000;
    box-shadow: none;
}

/* ---------- Product qty selector ---------- */
.add-to-cart-wrap {
    margin-top: auto;
    position: relative;
}

.qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease 3s, opacity 0.2s ease 3s, margin 0.25s ease 3s;
    margin-bottom: 0;
}

.add-to-cart-wrap:hover .qty-selector,
.qty-selector.qty-peek,
.qty-selector:focus-within {
    max-height: 40px;
    opacity: 1;
    margin-bottom: 8px;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.qty-minus { border-radius: 4px 0 0 4px; }
.qty-plus  { border-radius: 0 4px 4px 0; }

.qty-btn:hover { background: #e0e0e0; }

.qty-input {
    width: 40px;
    height: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 0;
    transition: background 0.2s;
    cursor: pointer;
    width: auto;
    min-width: 160px;
}

.btn-add:hover {
    background: var(--color-accent);
}

/* ---------- Customer gallery ---------- */
.gallery-section {
    padding: 24px 0 64px;
}

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

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: opacity 0.25s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover {
    opacity: 0.95;
}

.gallery-placeholder {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

/* ---------- Newsletter ---------- */
.newsletter {
    background: #fff;
    padding: 56px 24px;
    text-align: center;
    border-top: 1px solid #eee;
}

.newsletter h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #000;
}

.newsletter p {
    color: #555;
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #000;
}

.newsletter-form button {
    padding: 12px 24px;
    background: #000;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: var(--color-accent);
}

/* ---------- Footer ---------- */
.site-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 48px 24px 24px;
    color: #555;
    font-size: 13px;
}

.footer-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h5 {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #555;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-contact p {
    margin-bottom: 6px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #888;
    font-size: 12px;
    letter-spacing: 1px;
}

.footer-brand-name {
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
}

.footer-certificate {
    display: flex;
    justify-content: center;
    padding: 24px 0 0;
}

.footer-certificate img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-certificate img:hover {
    opacity: 1;
}

/* ---------- Page hero (Contact) ---------- */
.page-hero {
    background: #fff;
    padding: 60px 24px 32px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #000;
    line-height: 1.4;
}

.page-hero h1 strong {
    font-weight: 700;
    color: var(--color-highlight);
}

/* ---------- About page ---------- */
.about-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 24px;
    text-align: center;
    color: #fff;
}

.about-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.about-hero h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.about-tagline {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.about-section {
    padding: 64px 0;
}

.about-section-alt {
    background: var(--color-bg-alt);
}

.about-section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: #000;
    margin-bottom: 24px;
    text-align: center;
}

.about-block {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.about-block p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* ---------- Authorized distributor grid ---------- */
.distributor-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.distributor-badge {
    display: flex;
    justify-content: center;
}

.distributor-badge img {
    width: 100%;
    max-width: 260px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.distributor-content {
    text-align: left;
}

.distributor-content .about-section-title {
    text-align: left;
    font-size: 26px;
}

.distributor-content p {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 16px;
}

.distributor-content p strong {
    color: #000;
}

@media (max-width: 720px) {
    .distributor-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .distributor-content {
        text-align: center;
    }
    .distributor-content .about-section-title {
        text-align: center;
        font-size: 22px;
    }
    .distributor-badge img {
        max-width: 200px;
    }
}

/* ---------- Rally background section ---------- */
.about-rally {
    position: relative;
    background: url(../images/rally-bg.webp) center center / cover no-repeat;
    margin: 0;
}

.about-rally::before,
.about-rally::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 2;
    pointer-events: none;
}

.about-rally::before {
    top: 0;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.about-rally::after {
    bottom: 0;
    background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.about-rally-overlay {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.65);
    padding: 100px 24px;
}

.about-rally-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 1px;
}

.about-rally-text {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.about-rally-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .about-rally::before,
    .about-rally::after {
        height: 60px;
    }
    .about-rally-overlay {
        padding: 60px 16px;
    }
    .about-rally-title {
        font-size: 22px;
    }
}

.btn-cta {
    display: inline-block;
    background: var(--color-highlight);
    color: #000;
    padding: 14px 36px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 16px;
    transition: background 0.2s;
}

.btn-cta:hover {
    background: #e0a800;
    color: #000;
}

/* ---------- Contact page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    padding: 48px 0 64px;
    align-items: start;
}

.contact-form {
    background: #fff;
}

.contact-form h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 24px;
    color: #000;
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 6px;
    color: #000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

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

.btn-submit {
    background: #000;
    color: #fff;
    padding: 12px 32px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--color-accent);
}

.form-success {
    background: #e7f5e7;
    color: #2a7a2a;
    border: 1px solid #c2e2c2;
    padding: 12px;
    margin-top: 14px;
    font-size: 14px;
    display: none;
}

.form-success.visible {
    display: block;
}

.form-error {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    padding: 12px;
    margin-top: 14px;
    font-size: 14px;
    display: none;
}

.form-error.visible {
    display: block;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.contact-info {
    padding-top: 8px;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 16px;
}

.contact-info-block {
    margin-bottom: 24px;
    font-size: 15px;
    color: #333;
}

.contact-info-block strong {
    display: block;
    color: #000;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-info-block a {
    color: #333;
}

.contact-info-block a:hover {
    color: var(--color-accent);
}

/* ---------- Cart drawer ---------- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: #fff;
    z-index: 200;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.cart-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cart-close:hover {
    color: var(--color-accent);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 16px;
    color: #888;
    font-size: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 50px 1fr 20px;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    align-items: center;
}

.cart-item-thumb {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-variant {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}

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

.cart-item-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 0;
}

.cart-qty-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    background: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.cart-qty-btn:first-child { border-radius: 3px 0 0 3px; }
.cart-qty-btn:last-child  { border-radius: 0 3px 3px 0; }
.cart-qty-btn:hover { background: #e0e0e0; }

.cart-qty-val {
    min-width: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
}

.cart-item-remove {
    color: #888;
    font-size: 18px;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: var(--color-accent);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 16px;
}

.cart-checkout {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    padding: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
}

.cart-checkout:hover {
    background: var(--color-accent);
}

/* ---------- Checkout page ---------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    padding: 48px 0 80px;
}

.checkout-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.checkout-form-wrap select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    appearance: auto;
}

.checkout-agree {
    margin: 20px 0 0;
}

.checkout-agree label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.checkout-agree input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkout-agree a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Order summary sidebar */
.checkout-summary {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 28px;
    align-self: start;
    position: sticky;
    top: 100px;
}

.checkout-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.checkout-line:last-child {
    border-bottom: none;
}

.checkout-line-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.checkout-line-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-line-info {
    flex: 1;
    min-width: 0;
}

.checkout-line-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.checkout-line-variant {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 1px;
}

.checkout-line-qty {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.checkout-line-price {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.checkout-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #eee;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
}

.checkout-row-total {
    font-size: 16px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #222;
}

.btn-gopay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 14px 24px;
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.btn-gopay:hover:not(:disabled) {
    background: #0d47a1;
}

.btn-gopay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-error {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fde8e8;
    color: #c0392b;
    border-radius: 4px;
    font-size: 13px;
}

.checkout-empty {
    text-align: center;
    padding: 24px 0;
    color: #888;
    font-size: 14px;
}

.checkout-empty a {
    color: var(--color-accent);
}

/* Thank-you page */
.thankyou-block {
    text-align: center;
    padding: 60px 24px 80px;
    max-width: 500px;
    margin: 0 auto;
}

.thankyou-icon {
    margin-bottom: 24px;
}

.thankyou-block p {
    font-size: 16px;
    margin-bottom: 12px;
}

.thankyou-detail {
    color: #666;
    font-size: 14px !important;
}

.thankyou-id {
    font-size: 13px !important;
    color: #999;
    margin-top: 16px;
    font-family: monospace;
}

.thankyou-block .btn-cta {
    margin-top: 32px;
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 20px 24px;
}

.cookie-banner-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    color: #ccc;
}

.cookie-banner-text a {
    color: #FFC107;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
}

.cookie-btn-accept {
    background: #FFC107;
    color: #1a1a1a;
}

.cookie-btn-accept:hover {
    background: #ffca28;
}

.cookie-btn-reject {
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
}

.cookie-btn-reject:hover {
    border-color: #888;
    color: #fff;
}

.cookie-btn-settings {
    background: transparent;
    color: #999;
    padding: 10px 12px;
    font-size: 12px;
}

.cookie-btn-settings:hover {
    color: #fff;
}

/* Cookie settings panel */
.cookie-settings {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #333;
}

.cookie-settings.open {
    display: block;
}

.cookie-settings h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 12px;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-name {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
}

.cookie-category-desc {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    margin-left: 16px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: #444;
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #FFC107;
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(18px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-save-wrap {
    margin-top: 14px;
    text-align: right;
}

.cookie-btn-save {
    background: #FFC107;
    color: #1a1a1a;
}

.cookie-btn-save:hover {
    background: #ffca28;
}

@media (max-width: 600px) {
    .cookie-banner-main {
        flex-direction: column;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn-accept,
    .cookie-btn-reject {
        flex: 1;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .main-nav {
        gap: 24px;
    }

    .main-nav a {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 16px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

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

    .about-hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0 60px;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 720px) {
    .product-filter-bar {
        padding: 12px 16px;
    }

    .filter-inner {
        flex-direction: column;
        gap: 10px;
    }

    .filter-categories {
        justify-content: center;
    }

    .filter-search {
        width: 100%;
        min-width: unset;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 10px;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 11px;
        letter-spacing: 1px;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .section-heading {
        font-size: 26px;
        margin: 48px 0 24px;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    .about-hero {
        padding: 50px 24px;
    }

    .about-hero h1 {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .menu-toggle {
        display: flex;
    }

    .header-inner {
        grid-template-columns: auto auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 80px 24px 24px;
        z-index: 150;
        transition: right 0.3s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        align-items: flex-start;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav a {
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    .main-nav a::after {
        display: none;
    }
}

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

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