/* ===================================================================
   Amazon-Inspired Modern E-commerce Design System
   Created: 2024
   Design Philosophy: Clean, Functional, Search-Driven
   =================================================================== */

/* CSS Variables - Amazon Color Palette */
:root {
    /* Primary Amazon Colors */
    --amazon-orange: #FF9900;
    --amazon-blue: #232F3E;
    --amazon-light-blue: #37475A;
    --amazon-yellow: #FEBD69;
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F8F8;
    --bg-tertiary: #EAEDED;
    
    /* Text Colors */
    --text-primary: #0F1111;
    --text-secondary: #565959;
    --text-link: #007185;
    --text-link-hover: #C7511F;
    
    /* Border Colors */
    --border-light: #D5D9D9;
    --border-medium: #949494;
    --border-focus: #E77600;
    
    /* Success & Warning */
    --color-success: #067D62;
    --color-warning: #B12704;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Typography */
    --font-family: "Amazon Ember", Arial, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 28px;
    
    /* Shadows */
    --shadow-sm: 0 2px 5px 0 rgba(213,217,217,.5);
    --shadow-md: 0 2px 5px 0 rgba(15,17,17,.15);
    --shadow-lg: 0 4px 8px 0 rgba(15,17,17,.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.4;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================================================
   HEADER & NAVIGATION - Amazon Style
   =================================================================== */

.site-header {
    background-color: var(--amazon-blue);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.main-nav {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) 0;
    gap: var(--spacing-lg);
}

.nav-brand {
    flex-shrink: 0;
}

.nav-brand h1 {
    font-size: var(--font-size-xl);
    font-weight: 400;
    margin: 0;
}

.nav-brand a {
    color: white;
    text-decoration: none;
}

.nav-brand a:hover {
    color: var(--amazon-yellow);
}

/* Search Section */
.nav-search {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
    height: 39px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.nav-search input {
    flex: 1;
    border: none;
    padding: 0 var(--spacing-md);
    font-size: var(--font-size-md);
    outline: none;
    border: 2px solid transparent;
}

.nav-search input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(231, 117, 0, 0.3);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: var(--shadow-md);
    display: none;
}

.search-item {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--bg-tertiary);
    cursor: pointer;
}

.search-item:hover {
    background-color: var(--bg-secondary);
}

.search-item a {
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 400;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--amazon-light-blue);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: var(--spacing-sm);
}

/* ===================================================================
   BREADCRUMB NAVIGATION
   =================================================================== */

.breadcrumb {
    background-color: var(--bg-secondary);
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.breadcrumb a {
    color: var(--text-link);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-secondary);
}

/* ===================================================================
   HERO SECTION - Minimal Amazon Style
   =================================================================== */

.hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    padding: 0;
    padding-right: 20px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9f00, #ffb84d);
    color: #0f1111;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(255, 159, 0, 0.2);
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff9f00, #ffb84d);
    color: #0f1111;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 159, 0, 0.25);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #007185;
    padding: 12px 24px;
    border: 1px solid #007185;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modern Hero Section - Premium Design */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 159, 0, 0.05) 0%, 
        rgba(0, 113, 133, 0.08) 25%, 
        rgba(177, 39, 4, 0.03) 50%, 
        rgba(35, 47, 62, 0.1) 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 159, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 113, 133, 0.1) 0%, transparent 50%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content {
    padding: 0;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9f00, #ffb84d);
    color: #0f1111;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(255, 159, 0, 0.3);
}

.hero-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 36px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #B12704;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: #565959;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 159, 0, 0.6);
}

.btn-outline:hover {
    background: #007185;
    color: white;
}

/* Premium Product Spotlight */
.hero-product {
    position: relative;
}

.product-spotlight {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    max-width: 280px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9f00, #007185, #B12704);
}

.trending-badge {
    position: absolute;
    top: -8px;
    right: 20px;
    background: #ff6b35;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.product-visual {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}

.product-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 159, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.product-visual img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.product-visual:hover img {
    transform: scale(1.05) rotate(2deg);
}

.product-info-card {
    text-align: center;
}

.rating-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rating-star {
    background: #f7f7f7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.reviews-count {
    background: #e8f4f8;
    color: #007185;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-name {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.product-name a {
    color: #0f1111;
    text-decoration: none;
}

.product-name a:hover {
    color: #007185;
}

.price-display {
    margin-bottom: 24px;
}

.sale-price {
    font-size: 24px;
    font-weight: 700;
    color: #B12704;
    margin-right: 12px;
}

.regular-price {
    font-size: 16px;
    color: #565959;
    text-decoration: line-through;
    margin-right: 8px;
}

.save-amount {
    background: #e47911;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: #B12704;
    display: block;
    margin-bottom: 8px;
}

.free-shipping {
    color: #007600;
    font-size: 14px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ff9f00;
    color: #0f1111;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #fa8900;
    transform: translateY(-1px);
}

.view-details-btn {
    display: inline-block;
    background: transparent;
    color: #007185;
    padding: 12px 24px;
    border: 1px solid #007185;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: #007185;
    color: white;
}

/* Modern Placeholder */
.hero-placeholder-modern {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.placeholder-content {
    text-align: center;
    color: #6c757d;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.placeholder-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.placeholder-subtitle {
    font-size: 16px;
    opacity: 0.7;
}

/* ===================================================================
   BUTTON SYSTEM - Amazon Style
   =================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    min-height: 29px;
}

.btn-primary {
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border-color: #a88734 #9c7e31 #846a29;
    color: var(--text-primary);
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #f5d78e, #eeb933);
    border-color: #a88734 #9c7e31 #846a29;
}

.btn-amazon {
    background: var(--amazon-orange);
    color: white;
    border-color: var(--amazon-orange);
    font-weight: 400;
}

.btn-amazon:hover {
    background: #fa8900;
    border-color: #fa8900;
}

.btn-secondary {
    background: white;
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-link);
    color: var(--text-link);
}

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

.btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-md);
    min-height: 37px;
}

.btn-outline-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-md);
    min-height: 37px;
}

/* ===================================================================
   PRODUCT GRID - Amazon Style
   =================================================================== */

.featured-products,
.category-products {
    padding: var(--spacing-lg) 0;
    background: var(--bg-primary);
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: var(--font-size-xl);
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.section-header p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    transition: all 0.2s ease;
    position: relative;
}

.product-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

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

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: var(--color-warning);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 400;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.product-brand {
    font-size: var(--font-size-sm);
    color: var(--text-link);
    font-weight: 400;
    text-decoration: none;
}

.product-brand:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
}

.product-title {
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
}

.product-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--text-link);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.stars {
    color: var(--amazon-orange);
    font-size: var(--font-size-sm);
    letter-spacing: 1px;
}

.rating-text {
    font-size: var(--font-size-sm);
    color: var(--text-link);
}

.product-price {
    margin-bottom: var(--spacing-sm);
}

.price-current {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--color-warning);
}

.price-original {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-left: var(--spacing-sm);
}

.product-features-preview {
    margin-bottom: var(--spacing-md);
}

.product-features-preview ul {
    list-style: none;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.product-features-preview li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: var(--spacing-md);
}

.product-features-preview li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: auto;
}

/* ===================================================================
   CATEGORIES SECTION
   =================================================================== */

.categories-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.category-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.2s ease;
}

.category-card:hover {
    border-color: var(--amazon-orange);
    box-shadow: var(--shadow-sm);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.category-card h3 {
    font-size: var(--font-size-md);
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.category-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===================================================================
   FEATURES SECTION
   =================================================================== */

.features {
    padding: var(--spacing-xl) 0;
    background: white;
    border-top: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.feature-icon {
    font-size: 72px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    display: block;
    line-height: 1;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    opacity: 1;
}

.feature-item h3 {
    font-size: var(--font-size-md);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    margin-top: 0;
}

.feature-item p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===================================================================
   FOOTER
   =================================================================== */

.site-footer {
    background: var(--amazon-blue);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    font-size: var(--font-size-md);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: #DDD;
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-section p {
    font-size: var(--font-size-sm);
    color: #DDD;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid var(--amazon-light-blue);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: var(--font-size-sm);
    color: #DDD;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-links a {
    font-size: var(--font-size-lg);
    color: #DDD;
    transition: color 0.2s ease;
}

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

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .nav-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-controls-bar {
        top: 48px;
    }
    
    /* Mobile Hero Layout */
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
        max-width: 100%;
    }
    
    .hero-stats {
        gap: 20px;
        padding: 20px 0;
        margin-bottom: 30px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .btn-premium, .btn-outline {
        padding: 12px 24px;
        font-size: 14px;
        text-align: center;
        justify-content: center;
    }
    
    .product-spotlight {
        padding: 20px;
        border-radius: 16px;
        max-width: 280px;
    }
    
    .product-visual img {
        width: 140px;
        height: 140px;
    }
    
    .product-glow {
        width: 160px;
        height: 160px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .sale-price, .current-price {
        font-size: 20px;
    }
    
    .regular-price {
        font-size: 14px;
    }
    
    .hero-placeholder-modern {
        height: 300px;
        margin: 0 auto;
    }
    
    .placeholder-icon {
        font-size: 36px;
    }
    
    .placeholder-title {
        font-size: 20px;
    }
    
    .placeholder-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-card {
        padding: var(--spacing-sm);
    }
    
    .product-actions {
        gap: var(--spacing-xs);
    }
    
    .btn {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

.border-light { border: 1px solid var(--border-light); }
.border-radius { border-radius: var(--radius-sm); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

/* ===================================================================
   LOADING STATES & ANIMATIONS
   =================================================================== */

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.empty-state h3 {
    font-size: var(--font-size-lg);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.empty-state p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.no-products {
    padding: var(--spacing-xl) 0;
}

.no-products-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.no-products-content h2 {
    font-size: var(--font-size-xl);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.no-products-content p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.no-products-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
}

.page-link {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-link);
    background: white;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
}

.page-info {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
}

/* ===================================================================
   CATEGORY PAGE STYLES - Beautiful Amazon-inspired Design
   =================================================================== */

/* Category Hero Section */
.category-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: var(--spacing-sm) 0 var(--spacing-xs);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--amazon-orange) 0%, 
        var(--amazon-blue) 50%, 
        var(--amazon-orange) 100%);
}

/* Breadcrumb Navigation */
.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

.breadcrumb-link {
    color: var(--text-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--amazon-orange);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-secondary);
    font-weight: normal;
    margin: 0 var(--spacing-xs);
}

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

/* Category Content Layout */
.category-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-md);
    align-items: center;
}

.category-left {
    min-width: 0;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.category-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 500px;
    margin: 0;
}

/* Category Summary Card */
.category-right {
    display: flex;
    justify-content: flex-end;
}

.category-summary-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.category-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amazon-orange), #ff6b35);
}

.summary-content {
    text-align: center;
}

.product-count {
    margin-bottom: var(--spacing-sm);
}

.count-number {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    color: var(--amazon-orange);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.count-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 400;
}

.prime-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.1), rgba(0, 121, 107, 0.05));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 121, 107, 0.2);
}

.prime-icon {
    font-size: 1em;
    color: var(--color-success);
}

.prime-text {
    font-size: var(--font-size-xs);
    color: var(--color-success);
    font-weight: 500;
}

/* Product Controls Bar */
.product-controls-bar {
    background: #fafafa;
    border-bottom: 1px solid var(--border-light);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 48px;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.controls-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.results-info {
    flex: 1;
}

.results-count {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 400;
}

.controls-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.sort-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sort-label {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
}

.sort-select {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    background: white;
    color: var(--text-primary);
    min-width: 160px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-select:hover {
    border-color: var(--amazon-orange);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sort-select:focus {
    outline: none;
    border-color: var(--amazon-orange);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

/* Filter Tags (if added later) */
.active-filters {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    border: 1px solid var(--border-light);
}

.filter-tag-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    font-size: var(--font-size-sm);
    line-height: 1;
}

.filter-tag-remove:hover {
    color: var(--color-warning);
}

/* ===================================================================
   CATEGORY PAGE RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 1024px) {
    .category-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .category-right {
        justify-content: center;
        margin-top: var(--spacing-sm);
    }
    
    .category-summary-card {
        max-width: 200px;
        width: 100%;
    }
    
    .controls-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .controls-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: var(--spacing-xs) 0 2px;
    }
    
    .category-breadcrumb {
        margin-bottom: var(--spacing-xs);
        font-size: var(--font-size-xs);
    }
    
    .category-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .category-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .category-summary-card {
        padding: var(--spacing-sm);
        min-width: 160px;
    }
    
    .count-number {
        font-size: 1.75rem;
    }
    
    .product-controls-bar {
        top: 48px;
    }
    
    .sort-section {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-xs);
        width: 100%;
    }
    
    .sort-select {
        min-width: auto;
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .category-hero {
        padding: 2px 0;
    }
    
    .category-breadcrumb {
        font-size: var(--font-size-xs);
        margin-bottom: 2px;
        flex-wrap: wrap;
    }
    
    .breadcrumb-separator {
        margin: 0 2px;
    }
    
    .category-title {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 2px;
    }
    
    .category-description {
        font-size: var(--font-size-xs);
        line-height: 1.4;
    }
    
    .category-summary-card {
        min-width: 140px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .count-number {
        font-size: 1.5rem;
    }
    
    .count-label, .prime-text {
        font-size: var(--font-size-xs);
    }
    
    .product-controls-bar {
        padding: var(--spacing-xs) 0;
        top: 48px;
    }
    
    .results-count {
        font-size: var(--font-size-xs);
        text-align: center;
    }
    
    .sort-label {
        font-size: var(--font-size-xs);
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* ===================================================================
   NEWSLETTER SECTION
   =================================================================== */

.newsletter {
    background-color: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-light);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.newsletter-content p {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--amazon-orange);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    /* Mobile optimization for feature icons */
    .feature-icon {
        font-size: 60px;
        margin-bottom: var(--spacing-md);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-icon {
        font-size: 64px;
    }
} 
/* Mobile optimization for feature icons */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-icon {
        font-size: 64px;
    }
}

@media (max-width: 480px) {
    .feature-icon {
        font-size: 56px;
        margin-bottom: var(--spacing-md);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
}

/* ===================================================================
   CATEGORY PAGE ENHANCEMENTS
   =================================================================== */

.category-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 20px;
}

.category-info {
    flex: 1;
}

.category-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f1111;
    margin: 0 0 12px 0;
}

.category-description {
    font-size: 14px;
    color: #565959;
    line-height: 1.4;
    margin: 0 0 16px 0;
    max-width: 600px;
}

.category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.results-count {
    font-size: 14px;
    color: #565959;
}

.category-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-controls label {
    font-size: 14px;
    color: #0f1111;
    font-weight: 600;
}

.sort-dropdown {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    color: #0f1111;
    cursor: pointer;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #ff9f00;
    box-shadow: 0 0 0 2px rgba(255, 159, 0, 0.2);
}

.category-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.stat-box {
    background: linear-gradient(135deg, #ff9f00, #ffb84d);
    color: #0f1111;
    padding: 16px 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(255, 159, 0, 0.3);
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prime-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #007185;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.prime-badge i {
    color: #ff9f00;
}

/* Mobile responsive styles for category page */
@media (max-width: 768px) {
    .category-header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .category-stats {
        align-items: center;
        flex-direction: row;
        justify-content: center;
    }
    
    .category-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .category-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .stat-box {
        min-width: 100px;
        padding: 12px 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .category-info h1 {
        font-size: 24px;
    }
    
    .category-description {
        font-size: 13px;
    }
    
    .category-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-box {
        width: 100%;
        max-width: 200px;
    }
}
