/* Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
header {
    background: var(--color-header-footer);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 250;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 2px 20px rgba(0, 180, 216, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand-wrap {
    flex: 1;
}

.site-brand-link {
    text-decoration: none;
    color: white;
}

.site-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
}

.site-logo {
    max-height: 50px;
    width: auto;
    display: block;
}


/* Hamburger - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Header actions (lang switcher + cart) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========== Language Switcher ========== */
.language-switcher {
    position: relative;
}

.language-toggle {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background 0.3s;
    white-space: nowrap;
}

.language-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    max-height: 270px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s;
}

.language-dropdown a:hover {
    background: #f0f0f0;
}

.language-dropdown a.active {
    background: rgba(0, 180, 216, 0.1);
    font-weight: bold;
}

/* ========== Flag images in language switcher ========== */
.lang-flag-img {
    width: 20px;
    height: 15px;
    vertical-align: middle;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    margin-right: 4px;
}

/* ========== Country Suggestion Banner ========== */
.country-banner {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    z-index: 998;
}

.country-banner.show {
    display: block;
}

.country-banner-box {
    background: white;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}

.country-banner-flag {
    display: block;
    margin: 0 auto 0.5rem;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.country-banner-box p {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.country-banner-box p strong {
    font-weight: 700;
}

.country-banner-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.country-banner-btn {
    padding: 0.5rem 1.4rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.country-banner-btn:hover {
    opacity: 0.85;
}

.country-banner-yes {
    background: var(--color-accent);
    color: white;
}

.country-banner-no {
    background: #dc3545;
    color: white;
}

/* ========== Cart Icon ========== */
.cart-icon {
    position: relative;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 6px;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--color-primary);
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ========== Navigation ========== */
nav {
    background: var(--color-secondary);
    padding: 0.75rem 0;
    border-bottom: 2px solid rgba(0, 180, 216, 0.3);
}

nav .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

nav > .container > a {
    color: white;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 4px 0;
}

nav > .container > a:hover {
    color: var(--color-primary);
}

/* Nav dropdown (2-level) */
.nav-dropdown-wrap {
    position: relative;
    margin-right: 25px;
}

.nav-dropdown-wrap > .nav-parent {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 4px 0;
    display: inline-block;
}

.nav-dropdown-wrap > .nav-parent:hover {
    color: var(--color-primary);
}

.nav-label {
    cursor: default;
}

.nav-arrow {
    font-size: 0.65em;
    vertical-align: middle;
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-secondary);
    min-width: 200px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 500;
    padding: 0.5rem 0;
    border-top: 2px solid var(--color-primary);
}

.nav-dropdown-wrap:hover .nav-submenu {
    display: block;
}

.nav-submenu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.nav-submenu a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-primary);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 90;
}

.nav-overlay.show {
    display: block;
}

/* ========== Car Selector ========== */
.car-selector {
    background: var(--color-primary);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.car-selector-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cs-selected-inner {
    gap: 0.75rem;
}

.cs-selected-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.cs-selected-actions {
    display: flex;
    gap: 0.5rem;
}

.cs-selected-name {
    color: white;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-change-btn {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.5);
}

.cs-change-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.28);
    filter: none;
}

.car-selector-label {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    font-family: var(--font-heading);
}

.cs-select {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    color: var(--color-text);
    cursor: pointer;
    min-width: 0;
}

.cs-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cs-button {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: filter 0.2s;
}

.cs-button:hover:not(:disabled) {
    filter: brightness(0.9);
}

.cs-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Main Content ========== */
main {
    min-height: 65vh;
    padding: 0;
    background: white;
}

h1 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    letter-spacing: 0.5px;
}

h2 {
    color: var(--color-secondary);
    margin: 2rem 0 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

h3 {
    color: var(--color-secondary);
    margin-top: 0.75em;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
}


/* ========== Homepage: Hero ========== */
.hero-section {
    position: relative;
    background: var(--color-secondary);
    color: white;
    text-align: center;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(27, 40, 56, 0.7) 100%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-slogan {
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    color: white;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.hero-sub {
    font-size: 1.35rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto;
    opacity: 0.95;
    font-style: italic;
    font-weight: 300;
}

/* ========== Homepage: Trust Bar ========== */
.trust-bar {
    background: var(--color-header-footer);
    color: white;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.trust-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========== Homepage: Benefits ========== */
.benefits-section {
    padding: 4rem 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.benefit-card {
    padding: 0;
    border-radius: 10px;
    background: white;
    border: 1px solid #dce4ec;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.1);
}

/* Banner image at the top of each benefit card */
.benefit-card-image {
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.benefit-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.benefit-card:hover .benefit-card-image img {
    transform: scale(1.03);
}

/* Inner padding for the text area */
.benefit-icon-wrap,
.benefit-card h3,
.benefit-card p {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.benefit-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.benefit-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: #555;
    line-height: 1.75;
    font-size: 1rem;
    padding-bottom: 1.5rem;
}

/* ========== Homepage: Categories ========== */
.home-categories-section {
    padding: 3rem 0 4rem;
    background: var(--color-background);
}

.home-categories-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* ========== Homepage: Guarantee ========== */
.guarantee-section {
    padding: 4rem 0;
    background: white;
}

.guarantee-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 170, 0.3);
    overflow: hidden;
}

.guarantee-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
}

/* Inner padding below the image */
.guarantee-card .guarantee-icon,
.guarantee-card h2,
.guarantee-card p {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.guarantee-icon {
    width: 56px;
    height: 56px;
    color: var(--color-accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.guarantee-card h2 {
    margin: 0 0 1rem 0;
}

.guarantee-card p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #444;
    padding-bottom: 2.5rem;
}

/* ========== Homepage: Reviews ========== */
.reviews-section {
    padding: 4rem 0;
    background: var(--color-background);
}

.reviews-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dce4ec;
    transition: box-shadow 0.3s;
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.08);
}

.review-stars {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #444;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.review-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
}

/* ========== Homepage: Featured Products ========== */
.home-featured-section {
    padding: 3rem 0 4rem;
    background: white;
}

.home-featured-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* ========== Homepage: CTA Bar ========== */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-header-footer) 0%, var(--color-secondary) 50%, var(--color-header-footer) 100%);
    color: white;
    text-align: center;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.cta-headline {
    color: white;
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.cta-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.92;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    margin: 1rem 0;
    color: #666;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--color-link);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ========== Grids ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(var(--products-per-row, 4), 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(var(--products-per-row, 4), 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

/* ========== Cards ========== */
.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    opacity: 0.75;
}

.category-card {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #dce4ec;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.15);
    border-color: var(--color-primary);
}

.product-card-image {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    aspect-ratio: var(--image-ratio, 4/3);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Category card image */
.category-card-image {
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: var(--category-image-ratio, 16/9);
    position: relative;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card-name {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.5) 0%, rgba(0, 180, 216, 0.2) 100%);
    padding: 1rem;
}

.product-card h3 {
    margin: 0.5rem 0 0.25rem 0;
    color: var(--color-secondary);
    font-size: 1rem;
}

.product-card .price,
.product-card .price-block {
    font-size: 1rem;
    margin: 0;
}

.product-card .price-block .price {
    font-size: 1rem;
}

.product-card .price-compare {
    font-size: 0.9rem;
}

/* ========== Price ========== */
.price {
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: bold;
    margin: 0.5rem 0;
}

.price-block {
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.price-compare {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.price-block .price {
    margin: 0;
}


/* ========== Buttons ========== */
.btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
}

.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.3);
}

.btn.add-to-cart {
    background: var(--color-accent);
    font-size: 1.15rem;
    padding: 1rem 2rem;
    color: white;
}

.btn.add-to-cart:hover {
    filter: brightness(0.9);
}

.btn.full-width {
    display: block;
    width: 100%;
}

.btn.btn-secondary {
    background: var(--color-secondary);
}

.btn.btn-secondary:hover {
    background: var(--color-header-footer);
}

.btn.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn.btn-checkout {
    background: var(--color-accent);
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    color: white;
}

.btn.btn-checkout:hover {
    filter: brightness(0.9);
}

/* ========== ATC Feedback ========== */
.atc-feedback {
    text-align: center;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.atc-feedback.show {
    opacity: 1;
}

/* ========== Product Detail ========== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 1.5rem 0;
    align-items: start;
}

.product-detail h1.product-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.product-image .image-placeholder {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    padding: 0;
}

.product-short-desc {
    margin: 1rem 0;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Wiper Size Specs */
.wiper-specs {
    margin: 1rem 0;
    border: 1px solid #dce4ec;
    border-radius: 8px;
    overflow: hidden;
    border-top: 3px solid var(--color-primary);
}

.wiper-specs .spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.wiper-specs .spec-row:last-child {
    border-bottom: none;
}

.wiper-specs .spec-row:nth-child(odd) {
    background: #f8f9fa;
}

.wiper-specs .spec-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.wiper-specs .spec-value {
    font-size: 0.95rem;
    color: #222;
    font-weight: 500;
}

/* Keep .attribute-label for variant selector */
.attribute-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

/* Post-ATC info */
.post-atc-info {
    margin: 1.25rem 0;
    padding: 1rem;
    background: #f0faf0;
    border-radius: 8px;
    border: 1px solid #d4edda;
}

.post-atc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.95rem;
    color: var(--color-text);
}

.post-atc-icon {
    font-size: 1.1rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.badge {
    background: rgba(0, 180, 216, 0.1);
    color: #0096C7;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

/* Full description section (below the grid) */
.product-full-description {
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.product-full-description h2 {
    margin-bottom: 1rem;
}

.description-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.description-content p {
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 2rem;
}

/* ========== Related Products / Categories ========== */
.related-products-section,
.related-categories-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

/* ========== Cart Page ========== */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    align-items: center;
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.cart-item-attr {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 4px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--color-accent);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #ddd;
}

.qty-value {
    width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-line-total {
    font-weight: bold;
    font-size: 1rem;
    color: var(--color-secondary);
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.cart-remove-btn:hover {
    color: #c0392b;
}

.cart-summary {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    max-width: 400px;
    margin-left: auto;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1rem;
}

.cart-total-row {
    border-top: 2px solid #ddd;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 1.15rem;
}

.cart-discount-row {
    color: var(--color-accent);
    font-weight: 600;
}

.checkout-discount-row {
    color: var(--color-accent);
    font-weight: 600;
}

.checkout-grand-total {
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 6px;
    font-size: 1.1rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

.cart-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== Contact Page ========== */
.contact-intro {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-form-section {
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
}

.contact-other-ways {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.contact-method {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.contact-method h3 {
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.contact-method p {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

.business-address {
    margin-top: 1rem;
    font-style: normal;
    line-height: 1.8;
    color: var(--color-text);
}

.contact-commitment,
.contact-privacy {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.contact-commitment p,
.contact-privacy p {
    line-height: 1.8;
    color: #555;
    font-size: 1.02rem;
}

/* ========== Forms (shared by contact + checkout) ========== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.optional-label {
    font-weight: 400;
    color: #999;
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.6;
    display: none;
}

.form-success.show {
    display: block;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row-half > .form-group {
    flex: 1;
}

/* ========== Checkout Page ========== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
}

.checkout-form-section h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

.checkout-form {
    margin-bottom: 1.5rem;
}

.checkout-summary-section {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    position: sticky;
    top: 100px;
}

.checkout-summary-section h2 {
    margin-top: 0;
    font-size: 1.3rem;
}

.checkout-summary-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.checkout-summary-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.checkout-summary-item-details {
    flex: 1;
}

.checkout-summary-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.checkout-summary-item-qty {
    font-size: 0.8rem;
    color: #777;
}

.checkout-summary-item-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-secondary);
    white-space: nowrap;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-secondary);
}

.checkout-feedback {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #d4edda;
    color: #155724;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.6;
    display: none;
}

.checkout-feedback.show {
    display: block;
}

.checkout-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 1.05rem;
}

/* Payment info text */
.payment-info-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Payment method selection */
.payment-methods-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-payment {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    color: var(--color-text);
}

.btn-payment:hover {
    border-color: var(--color-primary);
    background: rgba(0, 180, 216, 0.05);
}

.btn-payment.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.payment-icon-label {
    font-size: 1rem;
    font-weight: 500;
}

.selected-payment-label {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Checkout loading overlay */
.checkout-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.92);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.checkout-loading-overlay p {
    font-size: 1.2rem;
    color: var(--color-secondary);
    font-weight: 500;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Checkout error */
.checkout-error {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.6;
}

/* ========== Order Tracking ========== */
.order-tracking-intro {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.order-tracking-form-section {
    max-width: 500px;
}

.order-tracking-form {
    margin-top: 1rem;
}

.order-tracking-error {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.6;
    display: none;
}

.order-tracking-error.show {
    display: block;
}

/* ========== 404 Page ========== */
.error-404 {
    text-align: center;
    padding: 2rem 0;
}

.error-404 h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 3rem;
}

.error-404 h2 {
    margin-bottom: 2rem;
}

.error-404 .category-grid {
    text-align: left;
}

/* ========== FAQ ========== */
.faq-section {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #f9f9f9;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.faq-question {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #555;
    line-height: 1.7;
}

/* Shipping delivery table inside FAQ */
.shipping-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}

.shipping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.shipping-table th,
.shipping-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.shipping-table thead {
    background: var(--color-primary);
    color: #fff;
}

.shipping-table tbody tr:nth-child(even) {
    background: #f4f6f8;
}

.shipping-table tbody tr:hover {
    background: #e9ecef;
}

@media (max-width: 600px) {
    .shipping-table {
        font-size: 0.85rem;
    }
    .shipping-table th,
    .shipping-table td {
        padding: 0.35rem 0.5rem;
    }
}

/* ========== Static Pages ========== */
.page-content {
    margin: 2rem 0;
    max-width: 800px;
}

.page-content p {
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-content h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.page-content ul,
.page-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.page-content li {
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
}

.page-content th,
.page-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.page-content th {
    background: var(--color-background);
    font-weight: 600;
}

.page-content address {
    font-style: normal;
    line-height: 1.8;
}

/* ========== Footer ========== */
footer {
    background: var(--color-header-footer);
    color: white;
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 2px solid var(--color-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    max-width: 60%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
}

.social-icon {
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.footer-address {
    font-style: normal;
    line-height: 1.8;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.footer-address a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin: 0;
}

.footer-address a:hover {
    text-decoration: none;
    color: var(--color-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    margin: 0;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== Product type labels (Driver / Passenger / Rear) ========== */
.prod-type-driver {
    color: var(--color-primary);
    font-weight: 700;
}

.prod-type-passenger {
    color: #e67e22;
    font-weight: 700;
}

.prod-type-rear {
    color: var(--color-accent);
    font-weight: 700;
}

.product-card h3 .prod-type-driver,
.product-card h3 .prod-type-passenger,
.product-card h3 .prod-type-rear {
    display: inline;
}

/* ========== Variant / bundle selector on product pages ========== */
.variant-selector-wrap {
    margin: 1rem 0;
}

.variant-selector-wrap .attribute-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
}

.variant-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    color: var(--color-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    transition: border-color 0.2s;
}

.variant-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.variant-select option.bundle-option {
    font-style: italic;
    color: var(--color-accent);
}

/* ========== RESPONSIVE - Tablet ========== */
@media (max-width: 768px) {
    /* Homepage: Hero */
    .hero-section {
        min-height: 320px;
    }

    .hero-section .container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-slogan {
        font-size: 1.15rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    /* Homepage: Trust bar */
    .trust-bar-inner {
        gap: 1rem;
        justify-content: center;
    }

    .trust-item {
        font-size: 0.85rem;
    }

    /* Homepage: Benefits */
    .benefits-section {
        padding: 2.5rem 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    /* Homepage: Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* Homepage: Guarantee */
    .guarantee-card {
        padding: 2rem 1.5rem;
    }

    /* Homepage: CTA */
    .cta-headline {
        font-size: 1.5rem;
    }

    /* Header: hamburger left, logo center, actions right */
    .header-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
    }

    /* No nav: logo left, actions right */
    .header-content.no-nav {
        grid-template-columns: 1fr auto;
    }

    .hamburger {
        display: flex;
    }

    .site-brand-wrap {
        text-align: center;
    }

    .header-content.no-nav .site-brand-wrap {
        text-align: left;
    }

    .site-brand {
        font-size: 1.3rem;
    }

    .site-logo {
        max-height: 36px;
        margin: 0 auto;
    }

    .header-content.no-nav .site-logo {
        margin: 0;
    }

    /* Language switcher: flag only on mobile */
    .lang-name {
        display: none;
    }

    .language-toggle {
        padding: 6px 8px;
    }

    .language-toggle .lang-flag-img {
        width: 24px;
        height: 18px;
    }

    /* Country banner: fixed bottom-center on mobile */
    .country-banner {
        position: fixed;
        top: auto;
        right: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }

    /* Nav: slide-in from left */
    nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background: var(--color-secondary);
        z-index: 150;
        padding: 60px 0 20px;
        transition: left 0.3s ease;
        border-bottom: none;
    }

    nav.mobile-open {
        left: 0;
    }

    nav .container {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    nav > .container > a {
        display: block;
        padding: 14px 24px;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.05rem;
    }

    nav > .container > a:hover {
        background: rgba(255,255,255,0.05);
    }

    /* Nav dropdown in mobile: always open, stacked */
    .nav-dropdown-wrap {
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .nav-dropdown-wrap > .nav-parent {
        display: block;
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.05rem;
    }

    .nav-submenu {
        display: block;
        position: static;
        background: rgba(0,0,0,0.15);
        box-shadow: none;
        border-radius: 0;
        min-width: auto;
        padding: 0;
    }

    .nav-submenu a {
        padding: 10px 24px 10px 40px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 0.95rem;
    }

    /* Car selector: not sticky on mobile */
    .car-selector {
        position: static;
    }

    /* Car selector form: vertical on mobile */
    #cs-form {
        flex-direction: column;
        align-items: center;
    }

    #cs-form .car-selector-label {
        text-align: center;
    }

    #cs-form .cs-select,
    #cs-form .cs-button {
        width: 100%;
    }

    /* Car selector selected: 2 rows, centered */
    .cs-selected-inner {
        flex-direction: column;
        align-items: center;
    }

    .cs-selected-top {
        width: 100%;
        justify-content: center;
    }

    .cs-selected-actions {
        width: 100%;
    }

    .cs-selected-actions .cs-button {
        flex: 1;
        text-align: center;
    }

    /* Breadcrumb: tighter on mobile */
    .breadcrumb {
        margin: 0.5rem 0;
        font-size: 0.85rem;
    }

    /* Grids: 2 columns on mobile for products */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Product detail: stack */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail h1.product-title {
        font-size: 1.5rem;
    }

    /* Trust badges: wrap and center */
    .trust-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Cart */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-actions {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .cart-summary {
        max-width: 100%;
    }

    /* Checkout */
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .checkout-summary-section {
        position: static;
    }

    /* Payment methods: stack on mobile */
    .payment-methods-selection {
        flex-direction: column;
    }

    /* Form rows */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Contact form */
    .contact-form {
        max-width: 100%;
    }

    /* Footer: single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo {
        max-width: 50%;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 6px;
    }

    .product-grid {
        gap: 0.75rem;
    }

    .product-card-image {
        border-radius: 6px;
    }
}
