/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00695c;
    --primary-dark: #004d40;
    --primary-light: #26a69a;
    --secondary-color: #0288d1;
    --secondary-dark: #01579b;
    --accent-color: #ff9800;
    --accent-dark: #f57c00;
    --text-dark: #212121;
    --text-medium: #424242;
    --text-light: #757575;
    --text-blue: #1565c0;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --bg-lighter: #fafafa;
    --white: #ffffff;
    --success:  #4caf50;
    --danger: #f44336;
    --stock-green: #2e7d32;
    --stock-orange: #ef6c00;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md:  8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:  'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.top-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items:  center;
}

.contact-link {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--accent-color);
}

.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    font-size: 18px;
}

.icon-link:hover {
    transform: scale(1.1);
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius:  var(--radius-md);
    font-weight: 500;
}

.cart-link:hover {
    background: rgba(255,255,255,0.2);
}

.cart-count {
    background: var(--accent-color);
    color: var(--white);
    padding: 2px 10px;
    border-radius:  20px;
    font-size:  12px;
    font-weight: bold;
    min-width: 24px;
    text-align:  center;
}

.cart-total {
    font-weight: bold;
    color: var(--accent-color);
}

.main-header {
    padding: 15px 0;
    background:  var(--white);
    border-bottom: 3px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo h1 {
    font-size: 26px;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -1px;
}

.logo h1 span {
    color: var(--secondary-color);
}

.logo a {
    display: block;
}

.logo a:hover {
    opacity: 0.9;
}

.logo .tagline {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

/* ========== NAVIGATION ========== */
.main-nav ul {
    display: flex;
    gap: 5px;
}

.main-nav > ul > li > a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 16px;
    display: block;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.main-nav > ul > li > a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility:  hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding:  12px 20px;
    color: var(--text-dark);
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--primary-color) 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 40px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left:  0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="8"/></svg>') repeat;
    background-size: 120px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

.search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}

.search-tabs {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    display: flex;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: var(--white);
    border: none;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 15px;
    position: relative;
    border-bottom: 3px solid var(--primary-color);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
}

.tab-content {
    padding: 25px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
}

.tire-visual {
    margin:  20px 0;
    background: var(--bg-lighter);
    border-radius: var(--radius-md);
    padding: 15px;
    border: 1px solid var(--border-color);
}

.tire-diagram {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
}

.size-selectors {
    display:  grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin:  20px 0;
}

.selector-group {
    display: flex;
    flex-direction: column;
}

.selector-group label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selector-group select,
.season-select {
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.selector-group select:hover,
.season-select:hover {
    border-color: var(--primary-color);
}

.selector-group select:focus,
.season-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,105,92,0.1);
}

.additional-options {
    margin:  20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-text {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.season-select {
    width: 100%;
}

.more-options {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
}

.more-options:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

.search-btn {
    width: 100%;
    padding:  16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Help Widget */
.help-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    max-width: 300px;
    width: 100%;
}

.help-widget h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size:  18px;
}

.help-widget p {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

.help-btn {
    width: 100%;
    padding:  12px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.help-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== BRANDS SECTION ========== */
.brands {
    padding: 30px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.brand-slider {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.brand-item {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    padding: 12px 20px;
    border:  2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: var(--transition);
}

.brand-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========== INFO SECTION ========== */
.info-section {
    padding: 60px 0;
    background:  var(--white);
}

.info-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-weight: 700;
}

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

.info-card {
    text-align: center;
    padding: 30px 20px;
    border:  2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: var(--white);
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
}

.info-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* ========== PRODUCTS PAGE ========== */
.products-section {
    padding: 30px 0;
    background:  var(--bg-light);
    min-height: 70vh;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom:  15px;
}

.breadcrumb a {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 700;
}

.search-info {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
}

/* Filters */
.filters {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters h3 {
    margin-bottom:  20px;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom:  2px solid var(--primary-color);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

.filter-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-medium);
    transition: var(--transition);
}

.filter-group label:hover {
    color: var(--primary-color);
}

.filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right:  10px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Products Container */
.products-container {
    width: 100%;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.results-count {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
}

.results-count span {
    color: var(--primary-color);
    font-weight: 700;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    background: var(--white);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ========== PRODUCT ITEM (reifendirekt.de style) ========== */
.product-item {
    display: grid;
    grid-template-columns: 150px 1fr 100px 220px;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border:  1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    align-items: center;
}

.product-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.product-item-image {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-lighter);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-watermark {
    position: absolute;
    bottom: -10%;
    left: 5px;
    font-size: 8px;
    color: var(--text-light);
    opacity: 0.6;
}

.product-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.product-item-name {
    font-size: 18px;
    font-weight:  600;
    color: var(--text-blue);
    cursor: pointer;
    line-height: 1.3;
}

.product-item-name:hover {
    text-decoration: underline;
}

.product-item-variant {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.4;
}

.variant-size {
    font-weight: 600;
    color: var(--text-dark);
}

.features-link {
    color: var(--text-blue);
    cursor: pointer;
}

.features-link:hover {
    text-decoration: underline;
}

.variant-season {
    color: var(--text-blue);
    font-weight: 500;
}

.product-item-labels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.eu-label {
    display: flex;
    gap: 8px;
    align-items:  center;
    flex-wrap: wrap;
}

.label-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.label-item.fuel {
    background: #66bb6a;
    color:  white;
}

.label-item.wet {
    background: #ffa726;
    color: white;
}

.label-item.noise {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.rating-label {
    color: var(--text-light);
}

.stars {
    color: var(--accent-color);
    font-size: 14px;
}

.reviews-count {
    color: var(--text-light);
}

.product-item-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    border:  2px solid var(--border-color);
    border-radius: 50%;
    display:  flex;
    align-items:  center;
    justify-content:  center;
    font-weight: 700;
    color: var(--text-medium);
    font-size: 12px;
    text-align: center;
}

.product-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    gap: 5px;
}

.stock-status {
    font-size: 13px;
    font-weight: 600;
}

.stock-available {
    color: var(--stock-green);
}

.stock-limited {
    color: var(--stock-orange);
}

.old-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

.current-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin:  5px 0 15px;
}

.price-label {
    font-size: 14px;
    color: var(--text-light);
    margin-right: 5px;
}

.price-value {
    font-size: 32px;
    font-weight:  800;
    color: var(--text-dark);
    line-height: 1;
}

.price-cents {
    font-size: 18px;
    font-weight:  700;
    color: var(--text-dark);
    position: relative;
    top: -8px;
}

.product-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.btn-details {
    padding: 10px 15px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    position: relative;
    z-index: 10001;
    pointer-events: auto;
}

.btn-details:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-add-cart {
    padding: 10px 15px;
    background:  linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border: none;
    color: var(--white);
    border-radius:  var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, #e65100 100%);
    transform: translateY(-1px);
}

/* Ensure interactive elements are visible above other layers on mobile */
.btn-details, .btn-add-cart, .btn-cart {
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
    touch-action: manipulation;
}

/* Buttons will expand to full width in compact contexts */
@media (max-width: 480px) {
    .product-item-actions { flex-direction: row; gap: 8px; }
    .btn-details, .btn-add-cart { flex: 1 1 0; }
}

.loading {
    text-align: center;
    padding: 60px;
    font-size: 16px;
    color: var(--text-light);
    background: var(--white);
    border-radius: var(--radius-lg);
}

.loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.no-products p {
    font-size: 16px;
    color: var(--text-light);
}

/* ========== CART PAGE ========== */
.cart-section {
    padding: 30px 0;
    min-height: 70vh;
    background: var(--bg-light);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    margin-top: 20px;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-lighter);
    padding: 10px;
}

.cart-item-details {
    display:  flex;
    flex-direction:  column;
    justify-content: space-between;
}

.cart-item-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.cart-item-category {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.cart-item-specs {
    font-size: 13px;
    color: var(--text-light);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.cart-item-price {
    font-size: 20px;
    font-weight:  800;
    color: var(--primary-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-btn, .qty-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.quantity-btn:hover, .qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-display {
    width: 45px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    background: var(--white);
}

.remove-btn {
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding:  8px 12px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
}

.remove-btn:hover {
    background: rgba(244,67,54,0.1);
}

.cart-empty {
    text-align: center;
    padding: 60px 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.cart-empty h2 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 15px;
}

/* Cart Summary */
.cart-summary {
    background: var(--white);
    padding: 25px;
    border-radius:  var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top:  100px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom:  2px solid var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-medium);
}

.summary-row.total {
    font-size: 20px;
    padding-top: 15px;
    color: var(--text-dark);
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
}

.summary-row.total strong {
    color: var(--primary-color);
}

.cart-summary hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin:  15px 0;
}

.btn-checkout {
    width: 100%;
    padding:  16px;
    background: linear-gradient(135deg, var(--success) 0%, #388e3c 100%);
    color: var(--white);
    font-size: 15px;
    font-weight:  700;
    border-radius: var(--radius-md);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-continue {
    display: block;
    text-align: center;
    width: 100%;
    padding:  14px;
    margin-top: 10px;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    background: var(--white);
}

.btn-continue:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size:  15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(180deg, var(--text-dark) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom:  30px;
}

.footer-col h4 {
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom:  0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--primary-color);
}

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

.footer-col a {
    color: #b0b0b0;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-col p {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top:  1px solid #333;
    font-size: 14px;
    color: #888;
}

/* ========== LEGAL PAGES ========== */
.legal-page {
    padding: 30px 0;
    min-height: 70vh;
    background: var(--bg-light);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius:  var(--radius-lg);
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}

.legal-content h1 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.legal-content h2 {
    font-size:  20px;
    margin:  30px 0 15px;
    color: var(--primary-color);
}

.legal-content h3 {
    font-size: 16px;
    margin:  20px 0 10px;
    color: var(--text-dark);
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--text-medium);
}

.legal-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--text-medium);
}

.legal-content ul li {
    margin-bottom: 8px;
}

/* ========== NOTIFICATION ========== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 16px 25px;
    border-radius:  var(--radius-md);
    z-index: 10000;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.4s ease;
}

.notification.success {
    background: linear-gradient(135deg, var(--success) 0%, #388e3c 100%);
    color: var(--white);
}

.notification.error {
    background: linear-gradient(135deg, var(--danger) 0%, #c62828 100%);
    color: var(--white);
}

@keyframes slideIn {
    from {
        transform:  translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width:  1200px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-item {
        grid-template-columns:  120px 1fr 180px;
    }
    
    .product-item-brand {
        display: none;
    }
}

@media (max-width:  992px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .filters {
        display: none;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .hero-content {
        flex-direction: column;
        align-items: center;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .help-widget {
        max-width: 100%;
    }
    
    .product-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }
    
    .product-item-price {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        margin-top: 10px;
    }
    
    .product-item-actions {
        flex-direction: row;
        width: auto;
    }
}

@media (max-width:  768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav > ul > li > a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .size-selectors {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .legal-content {
        padding: 25px 20px;
    }
    
    .top-bar-content {
        flex-direction:  column;
        gap: 10px;
    }
    
    .current-price {
        margin:  0;
    }
    
    .product-item-actions {
        gap: 5px;
    }
    
    .btn-details,
    .btn-add-cart {
        padding: 8px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 25px 0;
        min-height: auto;
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    
    .product-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-item-image {
        margin: 0 auto;
    }
    
    .product-item-price {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-item-actions {
        width: 100%;
    }
    
    .btn-details,
    .btn-add-cart {
        flex: 1;
    }
}