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

html { width: 100%; overflow-x: hidden; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    width: 100%;
    overflow-x: hidden; /* prevent page-level horizontal scrollbar */
    animation: fadeIn 0.8s ease-in;
    padding-top: 50px; /* Add top padding for fixed promotional banner */
}

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

/* Pepperfry-inspired Color Scheme */
:root {
    --primary-color: #ff6b35;
    --primary-light: #ff8c42;
    --primary-dark: #e55a2b;
    --primary-darker: #d44a1f;
    --secondary-color: #2c3e50;
    --accent-color: #ffa726;
    --accent-light: #ffb74d;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --orange-gradient: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa726 100%);
    --orange-gradient-light: linear-gradient(135deg, #ff8c42 0%, #ffa726 50%, #ffb74d 100%);
    --orange-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    --orange-shadow-light: 0 2px 10px rgba(255, 107, 53, 0.2);
    --danger-color: #e74c3c;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #bdc3c7;
}

/* Promotional Banner */
.promotional-banner {
    background: var(--orange-gradient);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    overflow: hidden;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.promotional-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

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

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0px; /* Position below the fixed promotional banner */
    z-index: 1001;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    margin-right: 0.5rem;
}

.desktop-nav {
    display: flex;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: block;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

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

.mobile-menu-header {
    background: var(--light-gray);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-menu-section {
    margin-bottom: 1rem;
}

.mobile-menu-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mobile-menu-section-header:hover {
    background-color: var(--light-gray);
}

.mobile-menu-section-header h3 {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.toggle-icon {
    color: var(--text-light);
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.mobile-menu-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu-section-content.expanded {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.mobile-menu-section-content.collapsed {
    max-height: 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.mobile-menu-item .icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-light);
}

.mobile-menu-item button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.user-menu-section {
    display: none;
}

.user-menu-section.hidden {
    display: none;
}

.user-menu-section:not(.hidden) {
    display: block;
}

.mobile-menu-item .text {
    flex: 1;
}

.mobile-menu-item .arrow {
    color: var(--text-light);
    font-size: 0.8rem;
}

.mobile-menu-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.mobile-menu-footer h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.mobile-menu-footer p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.download-icon {
    background: white;
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

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

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;

/* === Home: Category Showcases === */
.category-showcases {
    padding: 2rem 0;
    background: #fafafa;
}
.category-showcases-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.category-row {
    margin-bottom: 2.5rem;
}
.category-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .5rem .75rem;
    margin: 0 0 1rem;
    border-bottom: 1px solid #eef2f6;
}
.category-row-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: .2px;
    margin: 0;
}
.category-row-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    background: #fff;
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all .2s ease;
}
.category-row-link::after { content: '›'; font-weight: 700; line-height: 1; }
.category-row-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}



/* Category showcase product cards - use same styles as featured products */
.category-row-grid .product-card {
    flex: 0 0 calc((100% - 5rem) / 6);
    min-width: 180px;
    max-width: 220px;
}

@media (max-width: 1024px) {
    .category-row-grid .product-card {
        flex: 0 0 calc((100% - 2.25rem) / 4);
        min-width: 160px;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .category-row-grid {
        gap: 0.75rem;
    }
    .category-row-grid .product-card {
        flex: 0 0 calc((100% - 0.75rem) / 2);
        min-width: 140px;
        max-width: none;
    }
    .category-row-header {
        padding: 0;
        margin-bottom: 0.75rem;
    }
    .category-row-title {
        font-size: 1.25rem;
    }
}

    font-weight: 500;
    transition: color 0.3s;
}

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

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

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

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    width: 250px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary-color);
}

.cart-icon, .wishlist-icon {
    position: relative;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
}
.account-icon {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.account-icon:hover { color: var(--primary-color); background: rgba(255,107,53,0.08); }


.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: var(--orange-gradient);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

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

.btn-success:hover {
    background: #219a52;
}

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

.btn-danger:hover {
    background: #c0392b;
}

/* Hero and Carousel Container */
.hero-carousel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
        font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Carousel Section */
.carousel-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 140, 66, 0.1) 50%, rgba(255, 167, 38, 0.1) 100%);
    z-index: 1;
}

.carousel-section > * {
    position: relative;
    z-index: 2;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--orange-shadow), 0 10px 30px rgba(0,0,0,0.2);
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 301px;
}

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

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
        gap: 10px;
    }

.carousel-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.carousel-indicator.active {
    background: var(--primary-color);
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fff8f5 0%, #fff0e6 100%);
    position: relative;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 167, 38, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.categories > * {
    position: relative;
    z-index: 2;
}

.categories-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--orange-gradient);
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--orange-shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 107, 53, 0.1);
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--orange-gradient-light);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.category-card:hover::before {
    left: 0;
    opacity: 0.05;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--orange-shadow);
    border-color: var(--primary-color);
}

.category-card img {
    width: 100%;
        height: 200px;
        object-fit: cover;
    }

.category-info {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.category-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.category-card:hover .category-info h3 {
    color: var(--primary-color);
}

.category-count {
    color: #666;
        font-size: 0.9rem;
    }

/* Products Section */
.products {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 30% 70%, rgba(255, 167, 38, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.products > * {
    position: relative;
    z-index: 2;
}

.products-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Page Header */
.page-header {
    background: var(--orange-gradient);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Products Section with Filters */
.products-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

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

.filter-group h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.filter-options label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: #666;
}

.filter-options input[type="radio"] {
    margin-right: 0.5rem;
}

.filter-options input[type="radio"]:checked + span {
    color: #007bff;
    font-weight: 500;
}

/* Products Main Content */
.products-main {
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding:0 1rem 1rem;
    border-bottom: 1px solid #eee;
}

.products-count {
        font-size: 1.1rem;
    color: #666;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.products-sort label {
    color: #666;
    font-weight: 500;
}

.products-sort select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.products-sort select:focus {
    border-color: #007bff;
}

/* Load More */
.load-more-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Authentication Pages */
.auth-section {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 600px; /* +50% desktop width */
}


/* Desktop: increase overall auth container width by 50% */
@media (min-width: 992px){
  .auth-container{ max-width: 600px; }
}

.auth-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.auth-header { text-align: center; margin-bottom: 2rem; }

/* Pepperfry-like desktop layout for auth */
@media (min-width: 992px){
  .pf-auth { display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; overflow: hidden; }
  .auth-illustration { display:block !important; background: linear-gradient(135deg,#ffe6de,#fff4ef); padding: 2rem; color:#5c2c1f; }
  .auth-illustration h2{ font-size:2rem; margin-bottom:.5rem; }
  .auth-illustration p{ opacity:.85; }
  .auth-content { padding: 2rem; background:#fff; }
  .auth-section { background: #f5f7fa; }
}

.auth-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
        border-radius: 8px;
        font-size: 1rem;
    transition: border-color 0.3s;
}
.terms-group input{
    width:auto;
    height: auto !important;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
        border-radius: 8px;
        font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #007bff;
}

.btn-block {
        width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

.auth-footer p {
    color: #666;
    margin-bottom: 0.5rem;
}

.auth-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.demo-credentials {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
        text-align: center;
    cursor: pointer;
    transition: background 0.3s;
}

.demo-credentials:hover {
    background: #e9ecef;
}

.demo-credentials h3 {
    color: #333;
    margin-bottom: 1rem;
        font-size: 1.1rem;
}

.demo-credentials p {
    color: #666;
    margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

.demo-credentials strong {
    color: #333;
}

/* Cart Page Styles */
.cart-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
    overflow-x: hidden;
}
.cart-items, .cart-summary { min-width: 0; }

.cart-items h2 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
}

.cart-items-list {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 100px;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-image img {
    width: 100%;
    height: 53px; /* 600x400比例：80x53 */
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.variant {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

.cart-item-quantity label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 500;
}

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

.quantity-controls .btn {
    padding: 0.25rem 0.5rem;
    min-width: 35px;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-item-total {
    text-align: center;
}

.total-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.total-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

.cart-item-actions {
    text-align: center;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.empty-cart h2 {
    color: #666;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.empty-cart p {
    color: #999;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 400px;
}

.empty-cart .btn {
    margin-top: 1rem;
}

/* 空购物车时，cart-container使用单列布局并居中 */
.cart-container:has(.empty-cart) {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 600px;
}

.cart-container:has(.empty-cart) .cart-items {
    width: 100%;
    max-width: 500px;
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.summary-card h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    border-top: 2px solid #007bff;
    margin-top: 1rem;
    padding-top: 1rem;
}

.checkout-btn {
    margin-top: 1.5rem;
}

/* Responsive Design for Cart Page */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }


/* Make cart single-column earlier to avoid page-level overflow on medium screens */
@media (max-width: 1360px) {
  .cart-container { grid-template-columns: 1fr; gap: 1rem; }
  .cart-summary { position: static; order: 1; }
  .cart-items { order: 2; }
}

    .cart-summary {
        position: static;
        order: 1;
    }

    .cart-items {
        order: 2;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem 0;
    }

    .cart-item-image img {
        width: 80px;
        height: 53px; /* 600x400比例：80x53 */
        margin: 0 auto;
        border-radius: 6px;
    }
    
    .cart-item-details h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .variant {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
    }
    
    .total-amount {
        font-size: 1rem;
    }

    .quantity-controls {
        justify-content: center;
    }
    
    .quantity-controls .btn {
        padding: 0.2rem 0.4rem;
        min-width: 30px;
        font-size: 0.8rem;
    }
    
    .quantity-controls input {
        width: 50px;
        font-size: 0.8rem;
    }
}

/* 更小屏幕优化 (480px以下) */
@media (max-width: 480px) {
    .cart-item {
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .cart-item-image img {
        width: 60px;
        height: 40px; /* 600x400比例：60x40 */
        border-radius: 4px;
    }
    
    .cart-item-details h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
        -webkit-line-clamp: 2;
    }
    
    .variant {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .cart-item-price {
        font-size: 0.8rem;
    }
    
    .total-amount {
        font-size: 0.9rem;
    }
    
    .quantity-controls .btn {
        padding: 0.15rem 0.3rem;
        min-width: 25px;
        font-size: 0.7rem;
    }
    
    .quantity-controls input {
        width: 40px;
        font-size: 0.7rem;
    }
    
    /* 移动端空购物车优化 */
    .empty-cart {
        min-height: 300px;
        padding: 2rem 1rem;
    }
    
    .empty-cart h2 {
        font-size: 1.5rem;
    }
    
    .empty-cart p {
        font-size: 1rem;
        max-width: 300px;
    }
    
    .cart-container:has(.empty-cart) {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .cart-container:has(.empty-cart) .cart-items {
        max-width: 100%;
    }
    
    /* 移动端装饰元素优化 */
    .floating-shape {
        display: none; /* 移动端隐藏浮动形状 */
    }
    
    .category-sparkle {
        font-size: 1.2rem;
    }
    
    .product-glow {
        width: 150px;
        height: 150px;
    }
    
    .banner-icon, .banner-sparkle {
        font-size: 0.9rem;
    }
    
    /* 移动端Legal Links优化 */
    .footer-legal-links {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .legal-link {
        font-size: 0.8rem;
    }
    
    .separator {
        font-size: 0.7rem;
    }
    
    /* 移动端弹窗优化 */
    .privacy-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }
    
    .privacy-modal {
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        animation: modalSlideUp 0.3s ease-out;
    }
    
    .privacy-modal header {
        padding: 1rem 1.5rem 0.75rem;
        font-size: 1.3rem;
    }
    
    .privacy-modal .content {
        padding: 1.5rem;
    }
    
    .privacy-modal .content h3 {
        font-size: 1.1rem;
    }
    
    .privacy-modal footer {
        padding: 0.75rem 1.5rem 1rem;
    }
    
    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Wishlist Page Styles */
.wishlist-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.wishlist-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wishlist-content h2 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.wishlist-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.wishlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.wishlist-item-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.wishlist-item:hover .wishlist-item-image img {
    transform: scale(1.05);
}

.wishlist-item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.wishlist-item-info {
    padding: 1.5rem;
}

.wishlist-item-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.4;
}

.wishlist-item-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wishlist-item-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wishlist-item-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.wishlist-item-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
}

.wishlist-item-actions .btn {
    flex: 1;
}

.empty-wishlist {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.empty-wishlist h2 {
    color: #666;
    margin-bottom: 1rem;
}

.empty-wishlist p {
    color: #999;
    margin-bottom: 2rem;
}

/* Responsive Design for Wishlist Page */
@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .wishlist-item-actions {
        flex-direction: column;
    }
}

/* About Page Styles */
.about-section {
    padding: 4rem 0;
    background: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
        font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    }

.contact-info p {
        font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
        flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: #666;
    margin-bottom: 0.25rem;
        font-size: 1rem;
}

.contact-details p:last-child {
    margin-bottom: 0;
        font-size: 0.9rem;
    color: #999;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 2.5rem;
        border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form-container h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
        text-align: center;
    }

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

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

/* Product Detail Page Styles */
.product-detail-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

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

.variant-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.variant-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.variant-image.active {
    border-color: var(--primary-color);
}

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

.product-info h1 {
        font-size: 2.5rem;
    color: var(--text-dark);
        margin-bottom: 1rem;
    }

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
        margin-bottom: 1.5rem;
    }

.product-rating .reviews {
    color: var(--text-light);
        font-size: 0.9rem;
    }

.product-price {
    display: flex;
        align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-price .current-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-description {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.product-variants {
    margin-bottom: 2rem;
}

.product-variants h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.variant-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
        font-size: 1rem;
    background: white;
}

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

.product-quantity {
    margin-bottom: 2rem;
}

.product-quantity label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

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

.quantity-controls .btn {
    padding: 0.5rem;
    min-width: 40px;
}

.quantity-input {
    width: 80px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-actions .btn {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
}

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

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

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

.product-features h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

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

/* Product Details Tabs */
.product-details-tabs {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

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

.specifications-grid,
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.spec-item,
.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.spec-label,
.detail-label {
    font-weight: 500;
    color: var(--text-dark);
}

.spec-value,
.detail-value {
    color: var(--text-light);
}

.reviews-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.rating-overview {
    display: flex;
        align-items: center;
    gap: 1rem;
}

.overall-rating {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

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

.review-item {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 500;
    color: var(--text-dark);
}

.review-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Design for Product Detail */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .product-info h1 { font-size: 1.4rem; }
    .product-images .main-image { border-radius: 12px; overflow: hidden; }
    .variant-images { gap: .5rem; }
    .variant-image { width: 72px; height: 72px; }
    .product-actions .btn.btn-large { height: 42px; }
    .product-detail-container { padding: 0 .75rem; }
}

/* Product Detail: scoped mobile/tablet fixes */
.product-detail .product-info{ padding: 1.25rem; }
.product-detail .product-actions{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-detail .variant-images{ display:flex; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 992px){
  .product-detail{ grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem; }
  .product-detail .product-info h1{ font-size: 1.25rem; }
  .product-detail .product-actions{ grid-template-columns: 1fr; }
  .product-detail .variant-images{ flex-wrap: wrap; }
  .product-detail .variant-image{ width: 64px; height: 64px; }
  .product-detail-container{ padding: 0 .75rem; }

  /* Mobile: optimize image display for 600x400 ratio */
  .product-detail .main-image{ aspect-ratio: 3/2; height: auto; border-radius: 12px; }
  .product-detail .main-image img{ object-fit: contain; background: #f8f9fa; }

  /* Mobile: improve text layout and spacing */
  .product-detail .product-info{ padding: 1rem; }
  .product-detail .product-rating{ margin: .5rem 0; }
  .product-detail .product-price{ margin: .75rem 0; align-items: baseline; gap: .75rem; }
  .product-detail .product-description{ margin: .75rem 0; line-height: 1.5; }
  .product-detail .product-quantity{ margin: 1rem 0; }
  .product-detail .product-features{ margin-top: 1rem; }
  .product-detail .product-features ul{ padding-left: 1.25rem; }
  .product-detail .product-features li{ margin-bottom: .25rem; }
  /* Mobile: beautify price display */
  .product-detail .product-price .current-price{ font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
  .product-detail .product-price .old-price{ font-size: 1rem; color: #9ca3af; text-decoration: line-through; }
  .product-detail .product-price .discount{
    background: linear-gradient(135deg, #10b981, #059669); color: #fff;
    padding: 4px 8px; border-radius: 6px; font-size: .8rem; font-weight: 600;
    box-shadow: 0 2px 4px rgba(16,185,129,0.2);
  }
}


/* products.html: PC 端 3 列布局 */
@media (min-width: 1200px){
  body.products-page .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* cart: 表格横向滚动样式 */
.cart-section { overflow-x: hidden; }
.cart-table-wrapper { max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--border-color); border-radius: 10px; }
.cart-table { width: 100%; min-width: 960px; border-collapse: collapse; table-layout: auto; }
.cart-table th, .cart-table td { padding: 12px 14px; border-bottom: 1px solid #eee; text-align: left; }
.cart-table th { position: sticky; top: 0; background: #f8fafc; font-weight: 700; color: #374151; z-index: 1; }
.cart-table .qty-cell { white-space: nowrap; }
.cart-table img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; }
.cart-actions-row { display: flex; gap: 10px; }

@media (max-width: 768px) {
    .product-actions { flex-direction: column; }
    .tab-navigation { flex-direction: column; }
    .specifications-grid, .details-grid { grid-template-columns: 1fr; }
    .mobile-menu-toggle { display: block; }
    .desktop-nav, .header-center { display: none; }
    .header-left { flex: 1; display: flex; align-items: center; gap: .5rem; min-width: 0; }
    .header-right { flex: 0 0 auto; display: flex; align-items: center; gap: .5rem; }
    .logo img { height: 32px; width: auto; max-width: 120px; }
    .wishlist-icon, .cart-icon { font-size: 1.2rem; padding: .5rem; display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; }
    .search-box input { width: 150px; }
    .bottom-nav { display: flex; }
    .promotional-banner { font-size: .8rem; padding: .4rem; }
}

/* Checkout Page Styles */
.checkout-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Shipping Information */
.shipping-info {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.shipping-info h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.checkout-form .form-group {
    margin-bottom: 1.5rem;
}

.checkout-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.checkout-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.checkout-form input:focus {
    outline: none;
    border-color: #007bff;
}

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

/* Order Summary */
.order-summary {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
}

.order-items {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.order-item img {
    width: 60px;
    height: 40px; /* 600x400比例：60x40 */
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    min-width: 0; /* 允许内容收缩 */
}

.item-details h4 {
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-details p {
    color: #666;
    font-size: 0.9rem;
    margin: 0.2rem 0;
    line-height: 1.2;
}

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

/* 移动端优化 */
@media (max-width: 768px) {
    .order-item {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .order-item img {
        width: 50px;
        height: 33px; /* 600x400比例：50x33 */
        border-radius: 6px;
    }
    
    .item-details h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
        -webkit-line-clamp: 2;
    }
    
    .item-details p {
        font-size: 0.8rem;
        margin: 0.15rem 0;
    }
    
    .item-price {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .order-item {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .order-item img {
        width: 45px;
        height: 30px; /* 600x400比例：45x30 */
        border-radius: 4px;
    }
    
    .item-details h4 {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
        -webkit-line-clamp: 2;
    }
    
    .item-details p {
        font-size: 0.75rem;
        margin: 0.1rem 0;
    }
    
    .item-price {
        font-size: 0.85rem;
    }
}

.order-totals {
    border-top: 2px solid #f0f0f0;
    padding-top: 1rem;
}

/* Index Page Decorations */
.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.banner-icon, .banner-sparkle {
    animation: bounce 2s infinite;
}

.banner-sparkle {
    animation-delay: 0.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Floating Shapes for Carousel */
.carousel-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(255, 167, 38, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Category Sparkles */
.categories-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.category-sparkle {
    position: absolute;
    font-size: 1.5rem;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 25%;
    right: 8%;
    animation-delay: 1s;
}

.sparkle-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Product Glow Effects */
.products-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.product-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: glow 4s ease-in-out infinite;
}

.glow-1 {
    top: 10%;
    left: -50px;
    animation-delay: 0s;
}

.glow-2 {
    bottom: 10%;
    right: -50px;
    animation-delay: 2s;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Footer Legal Links */
.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legal-link {
    color: #b3b8bf;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.legal-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.separator {
    color: #666;
    font-size: 0.8rem;
}

/* Legal Modal Styles */
.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.privacy-overlay.show {
    opacity: 1;
    visibility: visible;
}

.privacy-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(50px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.privacy-overlay.show .privacy-modal {
    transform: translateY(0) scale(1);
}

.privacy-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--orange-gradient);
}

.privacy-modal header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.privacy-modal .content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    line-height: 1.6;
}

.privacy-modal .content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 600;
}

.privacy-modal .content h3:first-child {
    margin-top: 0;
}

.privacy-modal .content p {
    margin-bottom: 1rem;
    color: #555;
}

.privacy-modal .content ul,
.privacy-modal .content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-modal .content li {
    margin-bottom: 0.5rem;
    color: #555;
}

.privacy-modal footer {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    text-align: right;
}

/* Promo Code Styles */
.promo-code-container {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.promo-code-container input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.promo-code-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.promo-code-container .btn {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.promo-code-message {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.2rem;
}

.promo-code-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.promo-code-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.promo-code-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Discount row in order totals */
.discount-row {
    color: var(--success-color);
    font-weight: 600;
}

.discount-row .discount-label {
    color: var(--success-color);
}

.discount-row .discount-amount {
    color: var(--success-color);
    font-weight: 700;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.total-final {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    border-top: 1px solid #ddd;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

/* Order Success */
.order-success {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.order-success h2 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.order-number {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.thank-you {
    color: #999;
    margin-bottom: 2rem;
        font-size: 1rem;
    }

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Empty cart message */
.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-cart h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.empty-cart p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive Design for Checkout Page */
@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .order-summary {
        position: static;
        order: 1;
        padding: 1.5rem;
    }

    .shipping-info {
        order: 2;
        padding: 1.5rem;
    }

    .shipping-info h2 {
        font-size: 1.5rem;
    }
    
    .promo-code-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .promo-code-container .btn {
        width: 100%;
        padding: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .success-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive Design for Products Page */
@media (max-width: 768px) {
    .products-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filters-sidebar {
        position: static;
        order: 2;
    }

    .products-main {
        order: 1;
        padding: 0rem;
    }

    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .products-sort {
        width: 100%;
    }

    .products-sort select {
        flex: 1;
    }
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--orange-shadow-light);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 53, 0.08);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--orange-gradient-light);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 0.03;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--orange-shadow);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
        font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

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

.current-price {
    font-size: 1.3rem;
    font-weight: bold;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.old-price {
    font-size: 1rem;
    color: #666;
    text-decoration: line-through;
}

.discount {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
}

.rate {
    color: #666;
        font-size: 0.9rem;
    }

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    flex: 1;
    padding: 0.75rem;
}

/* Product Add to Cart Modal */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-modal-overlay.active {
    display: flex;
}

.product-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    background: white;
    border-radius: 12px 12px 0 0;
}

.product-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.product-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.product-modal-close:hover {
    background: var(--light-gray);
    color: var(--text-dark);
}

.product-modal-content {
    padding: 1.5rem;
}

.product-modal-image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-modal-info {
    margin-bottom: 1.5rem;
}

.product-modal-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

.product-modal-current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.product-modal-discount {
    background: #ff4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-modal-variants {
    margin-bottom: 1.5rem;
}

.product-modal-variant-group {
    margin-bottom: 1.25rem;
}

.product-modal-variant-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: block;
}

.product-modal-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-modal-variant-option {
    padding: 0.5rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
    text-align: center;
}

.product-modal-variant-option:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.product-modal-variant-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.product-modal-variant-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.product-modal-quantity {
    margin-bottom: 1.5rem;
}

.product-modal-quantity-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: block;
}

.product-modal-quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-modal-quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
}

.product-modal-quantity-btn {
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.2s;
}

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

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

.product-modal-quantity-value {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
}

.product-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.product-modal-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.product-modal-btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

.product-modal-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.product-modal-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.product-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mobile optimizations for modal */
@media (max-width: 768px) {
    .product-modal-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .product-modal {
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        animation: modalSlideUp 0.3s ease-out;
    }

    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .product-modal-header {
        padding: 1rem 1rem 0.75rem;
    }

    .product-modal-title {
        font-size: 1.1rem;
    }

    .product-modal-content {
        padding: 1rem;
    }

    .product-modal-image {
    }

    .product-modal-name {
        font-size: 1rem;
    }

    .product-modal-current-price {
        font-size: 1.2rem;
    }

    .product-modal-variant-options {
        gap: 0.4rem;
    }

    .product-modal-variant-option {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: 50px;
    }

    .product-modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .product-modal-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f5 100%);
    border-top: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
        font-size: 0.8rem;
    transition: color 0.3s;
    padding: 0.5rem;
    min-width: 60px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item .icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--text-dark);
    transition: all 0.3s;
    font-family: Arial, sans-serif;
}

.bottom-nav-item.active .icon {
    background: var(--orange-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    transform: scale(1.1);
}

.bottom-nav-item .label {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--orange-gradient);
    color: white;
    padding: 3rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.footer > * {
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #007bff;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Messages */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    color: white;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.message-success {
    background: #28a745;
}

.message-warning {
    background: #ffc107;
    color: #333;
}

.message-error {
    background: #dc3545;
}

.message-info {
    background: #17a2b8;
}

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

/* Product Preview Modal */
.product-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.close-modal:hover {
    color: #333;
}

.product-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.product-preview .product-image img {
        width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.product-preview .product-info h3 {
    margin-bottom: 1rem;
    color: #333;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.actions {
    display: flex;
    gap: 1rem;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .bottom-nav {
    display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 0.5rem;
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        gap: 0;
        padding: 0.75rem 1rem;
    }

    .nav-menu {
    flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .search-box input {
        width: 100%;
        max-width: 300px;
    }

    .hero-carousel-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .carousel {
        max-width: 100%;
    margin: 0;
}

    .carousel-item {
        height: 200px;
    }

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

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .product-preview {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
.pf-header{
  background: linear-gradient(135deg, #fff8f5 0%, #fff2eb 100%) !important;
  color: #333 !important;
  padding: 0 !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(255,107,53,0.1);
  position: relative; overflow: hidden;
}
.pf-header::before{
  content:""; position:absolute; top:0; right:-20%; width:40%; height:100%;
  background: radial-gradient(ellipse at center, rgba(255,107,53,0.08), transparent 70%);
  animation: headerGlow 4s ease-in-out infinite alternate;
}
.pf-header .page-header-content{ position:relative; z-index:2; padding: 1.5rem 1rem; max-width: 1200px; margin: 0 auto; }

@media (max-width: 480px) {
    .hero-carousel-container {
        padding: 0.5rem;
    }

    .hero {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .categories-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    .category-card {
        width: 100%;
        min-width: auto;
    }

    .category-card img {
        height: 120px;
    }

    .category-card h3 {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .product-card {
        margin: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        gap: 0.25rem;
    }

    .product-price .current-price {
        font-size: 1.1rem;
    }

    .original-price {
        font-size: 0.85rem;
    }

    .product-rating {
        margin-bottom: 0.75rem;
    }

    .product-rating .stars {
        font-size: 0.8rem;
    }

/* === Pepperfry-style Page Headers === */

/* Breadcrumb navigation */


/* Keyframes for micro animations */
@keyframes headerGlow{ 0%{ opacity:.6; transform: translateX(10px); } 100%{ opacity:1; transform: translateX(-10px); } }
@keyframes titleSlideIn{ 0%{ opacity:0; transform: translateY(12px); } 100%{ opacity:1; transform: translateY(0); } }
@keyframes subtitleFadeIn{ 0%{ opacity:0; } 100%{ opacity:1; } }

/* Desktop responsive - keep consistent with mobile */
@media (min-width: 769px){
  .pf-header .page-header-content{ padding: 1.5rem 1rem; }
  .pf-header h1{ font-size: 2rem; }
  .breadcrumb{ font-size: .9rem; gap: .5rem; }
}

/* Mobile responsive */
@media (max-width: 768px){
  .pf-header .page-header-content{ padding: 1rem .75rem; }
  .pf-header h1{ font-size: 1.5rem; }
  .breadcrumb{ font-size: .85rem; gap: .4rem; }
}
    .product-rating .rating-text {
        font-size: 0.75rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-height: 36px;
    }

    .carousel-item {
        height: 150px;
    }
}

/* 手机号输入框容器样式 */
.phone-input-container {
    display: flex;
    align-items: stretch;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

/* 固定区号显示样式 */
.fixed-area-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    flex-shrink: 0;
}

/* 手机号输入框样式调整 */
.phone-input-container input[type="tel"],
.phone-input-container input[name*="phone"],
.phone-input-container input[id*="phone"] {
    border: none;
    border-radius: 0;
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.phone-input-container input[type="tel"]:focus,
.phone-input-container input[name*="phone"]:focus,
.phone-input-container input[id*="phone"]:focus {
    box-shadow: none;
    border: none;
}

/* 整体聚焦效果 */
.phone-input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.hidden { display: none; }
.visible { display: block; }


/* ===============================
   Pepperfry-style Theme Overrides
   Non-destructive: CSS-only changes
   =============================== */
:root {
  --primary-color: #ff6b35; /* brand orange */
  --primary-dark: #e55a2b;
  --secondary-color: #222222;
  --text-dark: #1a1a1a;
  --text-light: #6b7280;
  --light-gray: #f5f6f7;
  --border-color: #e5e7eb;
}

body {
  background: #ffffff;
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  letter-spacing: 0.1px;
}

/* Top promo strip more contrast */
.promotional-banner {
  background: var(--orange-gradient);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.2px;
  overflow: hidden;
  animation: pulse 2s infinite;
}

.promotional-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

/* Header: revert to original desktop style */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-bottom: none;
}
.header-content { padding: .5rem; }
.logo img { height: 40px; }
.nav-menu { gap: 2rem; }
.nav-menu a {
  color: #333;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: normal;
}
.nav-menu a:hover {
  color: var(--primary-color);
  border-bottom-color: transparent;
}
.cart-icon, .wishlist-icon { color: inherit; }
/* keep cart-count color as-is elsewhere */

/* Hero: warm light gradient, darker text */
.hero {
  background: linear-gradient(90deg, #fff5ef 0%, #ffe4d6 60%);
  color: var(--text-dark);
  border-radius: 12px;
}
.hero h1 { color: var(--text-dark); letter-spacing: 0.3px; }
.hero p { color: #4b5563; }

/* Carousel polish */
.carousel { border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.carousel-indicator { background: rgba(0,0,0,0.2); }
.carousel-indicator.active { background: var(--primary-color); }

/* Section titles */
.section-title { color: var(--text-dark); font-weight: 700; letter-spacing: 0.2px; }

/* Category cards: lighter, bordered */
.category-card { border: 1px solid var(--border-color); box-shadow: none; }
.category-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.category-info h3 { color: var(--text-dark); }

/* Product grid & cards */
.products { background: #fafafa; }
.product-card { border: 1px solid var(--border-color); box-shadow: none; border-radius: 12px; }
.product-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.product-badge { background: var(--danger-color); }
.product-title { color: var(--text-dark); font-weight: 600; }
.current-price { color: var(--text-dark); }
.old-price, .original-price, .product-modal-original-price { color: #9ca3af; }
.discount, .product-modal-discount { background: #2bb673; }

/* Buttons */

/* === Footer (Pepperfry-inspired) === */
.pf-footer { background:#111; color:#c9cdd2;  }
.pf-footer-content { max-width:1200px; margin:0 auto; padding:32px 16px; display:grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap:24px; }
.pf-footer-col h3 { color:#fff; font-size:18px; margin:0 0 12px; }
.pf-list { list-style:none; margin:0; padding:0; }
.pf-list li { display:flex; align-items:center; gap:8px; margin:8px 0; color:#c9cdd2; }
.pf-links a { color:#c9cdd2; text-decoration:none; }
.pf-links a:hover { color:#fff; text-decoration:underline; }
.pf-newsletter .pf-note { color:#9aa0a6; margin:6px 0 12px; }
.pf-newsletter-form { display:flex; background:#1a1d21; border:1px solid #2b2f36; border-radius:28px; overflow:hidden; }
.pf-newsletter-form input { flex:1; padding:12px 16px; background:transparent; border:none; color:#e5e7eb; outline:none; }
.pf-newsletter-form button { padding:12px 18px; background: var(--primary-color); border:none; color:#fff; font-weight:700; cursor:pointer; }
.pf-newsletter-form button:hover { filter: brightness(1.05); }
.pf-footer-bottom { border-top:1px solid #1f2937; text-align:center; padding:16px; color:#9aa0a6; }
@media (max-width: 900px){ .pf-footer-content { grid-template-columns: 1fr; gap:16px; } .pf-newsletter-form { border-radius:12px; } }

.btn { border-radius: 6px; font-weight: 600; }
.btn-primary { background: var(--primary-color); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #ffffff; }

/* Surfaces: reduce heavy shadow, add borders */
.filters-sidebar, .products-main, .cart-items-list, .summary-card, .shipping-info, .auth-card {
  box-shadow: none;
}

/* Footer: deep charcoal */
.footer { background: #111111; }
.footer-section h3 { color: var(--primary-color); }
.footer-section p, .footer-section a { color: #b3b8bf; }
.footer-bottom { border-top-color: #1f2937; color: #9aa0a6; }

/* Bottom nav */
.bottom-nav { border-top-color: var(--border-color); }
.bottom-nav-item .icon { background: #edf1f5; color: var(--text-dark); }
.bottom-nav-item.active { color: var(--primary-color); }

/* Mobile menu feel */
.mobile-menu-header { background: #f7f7f9; }
.mobile-menu-item:hover { background: #f7f7f9; color: var(--primary-color); }

/* Lists and tabs */
.products-header { border-bottom-color: var(--border-color); }
.total-amount, .order-item-price { color: var(--text-dark); }
.tab-btn.active { border-bottom-color: var(--primary-color); color: var(--primary-color); }

@media (max-width: 768px) {
  .hero { border-radius: 10px; }
  .header { border-bottom: 1px solid var(--border-color); box-shadow: none; }

/* Mobile menu: beautify logout button */
.logout-menu-item{
  background: none;
  border: none;
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  text-align: left;
  color: var(--text-dark);
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.logout-menu-item:hover{ background: #f7f7f9; color: var(--primary-color); }
.logout-menu-item:focus{ outline: none; box-shadow: inset 0 0 0 2px rgba(255,107,53,.2); border-radius: 8px; }
.logout-menu-item .icon{
  margin-right: 1rem;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fdecec; color: #d53a3a;
  display:flex; align-items:center; justify-content:center;
  font-weight: 700; font-size: .9rem;
}
.logout-menu-item .text{ flex: 1; }

}


/* === Homepage hero + carousel layout refinement (reference-inspired) === */
.hero-carousel-container {
  grid-template-columns: 1.6fr 1fr; /* left bigger, right smaller */
  align-items: stretch;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
  min-height: clamp(320px, 38vw, 420px);
}

/* Make hero a banner-like image panel, keep existing texts (no extra copy) */
.hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  padding: 0; /* content handles its own padding */
  display: flex;
  align-items: flex-end;
  /* background: image + subtle dark overlay for readability */
  background-image:
    linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.05)),
    url('https://images.unsplash.com/photo-1616596871348-216eb3aa6c06?auto=format&fit=crop&w=1600&q=60');
  background-size: cover;
  background-position: center;
}
.hero .hero-content {
  width: 100%;
  padding: 1.5rem 1.5rem 1.75rem;
  max-width: none;
}
.hero h1 { color: #ffffff; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.hero p { color: #f3f4f6; opacity: 0.95; }
.hero .btn { box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

/* Carousel column should match hero height and aesthetics */
.carousel-section { height: 100%; }
.carousel {
  width: 100%;
  max-width: none; /* allow full column width */
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Ensure carousel has visible height and items stretch fully */
.carousel { min-height: clamp(320px, 38vw, 420px); }
.carousel-inner { height: 100%; }

.carousel-item { height: 100%; }
.carousel-item img { object-fit: cover; }

/* Dots closer to bottom, brand color when active */
.carousel-controls { bottom: 12px; }
.carousel-indicator { background: rgba(255,255,255,0.6); }
.carousel-indicator.active { background: var(--primary-color); }

/* Mobile adjustments: stack, comfortable heights */
@media (max-width: 768px) {
  .hero-carousel-container {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 0.75rem;
    padding: 0 0.75rem;
  }
  .carousel { border-radius: 12px; }
}

/* === Banner-only carousel (hero removed) === */
.carousel-section { height: auto; padding: 0.5rem 0; }
.carousel {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 721 / 301; /* keep native image proportion on PC */
  height: auto; /* override previous fixed heights */
  min-height: 0; /* cancel earlier min-height clamp */
  border-radius: 14px;
}
.carousel-inner { height: 100%; }
.carousel-item { height: 100%; }

@media (max-width: 768px) {
  /* keep same ratio on mobile for consistency; height auto by aspect-ratio */
  .carousel { aspect-ratio: 721 / 301; height: auto; min-height: 0; }
}


/* Add floating animation for cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.category-card:hover,
.product-card:hover {
    animation: float 2s ease-in-out infinite;
}

/* Icon styling for orange theme */
.wishlist-icon, .cart-icon {
    transition: all 0.3s ease;
    filter: hue-rotate(0deg) saturate(1.2) brightness(1.1);
}

.wishlist-icon:hover, .cart-icon:hover {
    transform: scale(1.1);
    filter: hue-rotate(15deg) saturate(1.5) brightness(1.2);
}

.mobile-menu-item .icon {
    transition: all 0.3s ease;
    filter: hue-rotate(0deg) saturate(1.1);
}

.mobile-menu-item:hover .icon {
    transform: scale(1.1);
    filter: hue-rotate(15deg) saturate(1.3);
}

.bottom-nav-item .icon {
    transition: all 0.3s ease;
    filter: hue-rotate(0deg) saturate(1.1);
}

.bottom-nav-item:hover .icon {
    transform: scale(1.1);
    filter: hue-rotate(15deg) saturate(1.3);
}

.bottom-nav-item.active .icon {
    filter: hue-rotate(15deg) saturate(1.4) brightness(1.2);
}

/* Welcome Popup Styles */
.welcome-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.welcome-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.welcome-popup {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(50px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.welcome-popup-overlay.show .welcome-popup {
    transform: translateY(0) scale(1);
}

.welcome-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--orange-gradient);
}

.welcome-popup-content {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

.welcome-cta-btn {
    background: var(--orange-gradient);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.welcome-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.welcome-cta-btn:hover::before {
    left: 100%;
}

.welcome-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.welcome-cta-btn:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .welcome-popup {
        max-width: 350px;
        margin: 1rem;
    }
    
    .welcome-popup-content {
        padding: 2.5rem 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .welcome-cta-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Category rows: use featured card grid but avoid full-width single item */
.category-row-grid.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: start;
}
@media (max-width: 1024px){
  .category-row-grid.products-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 768px){
  .category-row-grid.products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Unified Product Card Style Refresh === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 1.25rem;
  justify-content: start; /* avoid stretching single item */
  align-items: stretch;
}
@media (max-width: 1024px){
  .products-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
}
@media (max-width: 768px){
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }

.product-image { position: relative; aspect-ratio: 4 / 3; background: #f7f7f9; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-badge { position: absolute; top: 10px; right: 10px; background: var(--danger-color); color: #fff; padding: 4px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; }

.product-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-title { font-size: .98rem; font-weight: 600; color: var(--text-dark); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.product-price { display: flex; gap: 8px; align-items: baseline; }
.current-price { color: var(--text-dark); font-weight: 700; font-size: 1.05rem; }
.old-price { color: #9aa0a6; text-decoration: line-through; font-size: .95rem; }

.product-rating { color: #f59e0b; font-size: .85rem; display: flex; gap: 6px; align-items: center; }
.rate { color: #6b7280; font-size: .8rem; }

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

/* Homepage featured grid: tighter 4-col layout and richer hover */
@media (min-width: 1200px){
  body.home-page .products .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
body.home-page .product-card{ transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
body.home-page .product-card:hover{ transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); border-color: rgba(0,0,0,0.06); }
body.home-page .product-image::after{ content:""; position:absolute; inset:0; background: radial-gradient(120% 60% at 50% 120%, rgba(255,107,53,0.12), transparent 60%); opacity:0; transition: opacity .25s ease; }
body.home-page .product-card:hover .product-image::after{ opacity:1; }

.product-actions .btn { height: 40px; border-radius: 8px; font-weight: 600; }
.btn-secondary { background: #e9eef5; color: var(--text-dark); }
.btn-secondary:hover { background: #dde4ee; }

/* Ensure category showcase cards follow same sizing and not constrained by old rules */
.category-row-grid.products-grid .product-card { min-width: 0; max-width: none; }






/* Desktop: products.html keep 3 columns */
@media (min-width: 1200px){
  body.products-page .products-grid { grid-template-columns: repeat(3, 1fr); }
  .category-row-grid.products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop: index/home pages show 4 columns */
@media (min-width: 1200px){
  body:not(.products-page) .products-grid { grid-template-columns: repeat(4, 1fr); }
}



/* === Product card buttons: ensure full label visibility and mobile stacking === */
/* Desktop/tablet: allow wrapping and auto height so long labels are not clipped */
.product-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal; /* allow wrapping */
  line-height: 1.2;
  height: auto;           /* grow if two lines */
  min-height: 36px;       /* baseline height */
  padding: 10px 12px;     /* enough padding for two lines */
  font-size: 0.92rem;     /* slightly smaller to fit */
}
/* === Category header final overrides (ensure it takes effect) === */
.category-row .category-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .5rem .75rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid #eef2f6;
}
.category-row .category-row-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: .2px;
  margin: 0;
}
.category-row .category-row-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  background: #fff;
  border: 1px solid var(--border-color);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all .2s ease;
}
.category-row .category-row-link::after { content: '›'; font-weight: 700; line-height: 1; }
.category-row .category-row-link:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  text-decoration: none;
}
@media (max-width: 768px){
  .category-row .category-row-header { padding: .25rem .25rem .5rem; margin-bottom: .75rem; }
  .category-row .category-row-title { font-size: 1.1rem; }
  .category-row .category-row-link { padding: 5px 8px; font-size: .9rem; }



/* Auth pages: mobile optimizations */
@media (max-width: 640px){
  .auth-section { min-height: auto; background:#f5f7fa; padding: 1rem 1rem calc(80px + env(safe-area-inset-bottom, 0px)); }
  .auth-container { max-width: 100%; }
  .auth-card { padding: 1.25rem; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
  .auth-header h1 { font-size: 1.4rem; }
  .auth-header p { font-size: .95rem; color:#555; margin-top:.25rem; }
  .auth-form .form-group { margin-bottom: .9rem; }
  .auth-form label { font-size: .9rem; color:#444; }
  .auth-form input { height: 44px; padding: .65rem .75rem; font-size: 16px; border-radius: 10px; }
  .btn.btn-block { height: 44px; font-size: 16px; border-radius: 10px; }
  .auth-footer { margin-top: .75rem; display:flex; gap:.25rem; flex-wrap:wrap; font-size:.95rem; }
  .auth-footer a { color: var(--primary-color); }
  .demo-credentials { margin-top:.75rem; padding:.75rem; background:#fff; border:1px solid #eee; border-radius:10px; font-size:.9rem; }
}

}


/* Privacy modal (desktop + mobile, global scope) - Updated to use .show class */
.privacy-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;z-index:3000}
.privacy-overlay.show{display:flex}
.privacy-modal{background:#fff;max-width:720px;width:92vw;max-height:80vh;overflow:auto;border-radius:12px;box-shadow:0 24px 48px rgba(0,0,0,.2)}
.privacy-modal header{padding:14px 16px;border-bottom:1px solid #eee;font-weight:700}
.privacy-modal .content{padding:16px}
.privacy-modal footer{padding:12px 16px;border-top:1px solid #eee;text-align:right}


/* Auth terms checkbox */
.terms-group { margin-top: .25rem; }
.checkbox-label{ display:flex; align-items:center; gap:.5rem; font-size:.95rem; color:#444; flex-wrap:nowrap; }
.checkbox-label input{ margin-top:0; }
.checkbox-label a{ color: var(--primary-color); text-decoration: underline; }
.checkbox-label span{  overflow: hidden; text-overflow: ellipsis; }

/* Mobile: stack buttons vertically and keep labels fully visible */
@media (max-width: 640px){
  .product-actions { grid-template-columns: 1fr; }
  .product-actions .btn {
    width: 100%;
    min-height: 42px;
    font-size: 0.95rem;   /* readable on mobile */
    padding: 12px 14px;
  }
}

/* Payment Method Selection Styles */
.payment-methods {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.payment-option {
    flex: 1;
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 60px;
}

.payment-option input[type="radio"]:checked + .payment-label {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #fff5f0 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.payment-option input[type="radio"]:checked + .payment-label .payment-icon {
    transform: scale(1.1);
}

.payment-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.payment-text {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.payment-option input[type="radio"]:checked + .payment-label .payment-text {
    color: var(--primary-color);
}

/* Disabled payment option styles */
.payment-option.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.payment-option.disabled .payment-label {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #999;
    cursor: not-allowed;
}

.payment-option.disabled .payment-icon {
    opacity: 0.5;
}

.payment-option.disabled .payment-text {
    color: #999;
}

.coming-soon {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    margin-left: 0.5rem;
}

/* Order Success Modal Styles */
.order-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.order-success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.order-success-modal {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(50px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.order-success-overlay.show .order-success-modal {
    transform: translateY(0) scale(1);
}

.order-success-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--orange-gradient);
}

.order-success-content {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.success-message {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    white-space: pre-line;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    
    position: relative;
}



/* Mobile responsive for success modal */
@media (max-width: 640px) {
    .order-success-modal {
        max-width: 350px;
        margin: 1rem;
    }
    
    .order-success-content {
        padding: 2.5rem 1.5rem;
    }
    
    .success-message {
        font-size: 1rem;
        max-height: 250px;
    }
    
   
}

/* Mobile responsive for payment methods */
@media (max-width: 640px) {
    .payment-methods {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .payment-label {
        padding: 0.875rem;
        min-height: 56px;
    }
    
    .payment-icon {
        font-size: 1.25rem;
    }
    
    .payment-text {
        font-size: 0.9rem;
    }
}

/* Reviews Styles */
.reviews-container {
    margin-top: 1rem;
}

.reviews-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.overall-rating {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-overview .stars {
    font-size: 1.5rem;
    color: #ffc107;
}

.total-reviews {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.review-header {
    margin-bottom: 1rem;
}

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

.review-rating .stars {
    font-size: 1.2rem;
    color: #ffc107;
}

.rating-number {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.review-content {
    margin-top: 0.5rem;
}

.review-comment {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.no-reviews {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

/* Mobile responsive for reviews */
@media (max-width: 640px) {
    .reviews-summary {
        padding: 1rem;
    }
    
    .rating-overview {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .overall-rating {
        font-size: 2rem;
    }
    
    .rating-overview .stars {
        font-size: 1.25rem;
    }
    
    .review-item {
        padding: 1rem;
    }
    
    .review-rating .stars {
        font-size: 1rem;
    }
}
.breadcrumb{ display:flex; align-items:center; gap:.5rem; margin-bottom:.75rem; font-size:.9rem; }
.breadcrumb a{ color: var(--primary-color); text-decoration:none; transition: color .2s; }
.breadcrumb a:hover{ color: #e55a2b; }
.breadcrumb-separator{ color: #9ca3af; font-weight: 300; }
.breadcrumb-current{ color: #6b7280; font-weight: 500; }

/* Page title with micro animation */
.pf-header h1{
  font-size: 2rem !important; font-weight: 700; color: #1f2937 !important; margin: .5rem 0 .25rem !important;
  animation: titleSlideIn .6s ease-out;
}
.pf-header p{ color: #6b7280 !important; font-size: 1rem !important; margin: 0 !important; opacity: 1 !important; animation: subtitleFadeIn .8s ease-out .2s both; }