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

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-hover: #c73652;
    --light: #f5f5f5;
    --white: #ffffff;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --success: #28a745;
    --border: #dee2e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--dark-gray);
    line-height: 1.6;
}

/* HEADER */
header {
    background: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-top {
    background: var(--secondary);
    padding: 6px 0;
    font-size: 0.85rem;
    text-align: center;
    color: #adb5bd;
}

.header-top span {
    color: var(--accent);
    font-weight: 600;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white);
}

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

nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--white);
}

.cart-btn {
    position: relative;
    background: var(--accent);
    border: none;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.cart-count {
    background: var(--white);
    color: var(--accent);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #0f3460 100%);
    color: var(--white);
    padding: 80px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: #adb5bd;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #ccc;
}

/* FILTERS */
.filters {
    background: var(--white);
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 70px;
    z-index: 999;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--dark-gray);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* PRODUCTS */
.products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.products-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.products-section .subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-image {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-condition {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-colors-preview {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.color-dot-sm {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: inline-block;
}

.product-specs {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    margin-top: auto;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.product-original-price {
    font-size: 0.95rem;
    color: var(--gray);
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: var(--accent);
}

/* PRODUCT MODAL */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    overflow-y: auto;
    padding: 30px 20px;
    backdrop-filter: blur(4px);
}

.product-modal.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 950px;
    width: 100%;
    position: relative;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: var(--light);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--dark-gray);
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--accent);
    color: var(--white);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-gallery {
    padding: 30px;
    border-right: 1px solid var(--border);
}

.modal-main-image {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--light);
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
}

.modal-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}

.modal-thumb.active,
.modal-thumb:hover {
    border-color: var(--accent);
}

.modal-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.modal-details h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.modal-condition {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
    background: #e8f5e9;
    color: #2e7d32;
}

.modal-condition.condition-buono {
    background: #fff3e0;
    color: #e65100;
}

.modal-condition.condition-ottimo {
    background: #e3f2fd;
    color: #1565c0;
}

.modal-description {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.color-selector {
    display: flex;
    gap: 10px;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    background: none;
}

.color-dot.active,
.color-dot:hover {
    border-color: var(--accent);
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.storage-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.storage-btn {
    padding: 8px 20px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    color: var(--dark-gray);
}

.storage-btn.active,
.storage-btn:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--white);
}

.modal-prices {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.modal-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.modal-original {
    font-size: 1.1rem;
    color: var(--gray);
    text-decoration: line-through;
}

.modal-badge {
    background: var(--success);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.modal-add-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 20px;
}

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

.modal-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.modal-features div {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
    padding: 8px;
    background: var(--light);
    border-radius: 8px;
}

/* FEATURES */
.features {
    background: var(--white);
    padding: 60px 40px;
    margin-top: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.feature p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* CART SIDEBAR */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.cart-overlay.open {
    display: block;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -480px;
    width: 460px;
    max-width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.2);
}

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

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

.cart-header h2 {
    font-size: 1.3rem;
    color: var(--primary);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    padding: 4px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--light);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item-qty button:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.cart-item-qty span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: color 0.2s;
}

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

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.cart-footer {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-total span:last-child {
    color: var(--accent);
    font-size: 1.4rem;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

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

.cart-shipping {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 10px;
}

/* CHECKOUT PAGE */
.checkout-page {
    display: none;
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-page.active {
    display: block;
}

.checkout-page h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.checkout-form {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.checkout-form h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.checkout-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.checkout-summary-items {
    max-height: 350px;
    overflow-y: auto;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.checkout-item-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
}

.checkout-item-variant {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
}

.checkout-item-qty {
    color: var(--gray);
    font-size: 0.85rem;
}

.checkout-item-price {
    font-weight: 700;
    color: var(--primary);
}

.checkout-item-remove {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
    margin-left: 8px;
    transition: color 0.2s;
    flex-shrink: 0;
}

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

.checkout-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--border);
}

.checkout-totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.checkout-totals-row.total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--primary);
}

.checkout-totals-row.total span:last-child {
    color: var(--accent);
}

.place-order-btn {
    width: 100%;
    padding: 16px;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: filter 0.3s;
}

.place-order-btn:hover {
    filter: brightness(1.1);
}

.back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* ORDER CONFIRMATION */
.order-confirmation {
    display: none;
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.order-confirmation.active {
    display: block;
}

.order-confirmation-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.order-confirmation h1 {
    color: var(--success);
    margin-bottom: 12px;
}

.order-confirmation p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.order-number {
    background: var(--light);
    padding: 16px 30px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 30px;
}

/* FOOTER */
footer {
    background: var(--primary);
    color: #adb5bd;
    padding: 50px 40px 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col a {
    display: block;
    color: #adb5bd;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* LEGAL PAGES */
.legal-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.legal-page h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.legal-page h2 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 12px;
}

.legal-page p, .legal-page li {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 12px;
    line-height: 1.8;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page .company-info {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 5000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-gallery {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 12px 16px;
    }
    nav {
        display: none;
    }
    .hero {
        padding: 50px 20px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .filters {
        padding: 16px;
        top: 60px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .legal-page {
        margin: 20px;
        padding: 24px;
    }
    .modal-content {
        border-radius: 16px;
        margin: 10px;
    }
    .modal-main-image {
        height: 250px;
    }
    .modal-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .cart-sidebar {
        width: 100%;
    }
    .modal-details h2 {
        font-size: 1.3rem;
    }
    .modal-price {
        font-size: 1.5rem;
    }
}
