/* Brivonixs - Premium Home Decor Styles */

/* ===== CSS Variables ===== */
:root {
    --primary: #1E3A8A;
    --primary-hover: #1E40AF;
    --secondary: #A7C4B5;
    --background: #FFFFFF;
    --background-alt: #F4F7F5;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border: #E2E8F0;
    --success: #16a34a;
    --error: #dc2626;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Outfit', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

@media (min-width: 768px) {
    .header-content { height: 80px; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
}

@media (min-width: 768px) {
    .logo span { font-size: 1.5rem; }
}

.logo-white span {
    color: white;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
}

.nav-desktop a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    letter-spacing: 0.025em;
}

.nav-desktop a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    position: relative;
    padding: 0.5rem;
    color: var(--text-main);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
}

.cart-count:empty,
.cart-count[data-count="0"] {
    display: none;
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    color: var(--text-main);
}

@media (min-width: 1024px) {
    .mobile-menu-btn { display: none; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 200;
    transition: right 0.3s ease;
    padding: 1.5rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
}

.close-menu {
    padding: 0.5rem;
    color: var(--text-main);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: var(--primary);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
}

.mobile-menu-overlay.active {
    display: block;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 2px;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.3);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

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

.btn-white:hover {
    background: #f8f9fa;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero { height: 85vh; }
}

.hero-image {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.1));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 600px;
    color: white;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.75rem; }
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section { padding: 8rem 0; }
}

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

.section-dark {
    background: var(--primary);
    color: white;
}

.section-header {
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header { margin-bottom: 4rem; }
}

.section-badge {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section-title {
    font-size: 1.5rem;
    margin-top: 0.75rem;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .section-title { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
    .section-title { font-size: 2.25rem; }
}

.section-header-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .section-header-flex {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

/* ===== Trust Badges ===== */
.trust-badges {
    padding: 2rem 0;
    background: var(--background-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: all 0.3s;
}

.trust-badge:hover {
    border-color: var(--secondary);
    background: rgba(167, 196, 181, 0.1);
}

.trust-badge svg {
    flex-shrink: 0;
    color: var(--primary);
}

.trust-badge h4 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-badge p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Categories Grid ===== */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(2, 250px);
    }
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    height: 250px;
}

@media (min-width: 768px) {
    .category-card:nth-child(1) {
        grid-column: span 8;
        grid-row: span 2;
        height: auto;
    }
    .category-card:nth-child(2) { grid-column: span 4; }
    .category-card:nth-child(3) { grid-column: span 4; }
    .category-card:nth-child(4) { grid-column: span 12; height: 200px; }
}

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

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .category-content { padding: 2rem; }
}

.category-content h3 {
    font-size: 1.25rem;
    color: white;
}

@media (min-width: 768px) {
    .category-content h3 { font-size: 1.5rem; }
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    transition: transform 0.3s;
}

.category-card:hover .category-link {
    transform: translateX(0.5rem);
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem 1.5rem;
}

@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

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

@media (min-width: 640px) {
    .product-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .product-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Product Card ===== */
.product-card {
    position: relative;
}

.product-card a {
    display: block;
}

.product-image {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--background-alt);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.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: 0.75rem;
    left: 0.75rem;
    background: var(--secondary);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
}

.product-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-quick-add {
    opacity: 1;
}

.product-category {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-top: 0.5rem;
    color: var(--text-main);
    transition: color 0.3s;
}

.product-card:hover .product-name {
    color: var(--primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.price-current {
    font-weight: 600;
    font-size: 1.125rem;
}

.price-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.875rem;
}

.price-savings {
    color: var(--success);
    font-weight: 500;
    font-size: 0.875rem;
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 2px;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
    color: var(--primary);
}

.testimonial-text {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 500;
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .cta-section { padding: 8rem 0; }
}

.cta-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .cta-title { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
    .cta-title { font-size: 2.25rem; }
}

.cta-description {
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===== Shop Page ===== */
.page-header {
    background: var(--background-alt);
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .page-header { padding: 4rem 0; }
}

.page-title {
    font-size: 1.875rem;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .page-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
    .page-title { font-size: 3rem; }
}

.page-description {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 600px;
}

.shop-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 0;
}

@media (min-width: 1024px) {
    .shop-layout {
        flex-direction: row;
        padding: 4rem 0;
    }
}

.shop-sidebar {
    width: 100%;
}

@media (min-width: 1024px) {
    .shop-sidebar {
        width: 240px;
        flex-shrink: 0;
    }
}

.shop-main {
    flex: 1;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-title {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.filter-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.filter-option span {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.filter-option:hover span {
    color: var(--text-main);
}

.shop-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
    .shop-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.shop-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.shop-count strong {
    color: var(--text-main);
}

.shop-sort select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

/* ===== Product Detail Page ===== */
.breadcrumb {
    background: var(--background-alt);
    padding: 1rem 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--border);
}

.product-detail {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .product-detail { padding: 4rem 0; }
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.product-gallery {
    position: relative;
}

.product-main-image {
    aspect-ratio: 1;
    background: var(--background-alt);
    border-radius: 2px;
    overflow: hidden;
}

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

.product-info {
    position: relative;
}

@media (min-width: 1024px) {
    .product-info {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

.product-detail-category {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-detail-title {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .product-detail-title { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
    .product-detail-title { font-size: 2.25rem; }
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.product-detail-price .price-current {
    font-size: 1.875rem;
    font-weight: 600;
}

.product-detail-price .price-original {
    font-size: 1.125rem;
}

.product-detail-price .price-savings {
    font-size: 1.125rem;
}

.cod-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--background-alt);
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--success);
    border-radius: 2px;
    margin-top: 1rem;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1.5rem;
}

.product-features {
    margin-top: 1.5rem;
}

.product-features h3 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.product-features ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.product-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

.quantity-selector {
    margin-top: 1.5rem;
}

.quantity-selector h3 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.quantity-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.quantity-btn {
    padding: 0.75rem;
    color: var(--text-main);
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: var(--background-alt);
}

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

.quantity-value {
    width: 48px;
    text-align: center;
    font-weight: 500;
}

.product-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.delivery-info {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.delivery-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.delivery-info-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.delivery-info-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.delivery-info-item strong {
    color: var(--text-main);
    display: block;
}

/* ===== Cart Page ===== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: var(--background-alt);
    border-radius: 2px;
    overflow: hidden;
}

@media (min-width: 640px) {
    .cart-item-image {
        width: 128px;
        height: 128px;
    }
}

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

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

.cart-item-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
}

.cart-item-name:hover {
    color: var(--primary);
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

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

.cart-item-remove {
    color: var(--text-muted);
    padding: 0.5rem;
    transition: color 0.3s;
}

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

.cart-item-subtotal {
    text-align: right;
    display: none;
}

@media (min-width: 640px) {
    .cart-item-subtotal { display: block; }
}

.cart-item-subtotal p:first-child {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cart-item-subtotal p:last-child {
    font-weight: 500;
}

.cart-empty {
    text-align: center;
    padding: 5rem 0;
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--background-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-empty-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.cart-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cart-summary {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 2px;
    height: fit-content;
}

@media (min-width: 1024px) {
    .cart-summary {
        position: sticky;
        top: 100px;
    }
}

.cart-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.cart-summary-row span:first-child {
    color: var(--text-muted);
}

.cart-summary-row.shipping span:last-child {
    color: var(--success);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.cart-summary-total span:first-child {
    font-weight: 500;
}

.cart-summary-total span:last-child {
    font-size: 1.25rem;
    font-weight: 600;
}

.cart-trust-badges {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.cart-trust-badges p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cart-trust-badges p::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

/* ===== Checkout Page ===== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

@media (min-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.checkout-section {
    margin-bottom: 2rem;
}

.checkout-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-grid { grid-template-columns: repeat(2, 1fr); }
}

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

@media (min-width: 640px) {
    .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-label .required {
    color: var(--error);
}

.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-input.error {
    border-color: var(--error);
}

.form-error {
    font-size: 0.75rem;
    color: var(--error);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary);
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(30, 58, 138, 0.05);
}

.payment-option input {
    margin-top: 0.25rem;
    accent-color: var(--primary);
}

.payment-option-content {
    flex: 1;
}

.payment-option-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-option-header svg {
    color: var(--primary);
}

.payment-option-header span {
    font-weight: 500;
}

.payment-option-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.card-logos {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.card-logo {
    width: 48px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
}

.card-logo.visa { color: #1434CB; }
.card-logo.mastercard { color: #EB001B; }
.card-logo.amex { background: #006FCF; color: white; }
.card-logo.discover { color: #FF6000; }

.checkout-summary {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 2px;
    height: fit-content;
}

@media (min-width: 1024px) {
    .checkout-summary {
        position: sticky;
        top: 100px;
    }
}

.checkout-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.checkout-item {
    display: flex;
    gap: 1rem;
}

.checkout-item-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: white;
    border-radius: 2px;
    overflow: hidden;
}

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

.checkout-item-details {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-qty {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.checkout-item-price {
    font-size: 0.875rem;
    font-weight: 500;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.security-note svg {
    color: var(--success);
}

/* ===== Order Success Page ===== */
.order-success {
    min-height: 80vh;
    background: var(--background-alt);
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .order-success { padding: 5rem 0; }
}

.order-success-content {
    max-width: 700px;
    margin: 0 auto;
}

.order-success-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.order-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-success-icon svg {
    width: 48px;
    height: 48px;
    color: var(--success);
}

.order-success-header h1 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .order-success-header h1 { font-size: 2.25rem; }
}

.order-success-header p {
    color: var(--text-muted);
}

.order-card {
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .order-card { padding: 2rem; }
}

.order-card-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
    .order-card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.order-number-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.order-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
    .order-info-grid { grid-template-columns: repeat(2, 1fr); }
}

.order-info-item label {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.order-info-item p {
    font-weight: 500;
}

.order-status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 2px;
    margin-top: 0.5rem;
}

.order-status-badge.cod {
    background: #dbeafe;
    color: #1e40af;
}

.order-status-badge.paid {
    background: #dcfce7;
    color: #166534;
}

.order-address {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.order-address label {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.order-address p {
    line-height: 1.6;
}

.order-address strong {
    display: block;
}

.order-items-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.order-items-section label {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    display: flex;
    gap: 1rem;
}

.order-item-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: var(--background-alt);
    border-radius: 2px;
    overflow: hidden;
}

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

.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-qty {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.order-item-price {
    font-weight: 500;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
}

.order-total span:first-child {
    font-weight: 500;
}

.order-total span:last-child {
    font-size: 1.5rem;
    font-weight: 600;
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .order-actions { flex-direction: row; }
}

.order-help {
    text-align: center;
    margin-top: 2.5rem;
}

.order-help p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.order-help a {
    color: var(--primary);
}

.order-help a:hover {
    text-decoration: underline;
}

/* ===== Legal Pages ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .legal-content { padding: 4rem 0; }
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    list-style: disc;
}

.legal-content strong {
    color: var(--text-main);
}

.legal-contact-box {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 2px;
    margin-top: 1rem;
}

.legal-contact-box p {
    margin-bottom: 0.25rem;
}

.legal-contact-box p:first-child {
    color: var(--text-main);
    font-weight: 500;
}

.legal-highlight {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 2px;
    border-left: 4px solid var(--primary);
    margin-bottom: 2rem;
}

.legal-highlight p {
    margin-bottom: 0;
    color: var(--text-main);
    font-weight: 500;
}

.legal-steps {
    margin: 1.5rem 0;
}

.legal-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 500;
    flex-shrink: 0;
}

.step-content h4 {
    font-family: var(--font-sans);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.step-content p {
    margin-bottom: 0;
}

/* ===== Contact Page ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: 2px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.contact-info-icon svg {
    color: white;
}

.contact-info-content h3 {
    font-family: var(--font-sans);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-info-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-info-content a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.contact-info-content a:hover {
    color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    background: var(--text-main);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-brand p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: #9ca3af;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary);
}

.footer-links h4 {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: #d1d5db;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contact h4 {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact svg {
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.footer-contact span,
.footer-contact a {
    font-size: 0.875rem;
    color: #d1d5db;
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--text-main);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
