/* Combined CSS for StyleShop E-Commerce Website */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

:root {
    --primary: #4a6de5;
    --primary-light: #6d87ea;
    --primary-dark: #3a5bd0;
    --secondary: #f8f9fa;
    --secondary-dark: #e9ecef;
    --accent: #ff6b6b;
    --success: #28a745;
    --text: #212529;
    --text-light: #6c757d;
    --text-inverse: #f8f9fa;
    --bg: #f5f7fb;
    --bg-inverse: #121212;
    --card-bg: #ffffff;
    --card-bg-dark: #1e1e1e;
    --border: #dee2e6;
    --border-dark: #444;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.dark-theme {
    --text: #e9ecef;
    --text-light: #adb5bd;
    --bg: #121212;
    --card-bg: #1e1e1e;
    --border: #444;
    --secondary: #2d2d2d;
    --secondary-dark: #252525;
    --shadow: rgba(0, 0, 0, 0.3);
}

.container {
    margin: 0 20px;
    padding: 0 15px;
}

/* ===== HEADER STYLES ===== */
header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--secondary);
    border-radius: 20px;
    padding: 5px 15px;
    width: 40%;
    position: relative;
}

.search-container form {
    display: flex;
    width: 100%;
}

.search-container input {
    border: none;
    background: transparent;
    padding: 8px;
    width: 100%;
    outline: none;
    color: var(--text);
}

.search-container button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px var(--shadow);
    max-height: 300px;
    overflow-y: auto;
    z-index: 99;
    display: none;
}

.search-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

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

.search-suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.search-suggestion-item .suggestion-info {
    flex-grow: 1;
}

.search-suggestion-item .suggestion-title {
    font-weight: 500;
    color: var(--text);
}

.search-suggestion-item .suggestion-category {
    font-size: 12px;
    color: var(--text-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: var(--secondary);
}

.cart-icon {
    position: relative;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s;
    text-decoration: none;
}

.cart-icon:hover {
    background-color: var(--secondary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== MAIN CONTENT STYLES ===== */
.main-content {
    padding: 30px 0;
    flex: 1;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.section-title.centered {
    text-align: center;
}

.section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 10px;
    text-align: center;
}

/* ===== HERO SECTION STYLES ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(74, 107, 229, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.15) 0%, transparent 40%);
    z-index: 1;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    background: linear-gradient(to right, #4a6de5, #ff6b6b, #6d87ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 3s linear infinite, fadeIn 1s ease-out, textGlow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #e2e8f0;
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-btn {
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-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: 0.5s;
}

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

.hero-btn.primary {
    background: linear-gradient(135deg, #4a6de5 0%, #6d87ea 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(74, 107, 229, 0.3), 0 0 15px rgba(74, 107, 229, 0.5);
}

.hero-btn.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(74, 107, 229, 0.4), 0 0 20px rgba(74, 107, 229, 0.6);
}

.hero-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid #4a6de5;
    box-shadow: 0 0 10px rgba(74, 107, 229, 0.3), inset 0 0 5px rgba(74, 107, 229, 0.3);
}

.hero-btn.secondary:hover {
    background: rgba(74, 107, 229, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(74, 107, 229, 0.5), inset 0 0 10px rgba(74, 107, 229, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(to right, #4a6de5, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #cbd5e1;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #cbd5e1;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.4s forwards;
}

.hero-scroll-indicator i {
    margin-top: 10px;
    animation: bounce 2s infinite;
}

/* ===== FEATURED PRODUCTS STYLES ===== */
.featured-products {
    padding: 60px 0;
    background: var(--bg);
}

.featured-products-swiper {
    padding: 20px 50px 50px;
    position: relative;
}

.swiper-slide {
    height: auto;
    display: flex;
}

/* ===== PRODUCT GRID & LIST STYLES ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image {
    height: 200px;
    width: 100%;
    transform: scale(1.1);
    object-fit: contain;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text);
}

.wishlist-btn:hover {
    background: #fff;
}

.wishlist-btn.active {
    color: var(--accent);
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ffc107;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart {
    flex: 1;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

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

.view-details {
    padding: 10px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: var(--primary);
    color: white;
}

/* ===== OPTIONS BAR STYLES ===== */
.options-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: var(--secondary);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    color: var(--text-light);
}

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

.filter-options select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
}

/* ===== PRODUCT LIST VIEW STYLES ===== */
.product-list {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.product-list-item {
    display: flex;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    cursor: pointer;
}

.product-list-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.product-list-info {
    padding: 15px;
    flex-grow: 1;
}

/* ===== SEARCH META STYLES ===== */
.search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-size: 16px;
    color: var(--text-light);
}

.sort-filter {
    display: flex;
    gap: 10px;
}

.sort-filter select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
}

/* ===== SKELETON LOADER STYLES ===== */
.skeleton-loader {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.skeleton-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow);
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    height: 200px;
    width: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.long {
    width: 100%;
}

.skeleton-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.skeleton-button {
    height: 40px;
    flex: 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 5px;
}

.dark-theme .skeleton-image,
.dark-theme .skeleton-line,
.dark-theme .skeleton-button {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

/* ===== PAGINATION STYLES ===== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== CART STYLES ===== */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 40px;
}

.cart-items {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
    padding: 20px;
}

.cart-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

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

.cart-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.cart-item-price {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background: var(--secondary);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text);
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
}

.remove-item {
    color: var(--accent);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-item:hover {
    text-decoration: underline;
}

.cart-summary {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: var(--text);
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background: #218838;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.continue-shopping:hover {
    background: var(--primary-dark);
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
}

.empty-cart i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text);
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ===== RECENTLY VIEWED SECTION ===== */
.recently-viewed {
    margin-top: 40px;
}

/* ===== PRODUCT DETAIL MODAL STYLES ===== */
.product-detail-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    z-index: 102;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.product-detail-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    position: relative;
}

.product-detail-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.product-detail-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.product-detail-body {
    display: flex;
    overflow-y: auto;
    min-height: 400px;
}

.product-detail-gallery {
    width: 50%;
    padding: 30px;
    background: var(--secondary);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-detail-info {
    width: 50%;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.product-main-image {
    position: relative;
    margin-bottom: 15px;
    text-align: center;
    cursor: zoom-in;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-main-image.zoomed img {
    transform: scale(1.5);
    cursor: zoom-out;
}

.product-image-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    min-height: 80px;
}

.product-gallery-item {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.3s;
}

.product-gallery-item.active {
    border-color: var(--primary);
}

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

.product-detail-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.3;
    word-wrap: break-word;
}

.product-detail-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-detail-description {
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.6;
    flex: 1;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #ffc107;
    flex-wrap: wrap;
    gap: 10px;
}

.product-detail-meta {
    margin-bottom: 20px;
}

.product-detail-meta div {
    margin-bottom: 8px;
    display: flex;
    color: var(--text);
    flex-wrap: wrap;
}

.product-detail-meta strong {
    min-width: 100px;
    color: var(--text);
}

.product-detail-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-add-to-cart {
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.detail-add-to-cart:hover {
    background: var(--primary-dark);
}

.detail-wishlist-btn {
    padding: 12px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.detail-wishlist-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

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

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

/* ===== LOADING STATE STYLES ===== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    grid-column: 1 / -1;
    color: var(--text-light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--secondary);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== NO RESULTS STYLES ===== */
.no-results {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
    color: var(--text-light);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* ===== FOOTER STYLES ===== */
.footer {
    background-color: var(--card-bg);
    padding: 50px 0 20px;
    margin-top: 50px;
    border-top: 1px solid var(--border);
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    border-radius: 50%;
    color: var(--text);
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary);
    color: white;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 5px 0 0 5px;
    background-color: var(--card-bg);
    color: var(--text);
    min-width: 200px;
}

.newsletter-form button {
    padding: 10px 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
}

/* ===== ANIMATIONS ===== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px rgba(74, 107, 229, 0.3);
    }
    to {
        text-shadow: 0 0 15px rgba(74, 107, 229, 0.6), 0 0 25px rgba(74, 107, 229, 0.4);
    }
}

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .search-container {
        width: 60%;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .product-detail-modal {
        width: 95%;
        max-width: 95%;
        height: 95vh;
        max-height: 95vh;
    }
    
    .product-detail-body {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .product-detail-gallery,
    .product-detail-info {
        width: 100%;
        padding: 20px;
    }
    
    .product-detail-info::-webkit-scrollbar {
        display: none;
    }
    
    .product-detail-content {
        min-height: 100vh;
    }
    
    .product-detail-gallery {
        border-bottom: 1px solid var(--border);
    }
    
    .product-main-image img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-btn {
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        flex: 1 0 40%;
    }
    
    .search-container {
        width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .options-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-filter {
        width: 100%;
        flex-direction: column;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .skeleton-loader {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-list-item {
        flex-direction: column;
    }
    
    .product-list-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 5px;
        width: 100%;
    }
    
    .product-detail-modal {
        width: 98%;
        max-width: 98%;
        height: 98vh;
        max-height: 98vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .product-detail-gallery,
    .product-detail-info {
        padding: 15px;
    }
    
    .product-detail-title {
        font-size: 20px;
    }
    
    .product-detail-price {
        font-size: 18px;
    }
    
    .product-main-image img {
        max-height: 250px;
    }
    
    .product-image-gallery {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-gallery-item {
        width: 60px;
        height: 60px;
    }
    
    .product-detail-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-image img {
        max-width: 100%;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-detail-modal {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .product-detail-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .product-detail-gallery,
    .product-detail-info {
        padding: 15px 10px;
    }
    
    .product-detail-title {
        font-size: 18px;
    }
    
    .product-main-image img {
        max-height: 200px;
    }
    
    .product-detail-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-add-to-cart,
    .detail-wishlist-btn {
        width: 100%;
        margin: 0;
    }
    
    .product-detail-meta div {
        flex-direction: column;
        gap: 5px;
    }
    
    .product-detail-meta strong {
        min-width: auto;
    }
}