/* ===================================
   CSS Variables & Base Styles
   =================================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #777;
    --bg-light: #f8f9fa;
    --border-color: #ddd;
    --white: #ffffff;
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
    --info: #3498db;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-list {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    min-width: 200px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 8px 40px 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    width: 250px;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.2);
}

.search-bar button {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px 15px;
}

.icon-link {
    position: relative;
    font-size: 1.3rem;
    color: var(--text-color);
}

.icon-link:hover {
    color: var(--secondary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===================================
   Sections
   =================================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.featured-categories,
.trending-products,
.features {
    padding: 60px 0;
}

.featured-categories {
    background: var(--bg-light);
}

/* ===================================
   Categories Grid
   =================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.category-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   Products Grid
   =================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--bg-light);
    transition: opacity 0.3s ease;
}

.product-image[src=""],
.product-image:not([src]) {
    opacity: 0.5;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.product-card-content {
    padding: 20px;
}

.product-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.product-card-actions {
    display: flex;
    gap: 10px;
}

.product-card-actions .btn {
    flex: 1;
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* ===================================
   Features Section
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-light);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.newsletter input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

.newsletter button {
    width: 100%;
    padding: 10px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter button:hover {
    background: #c0392b;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   Shop Page
   =================================== */
.shop-section {
    padding: 40px 0;
    min-height: 60vh;
}

.shop-header {
    text-align: center;
    margin-bottom: 40px;
}

.shop-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-options input[type="checkbox"] {
    cursor: pointer;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.price-range input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

.filter-toggle {
    display: none;
}

/* Shop Content */
.shop-content {
    width: 100%;
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-count {
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* ===================================
   Product Detail Page
   =================================== */
.product-detail {
    padding: 40px 0;
}

.breadcrumb {
    margin-bottom: 30px;
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* Product Images */
.product-images {
    position: relative;
}

.main-image {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.image-nav:hover {
    background: var(--white);
}

.image-prev {
    left: 10px;
}

.image-next {
    right: 10px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border-color: var(--secondary-color);
}

/* Product Info */
.product-info {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-price {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.product-description {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.8;
}

.product-variants {
    margin-bottom: 25px;
}

.variant-group {
    margin-bottom: 20px;
}

.variant-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.variant-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

.quantity-selector {
    margin-bottom: 25px;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--bg-light);
}

.quantity-control input {
    width: 60px;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.product-actions .btn {
    flex: 1;
}

.product-meta {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.product-meta p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.in-stock {
    color: var(--success);
    font-weight: 600;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 35px;
    height: 35px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Product Tabs */
.product-tabs {
    margin-top: 50px;
}

.tabs-nav {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--secondary-color);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ===================================
   Cart Page
   =================================== */
.cart-section {
    padding: 40px 0;
    min-height: 60vh;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.page-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    align-items: center;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cart-item-details p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #c0392b;
    transform: scale(1.1);
}

.cart-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-color);
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-summary .btn {
    margin-bottom: 10px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-cart h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* ===================================
   Checkout Page
   =================================== */
.checkout-section {
    padding: 40px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.checkout-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.required {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.2);
}

.payment-options {
    margin-bottom: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--secondary-color);
}

.payment-option input[type="radio"] {
    cursor: pointer;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-label i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 5px;
    cursor: pointer;
}

.checkout-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.checkout-item-details h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.checkout-item-details p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.summary-calculations {
    margin-bottom: 20px;
}

.payment-method-info {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--info);
    color: var(--info);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning);
    color: var(--warning);
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--error);
    color: var(--error);
}

/* ===================================
   Policy Pages
   =================================== */
.policy-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.policy-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.policy-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.policy-date {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.policy-block {
    margin-bottom: 40px;
}

.policy-block h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.policy-block h2 i {
    color: var(--secondary-color);
}

.policy-block h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.policy-block p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.policy-block ul,
.policy-block ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.policy-block li {
    margin-bottom: 10px;
    line-height: 1.8;
    list-style: disc;
}

.policy-block ol li {
    list-style: decimal;
}

.contact-box,
.contact-info-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.contact-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.policy-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.policy-footer p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.policy-footer .btn {
    margin: 0 10px;
}

/* ===================================
   Contact & About Pages
   =================================== */
.contact-section,
.about-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-container h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-info-section {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.contact-info-section h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-info-card {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.info-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-color);
    line-height: 1.6;
}

.info-item a {
    color: var(--secondary-color);
}

.info-item a:hover {
    text-decoration: underline;
}

.social-connect h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.social-links-large {
    display: flex;
    gap: 15px;
}

.social-links-large a {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links-large a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* About Page */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-story,
.about-mission,
.about-values,
.about-products,
.about-why-choose {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.about-story h2,
.about-mission h2,
.about-values h2,
.about-products h2,
.about-why-choose h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-story h2 i,
.about-mission h2 i,
.about-values h2 i,
.about-products h2 i,
.about-why-choose h2 i {
    color: var(--secondary-color);
}

.about-story p,
.about-mission p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-mission ul {
    margin-left: 30px;
}

.about-mission li {
    margin-bottom: 10px;
    line-height: 1.8;
    list-style: disc;
}

.values-grid,
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.value-item,
.why-item {
    text-align: center;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
}

.value-item i,
.why-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.value-item h3,
.why-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.value-item p,
.why-item p {
    color: var(--text-color);
    line-height: 1.6;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-item {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
}

.category-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

.category-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-item p {
    color: var(--text-color);
    line-height: 1.6;
}

.about-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
}

.about-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn {
    min-width: 180px;
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.text-error {
    color: var(--error);
}

.text-success {
    color: var(--success);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    .shop-layout,
    .product-layout,
    .cart-layout,
    .checkout-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar,
    .product-info,
    .cart-summary,
    .checkout-summary {
        position: static;
    }

    .filters-sidebar {
        display: none;
    }

    .filters-sidebar.active {
        display: block;
    }

    .filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 20px;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        transition: var(--transition);
        padding: 20px;
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 10px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .mobile-toggle {
        display: block;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .search-bar input {
        width: 100%;
    }

    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .policy-content {
        padding: 30px 20px;
    }

    .policy-title {
        font-size: 2rem;
    }

    .policy-block h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .hero {
        height: 300px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-actions {
        flex-direction: column;
    }

    .page-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

