/**
 * US E-commerce Pro - Premium Stylesheet
 * Aesthetic: Minimalist, Trustworthy, "Shopify Plus" feel
 */

/* ===== CSS Variables & Design System ===== */
:root {
    /* Colors - Premium Palette */
    --color-primary: #000000;      /* Core Brand Color (Black for luxury/trust) */
    --color-primary-hover: #333333;
    --color-accent: #2563eb;       /* Action Color (Royal Blue) */
    
    --color-text-main: #111827;    /* Almost Black */
    --color-text-muted: #6b7280;   /* Gray 500 */
    --color-text-light: #9ca3af;   /* Gray 400 */
    
    --color-bg-body: #ffffff;
    --color-bg-subtle: #f9fafb;    /* Gray 50 */
    --color-bg-surface: #ffffff;
    
    --color-border: #e5e7eb;       /* Gray 200 */
    --color-border-hover: #d1d5db; /* Gray 300 */
    
    --color-success: #059669;
    --color-error: #dc2626;
    --color-warning: #d97706;

    /* Typography */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    
    /* Spacing System (8px grid base) */
    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem;  /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem;    /* 16px */
    --space-6: 1.5rem;  /* 24px */
    --space-8: 2rem;    /* 32px */
    --space-12: 3rem;   /* 48px */
    --space-16: 6rem;   /* 96px (Increased for grand feel) */
    
    /* Effects (Premium Soft) */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 20px -2px rgb(0 0 0 / 0.08); /* Softer, spread out */
    --shadow-lg: 0 20px 40px -4px rgb(0 0 0 / 0.1); /* Deep soft shadow */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem; /* Bolder radius */
    --radius-full: 9999px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.7; /* Increased for readability */
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
button, input { font-family: inherit; }

/* ===== Layout Utilities ===== */
.container {
    width: 100%;
    max-width: 1400px; /* Widened for modern look */
    margin: 0 auto;
    padding: 0 var(--space-6); /* More horizontal breathing room */
}

.text-center { text-align: center; }

/* ===== Header ===== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Softer border */
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-4) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--color-primary);
}

.main-nav {
    display: flex;
    gap: var(--space-8);
}

.main-nav a {
    font-weight: 500;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--color-accent);
}

/* ===== Hero Section (Modern Clean) ===== */
.hero-section {
    padding: var(--space-16) 0; /* Massive padding */
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* Image slightly larger */
    gap: var(--space-12);
    align-items: center;
}

.hero-content {
    order: 1;
}

.hero-title {
    font-size: 4rem; /* Bigger title */
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
    color: var(--color-text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.hero-trust {
    display: flex;
    gap: var(--space-6);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.hero-trust i {
    color: var(--color-success);
    margin-right: var(--space-2);
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-6);
}

.main-hero-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 600px;
    object-fit: contain; /* Critical for handling various image aspect ratios */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.main-hero-img:hover {
    transform: translateY(-5px);
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* ===== Features Grid ===== */
.features-section {
    padding: var(--space-16) 0;
    background: var(--color-bg-white);
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-12);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.feature-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.feature-card:hover {
    background: #fff;
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ===== Product Section (The Core) ===== */
.product-section {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--color-border);
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Image wider than info */
    gap: var(--space-12);
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 100px; /* Sticky scroll */
}

.main-image {
    background: var(--color-bg-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-4);
    border: 1px solid var(--color-border);
}

.main-image img {
    width: 100%;
    display: block;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
}

.thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumb:hover {
    border-color: var(--color-text-main);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Column */
.product-info {
    padding-top: var(--space-2);
}

.p-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.p-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.p-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.price-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.price-old {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: var(--color-text-light);
}

.price-off {
    background: #eff6ff;
    color: var(--color-accent);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
}

.p-stock {
    margin-bottom: var(--space-4);
    font-weight: 500;
    font-size: 0.9rem;
}

.text-green { color: var(--color-success); }
.text-red { color: var(--color-error); }

.p-desc {
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    font-size: 1.05rem;
}

/* Checkout Box */
.checkout-box {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.checkout-box h3 {
    margin-bottom: var(--space-4);
    font-size: 1.1rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-main);
}

.qty-selector {
    display: flex;
    width: 140px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-selector button {
    width: 40px;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.qty-selector button:hover {
    background: #e5e7eb;
}

.qty-selector input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text-main);
}

.btn-block {
    width: 100%;
}

.btn-xl {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.secure-note {
    text-align: center;
    margin-top: var(--space-4);
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
}

/* Product Content (Long Description) */
.product-content {
    margin-top: var(--space-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-body {
    font-size: 1.125rem;
    color: #374151; /* Gray 700 */
}

/* FAQ Section */
.faq-section {
    padding: var(--space-16) 0;
    background: var(--color-bg-subtle);
    border-top: 1px solid var(--color-border);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.faq-item p {
    color: var(--color-text-muted);
}

/* Footer */
.site-footer {
    background: #000;
    color: #fff;
    padding: var(--space-12) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-col h3 {
    margin-bottom: var(--space-4);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.footer-col a {
    display: block;
    margin-bottom: var(--space-2);
    color: #d1d5db;
}

.footer-col a:hover {
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.25rem; }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .hero-image { order: -1; } /* Image First on Mobile */
    
    .hero-actions {
        flex-direction: column;
    }
    
    .features-grid { grid-template-columns: 1fr; }
    
    .product-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .product-gallery { position: static; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    .main-nav { display: none; } /* Could add hamburger later */
    
    .feature-highlight-section:nth-of-type(even) .feature-text {
        order: -1; /* Alternate layout */
    }
}

/* Secondary Button (Add to Cart) */
.btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.product-highlight-section {
    padding: var(--space-16) 0;
    background: #fff;
    border-top: 1px solid var(--color-border);
}

.highlight-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-12);
    margin-top: var(--space-8);
}

.highlight-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.highlight-image img:hover {
    transform: scale(1.02);
}

.highlight-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.highlight-price {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: var(--space-6);
    display: inline-block;
}

.highlight-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

/* ===== Legal/Page Section ===== */
.page-section {
    padding: var(--space-16) 0;
    background: var(--color-bg-subtle);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-4);
}

@media (max-width: 768px) {
    .highlight-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .highlight-image {
        order: -1;
    }
}

/* ===== Premium Product Description Styles ===== */
.product-description-container {
    font-family: var(--font-stack);
    color: #374151;
    line-height: 1.8;
}

.product-description-container h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
    color: var(--color-text-main);
    text-align: center;
    position: relative;
    padding-bottom: var(--space-4);
}

.product-description-container h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: var(--space-4) auto 0;
}

.product-description-container p {
    margin-bottom: var(--space-6);
    font-size: 1.05rem;
}

/* Feature Grid with Images */
.feature-highlight-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin: var(--space-12) 0;
    align-items: center;
    background: #f8fafc;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
}

.feature-highlight-section img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.feature-highlight-section h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-text-main);
}

/* Specs Table Styling */
.table-bordered {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-8) 0;
    font-size: 0.95rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.table-bordered td {
    padding: var(--space-3) var(--space-4);
    border: 1px solid #e5e7eb;
}

.table-bordered tr:nth-child(even) {
    background: #f9fafb;
}

.table-bordered tr:hover {
    background: #f0f9ff;
}

/* Trust Badges - New Addition */
.trust-badge-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin: var(--space-12) 0;
    flex-wrap: wrap;
}

.trust-badge {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.trust-badge img {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-2);
}

.trust-badge span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .feature-highlight-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .feature-highlight-section:nth-of-type(even) .feature-text {
        order: -1; /* Alternate layout */
    }
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}
