/* Color Palette */
:root {
    --primary-color: #800000;
    /* Deep maroon */
    --accent-color: #FFD700;
    /* Gold */
    --background-color: #FFF8DC;
    /* Cream */
    --text-color: #3E2723;
    /* Dark brown */
    --secondary-text: #5D4037;
    --light-cream: #FFFACD;
    --dark-cream: #F5DEB3;
    --maroon-light: #B22222;
    --maroon-dark: #660000;
    --gold-dark: #DAA520;
    --gold-light: #FFE4B5;
}

/* Typography */
:root {
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

h2,
h3 {
    margin-bottom: 15px;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

/* Admin Link Styles */
.admin-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: var(--primary-color);
    color: white;
}

.admin-link i {
    font-size: 16px;
}

.admin-link span {
    font-size: 14px;
    font-weight: 500;
}

/* Header Actions Responsive */
@media (max-width: 768px) {
    .admin-link span {
        display: none;
    }

    .admin-link {
        padding: 8px;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Top Bar */
.top-bar {
    background-color: #b74218;
    color: white;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .mobile-menu-toggle {
    cursor: pointer;
    font-size: 18px;
    color: white;
    transition: color 0.3s ease;
    display: none;
    order: 3;
}

.mobile-logo {
    display: none;
    order: 2;
    flex: 1;
    max-width: 250px;
}

.mobile-logo a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: white;
    font-family: var(--heading-font);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-logo img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

.top-bar .mobile-menu-toggle:hover {
    color: var(--accent-color);
}

.offer-message,
.shipping-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-message i,
.shipping-info i {
    color: var(--accent-color);
}

/* Header */
.main-header {
    background-color: maroon;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    gap: 1px;
    flex-wrap: wrap;
    /* Ensure elements don't overflow on small screens */
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
}

.logo img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: 80px;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

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

.search-toggle,
.cart-toggle {
    cursor: pointer;
    font-size: 18px;
    color: #E8AC68;
    transition: color 0.3s ease;
    padding: 5px;
    /* Increase tap target size */
}

.search-toggle:hover,
.cart-toggle:hover {
    color: white;
}

.cart-link {
    position: relative;
    text-decoration: none;
    color: #E8AC68;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* Mobile Menu - Dropdown Style */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;

}

.mobile-menu.active {
    max-height: 500px;
    padding: 0px 0;
}

.mobile-menu-header {
    display: none;
}

.mobile-menu-close {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 0;
}

.mobile-nav .nav-link {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 1px solid var(--dark-cream);
    transition: all 0.3s ease;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    padding-left: 40px;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-close {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-color);
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--dark-cream);
    border-radius: 5px;
    font-family: var(--body-font);
}

.search-form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: var(--maroon-dark);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    background: transparent;
}

.hero-text {
    text-align: left;
    max-width: 600px;
    padding: 40px;
    background: transparent;
    margin: 0;
}

.hero-text h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    color: #800000;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-text p {
    font-size: 1.2rem;
    color: black;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 7px 21px;
    border: none;
    border-radius: 11px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: var(--body-font);
}

.btn-primary {
    background-color: orange;
    color: rgb(250, 250, 250);
}

.btn-primary:hover {
    background-color: orange;
    transform: none;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: rgb(252, 252, 252);
    border: 2px solid black;
}

.btn-outline {
    background-color: var(--maroon-dark);
    color: white;
    border: 2px solid var(--maroon-dark);
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: none;
}

.btn-gold {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: -5px;
}

/* Best Sellers Section */
.best-sellers {
    padding: 0px 0;
    background-color: var(--background-color);
}

.best-sellers h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: black;
    text-align: center;
    margin-bottom: 0px;
}

.products-container {
    width: 100%;
    margin: 20px 0;
}

.product-card {
    background-color: white;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

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

.products-container {
    width: 100%;
    margin: 0 auto;
}

.product-image-container {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.product-info {
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.product-form {
    margin-top: auto;
}

.product-title {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.product-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.product-rating {
    color: var(--accent-color);
    margin-bottom: 10px;
}

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

.discount-sticker {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.discounted-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

/* Settings Section */
.settings-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.setting-card {
    background: #f8f9fa;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.setting-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.setting-card h3 i {
    color: var(--accent-color);
}

.setting-form {
    text-align: left;
}

.setting-form .form-group {
    margin-bottom: 15px;
}

.setting-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.setting-form input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.setting-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.setting-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* Orders Section */
.orders-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.order-filters select {
    padding: 8px 12px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.orders-table-container {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.orders-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.orders-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.orders-table tr:hover {
    background: #f8f9fa;
}

.customer-info {
    line-height: 1.4;
}

.customer-info small {
    color: #666;
    font-size: 12px;
}

.order-items {
    max-width: 200px;
}

.order-item {
    padding: 3px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

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

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #99d6ff;
}

.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.order-actions button {
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

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

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

.btn-process {
    background: #007bff;
    color: white;
}

.btn-process:hover {
    background: #0056b3;
}

.btn-complete {
    background: #28a745;
    color: white;
}

.btn-complete:hover {
    background: #1e7e34;
}

/* Order Modal */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.order-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

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

/* Festival Offers Section */
.festival-offers {
    padding: 5px 0;
    background: #5d1e1e;
    color: white;
}

.festival-offers h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.offer-box-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.offer-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.offer-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.offer-content .discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.offer-content {
    padding: 20px;
    text-align: center;
}

.offer-content h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.offer-content p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.offer-content .btn {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.offer-content .btn:hover {
    background: white;
    transform: none;
}

/* Categories Section */
.category-link {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    transition: all 0.3s ease;
}

.category-link:hover {
    transform: translateY(-8px);
}

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

.categories {
    padding: 0;
    background: url('../images/Shop_by_Category_background.png') center/cover;
    position: relative;
    margin-top: 0;
    /* Default for desktop - no collapse */
}

.categories h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 23px;
    padding-top: 60px;
}

/* Device-specific gap fixes - only for mobile */
@media (max-width: 430px) {
    .categories {
        margin-top: -200px;
    }
}

@media (max-width: 414px) {
    .categories {
        margin-top: -210px;
    }
}

@media (max-width: 412px) {
    .categories {
        margin-top: -220px;
    }
}

@media (max-width: 390px) {
    .categories {
        margin-top: -190px;
    }
}

@media (max-width: 375px) {
    .categories {
        margin-top: -180px;
    }
}

@media (max-width: 360px) {
    .categories {
        margin-top: -230px;
    }
}

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

.category-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 150px;
    height: 150px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

.category-icon img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    padding: 12px;
    box-sizing: border-box;
}

.category-item h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--text-color);
}

/* About Brand Section */
.about-brand {
    padding: 25px 0;
    background-color: var(--background-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

.about-text h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 3px 0;
    background-color: white;
}

.why-choose-us h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

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

.feature-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 130px;
    height: 130px;
    border: 3px solid var(--accent-color);
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-item:nth-child(4) .feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    margin: auto;
}

.feature-item h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

/* Customer Reviews Section */
.reviews {
    padding: 80px 0;
    background-color: var(--light-cream);
}

.reviews h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--accent-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info h4 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.stars {
    color: var(--accent-color);
}

.review-card p {
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.newsletter h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
}

.newsletter p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-family: var(--body-font);
}

.newsletter-form button {
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Footer */
.main-footer {
    background-color: var(--text-color);
    color: white;
}

.footer-content {
    padding: 60px 0;
}

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

.footer-section h4 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.footer-logo h3 {
    font-family: var(--heading-font);
    color: var(--accent-color);
}

.footer-about p {
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
}

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

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

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    background-color: var(--maroon-dark);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.powered-by-e-technology {
    width: 100%;

    text-align: right;
    margin-top: 10px;
}

.powered-by-e-technology #la a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}


.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
}

.back-to-top.visible {
    display: flex;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text {
        max-width: 500px;
        padding: 30px;
    }

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

    .offers-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-header {
        position: relative;
        top: 0;
    }

    .top-bar .mobile-menu-toggle {
        display: block;
    }

    .mobile-logo {
        display: block;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }

    .logo {
        display: none;
    }

    .logo a {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .logo a span {
        font-size: 20px;
    }

    .main-nav {
        display: none;
    }

    .top-bar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        text-align: center;
        font-size: 12px;
    }

    .offer-message,
    .shipping-info {
        display: none;
    }

    .top-bar .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-logo {
        flex: 1;
        max-width: 240px;
    }

    .mobile-logo a {
        font-size: 13px;
        gap: 4px;
    }

    .mobile-logo img {
        width: 35px;
        height: 37px;
    }

    .hero {
        height: auto;
        min-height: 50vh;
        padding: 0;
        background-attachment: scroll;
        align-items: center;
        display: flex;
        position: relative;
    }

    .hero-content {
        position: absolute;
        z-index: 2;
        width: 100%;
        padding: 0 20px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        max-width: 90%;
        padding: 20px 15px;
        text-align: center;
        margin: 0 auto;
        border-radius: 10px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        line-height: 1.2;
        text-align: center;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.4;
        color: #ffffff;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        align-items: center;
    }

    .btn {
        padding: 8px 18px;
        font-size: 12px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

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

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
        justify-content: center;
        /* Center odd items */
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        justify-content: center;
        /* Center odd items */
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar {
        order: 2;
        padding: 20px;
    }

    .products-main {
        order: 1;
    }

    /* Cart responsiveness moved to bottom to fix specificity issues */
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        height: auto;
        min-height: 45vh;
        padding: 0;
        align-items: center;
        display: flex;
        position: relative;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        line-height: 1.2;
        text-align: center;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    }

    .hero-text p {
        font-size: 0.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
        text-align: center;
        color: #ffffff;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    }

    .hero-text {
        padding: 15px 12px;
        text-align: center;
        margin: 0 auto;
        max-width: 95%;
        border-radius: 8px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        margin: 0 auto;
    }

    .logo span {
        display: none;
    }

    .btn {
        padding: 4px 10px;
        font-size: 10px;
        text-align: center;
        border-radius: 15px;
        box-sizing: border-box;
        width: auto;
        min-width: 80px;
        margin: 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .cart-item-image img {
        width: 60px;
        height: 60px;
    }

    .product-image {
        height: 150px;
    }

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

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

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding-bottom: 44px;
        justify-items: center;
    }

    .category-icon {
        width: 80px;
        height: 80px;
    }

    .category-icon img {
        width: 108px;
        height: 84px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-items: center;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .feature-icon img {
        width: 66px;
        height: 68px;
    }

    .review-card {
        padding: 20px;
    }

    .newsletter h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h4 {
        font-size: 1.2rem;
    }

    .social-links {
        justify-content: center;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .cart-item-image img {
        width: 60px;
        height: 60px;
    }

    .quantity-input {
        width: 50px;
        text-align: center;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
        padding: 15px 0;
        align-items: center;
    }

    .hero-text {
        padding: 20px;
        max-width: 80%;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 10px;
        line-height: 1.2;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 15px;
        color: #ffffff;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    }

    .hero-buttons {
        flex-direction: row;
        gap: 12px;
        justify-content: center;
    }
}

/* Tablet specific styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-layout {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-text {
        max-width: 700px;
        padding: 50px;
    }
}

/* Device-specific adjustments */
@media (max-width: 430px) and (min-height: 900px) {
    .hero {
        min-height: 40vh;
    }

    .hero-text {
        max-width: 85%;
        padding: 12px 10px;
    }

    .hero-text h1 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .hero-text p {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 414px) and (min-height: 896px) {
    .hero {
        min-height: 42vh;
    }

    .hero-text h1 {
        font-size: 1.45rem;
    }

    .hero-text p {
        font-size: 0.78rem;
    }
}

@media (max-width: 412px) and (min-height: 915px) {
    .hero {
        min-height: 38vh;
    }

    .hero-text {
        padding: 10px 8px;
    }

    .hero-text h1 {
        font-size: 1.35rem;
        margin-bottom: 5px;
    }

    .hero-text p {
        font-size: 0.72rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 390px) and (min-height: 844px) {
    .hero {
        min-height: 43vh;
    }

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

@media (max-width: 375px) and (min-height: 812px) {
    .hero {
        min-height: 45vh;
    }

    .hero-text h1 {
        font-size: 1.55rem;
    }
}

@media (max-width: 375px) and (min-height: 667px) {
    .hero {
        min-height: 48vh;
    }

    .hero-text {
        padding: 12px 8px;
    }

    .hero-text h1 {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) and (min-height: 780px) {
    .hero {
        min-height: 44vh;
    }

    .hero-text h1 {
        font-size: 1.38rem;
    }

    .hero-text p {
        font-size: 0.73rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Print styles */
@media print {

    .main-header,
    .hero,
    .footer {
        display: none;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Utility classes for mobile */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }

    .category-item:hover {
        transform: none;
    }

    .feature-item:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .nav-link:hover {
        color: var(--text-color);
    }

    .social-link:hover {
        transform: none;
    }

    .back-to-top:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .product-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Additional Styles for Enhanced Functionality */

/* Product Description */
.product-description {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* No Products Message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-products h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.no-products p {
    color: var(--secondary-text);
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-link,
.pagination-current {
    padding: 10px 15px;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination-link {
    background-color: white;
    color: var(--primary-color);
}

.pagination-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-current {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--dark-cream);
    flex-wrap: wrap;
    gap: 15px;
}

.cart-actions form {
    display: inline;
}

/* Quantity Controls */
.quantity-input {
    width: 60px;
    padding: 8px;
    border: 2px solid var(--dark-cream);
    border-radius: 5px;
    text-align: center;
    font-family: var(--body-font);
    font-size: 14px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid var(--accent-color);
    background-color: white;
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
}

.quantity-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.cart-item-remove-form {
    display: inline;
}

/* Cart Page Styles */
.cart-header {
    background: linear-gradient(135deg, var(--primary-color), var(--maroon-light));
    color: white;
    padding: 0px 0;
    text-align: center;
}

.cart-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.cart-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cart-content {
    padding: 20px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-main {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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

.cart-item-image img {
    width: 92px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.cart-item-details p {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.quantity-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.cart-item-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: #ff4444;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #cc0000;
    transform: scale(1.05);
}

.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-message img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-cart-message h2 {
    color: var(--text-color);
    margin-bottom: 10px;
}

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

.cart-summary {
    position: sticky;
    top: 20px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-family: var(--heading-font);
}

.summary-details {
    margin-bottom: 25px;
}

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

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

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

.summary-divider {
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 15px 0;
}

.promo-section {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.promo-section input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.promo-section input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.btn-large {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.badge {
    text-align: center;
    padding: 15px 10px;
    background: var(--light-cream);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    background: var(--dark-cream);
}

.badge img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.badge i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

/* Responsive Cart Overlay & Specificity Fixes */
@media (max-width: 768px) {
    .cart-summary {
        order: 2;
        /* Put summary AFTER items */
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
        padding: 15px;
    }

    .cart-item-details {
        grid-column: 2;
    }

    .cart-item-quantity {
        grid-column: 1 / span 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .cart-item-total {
        grid-column: 2;
        display: none;
        /* Hide redundant total on small mobile, rely on per-item price and summary */
    }

    .cart-item-remove {
        grid-column: 2;
        justify-self: end;
        margin-top: -35px;
        /* Pull it up into the quantity row or align it specifically */
    }
}

.badge span {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-text);
    font-weight: 500;
}

/* Checkout Page Styles */
.checkout-header {
    background: linear-gradient(135deg, var(--primary-color), var(--maroon-light));
    color: white;
    padding: 10px 0;
    text-align: center;
}

.checkout-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.checkout-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.checkout-content {
    padding: 40px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-main {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.order-summary {
    margin-bottom: 20px;
}

.order-summary h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-family: var(--heading-font);
}

.summary-items {
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.item-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.item-info p {
    margin: 0 0 5px 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.item-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.summary-totals {
    border-top: 2px solid var(--dark-cream);
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.grand-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

.payment-section {
    margin-top: 30px;
}

.payment-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-color);
    font-family: var(--heading-font);
}

.payment-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.empty-cart {
    text-align: center;
    padding: 40px;
    background: var(--light-cream);
    border-radius: 12px;
}

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

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        padding: 0 20px;
    }

    .checkout-main {
        padding: 20px;
    }

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-top: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.hide {
    transform: translateY(-50px);
    opacity: 0;
}

.toast.success {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 100%);
}

.toast.error {
    border-left-color: #f44336;
    background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
}

.toast.info {
    border-left-color: #2196F3;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    color: white;
    font-weight: bold;
}

.toast.success .toast-icon {
    background: #4CAF50;
}

.toast.error .toast-icon {
    background: #f44336;
}

.toast.info .toast-icon {
    background: #2196F3;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
    font-size: 14px;
}

.toast-message {
    color: var(--secondary-text);
    font-size: 13px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

/* Toast Notifications - Mobile Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 90%;
        align-items: center;
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: 5px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 95%;
    }

    .toast {
        padding: 12px 16px;
        margin-bottom: 8px;
    }

    .toast-title {
        font-size: 13px;
    }

    .toast-message {
        font-size: 12px;
    }
}

/* Product Detail Page */
.product-detail {
    padding: 15px 0;
    background: #f8f9fa;
}

.top-back-button {
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
}

.top-back-button .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: white;
}

.top-back-button .btn i {
    font-size: 12px;
}

.cart-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.cart-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 78px;
    font-size: 13px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.cart-actions .btn:hover {
    transform: translateY(-1px);
}

.cart-actions .btn i {
    font-size: 11px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-image-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

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

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-name {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-category {
    background: var(--light-cream);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    text-transform: capitalize;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-color);
    font-size: 12px;
}

.rating-text {
    color: var(--secondary-text);
    font-size: 10px;
}

.product-price-section {
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.discount-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.discount-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 11px;
    display: inline-block;
    width: fit-content;
}

.price-comparison {
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.discounted-price {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
}

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

.product-description h3 {
    font-family: var(--heading-font);
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 6px;
}

.product-description p {
    color: var(--secondary-text);
    line-height: 1.4;
    margin: 0;
    font-size: 13px;
}

.product-stock {
    margin-top: 6px;
}

.stock-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.stock-status.in-stock {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.description-toast-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.description-stock-col {
    flex: 1;
}

#product-toast-container {
    position: static;
    transform: none;
    align-items: center;
    width: auto;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 768px) {
    .description-toast-row {
        flex-direction: column;
        align-items: stretch;
    }

    #product-toast-container {
        width: 100%;
        margin-top: 10px;
    }
}

.product-actions {
    margin-top: 12px;
}

.add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    align-items: stretch;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 13px;
}

.quantity-input {
    width: 60px;
    padding: 6px;
    border: 2px solid var(--light-cream);
    border-radius: 5px;
    font-size: 13px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-large {
    padding: 10px 4px;
    font-size: 14px;
    border-radius: 6px;
    width: 100%;
    max-width: 200px;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-text);
    font-size: 12px;
}

.feature i {
    color: var(--primary-color);
    width: 16px;
}

/* Related Products */
.related-products {
    padding: 60px 0;
    background: white;
}

.related-products h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 40px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.related-product-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-product-card h4 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 15px 15px 10px;
    line-height: 1.3;
}

.related-product-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 15px 15px;
}

/* Product Detail Responsiveness */
@media (max-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 15px;
    }

    .main-product-image {
        height: 240px;
    }

    .product-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 10px 0;
    }

    .product-detail-layout {
        padding: 12px;
        gap: 15px;
    }

    .main-product-image {
        height: 200px;
    }

    .product-name {
        font-size: 1.3rem;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .price-comparison {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .discounted-price,
    .product-price {
        font-size: 1.2rem;
    }

    .product-actions {
        margin-top: 10px;
    }

    .add-to-cart-form {
        margin-bottom: 12px;
        gap: 10px;
        align-items: stretch;
    }

    .back-to-shop {
        justify-content: center;
        margin-top: 10px;
    }

    .back-to-shop .btn,
    .btn-large {
        width: 100%;
        max-width: 200px;
        justify-self: center;
        padding: 12px 16px;
        font-size: 14px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 12px;
    }

    .cart-actions .btn {
        width: 100%;
        min-width: auto;
        padding: 12px 16px;
        font-size: 14px;
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 11px;
        flex-wrap: wrap;
    }

    .product-detail-layout {
        padding: 10px;
        gap: 12px;
    }

    .main-product-image {
        height: 180px;
    }

    .product-name {
        font-size: 1.2rem;
    }

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

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Success Message (Legacy - kept for compatibility) */
.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

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

.product-card:hover::before {
    left: 100%;
}

/* Stock Indicator */
.stock-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.stock-low {
    background-color: #ff9800;
    color: white;
}

.stock-out {
    background-color: #f44336;
    color: white;
}

/* Search Results */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--dark-cream);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: var(--light-cream);
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.search-result-item h4 {
    margin: 0;
    color: var(--text-color);
}

.search-result-item p {
    margin: 0;
    font-size: 14px;
    color: var(--secondary-text);
}

/* Mobile Search */
@media (max-width: 768px) {
    .search-container {
        width: 95%;
        margin: 20px;
        padding: 20px;
    }

    .search-form {
        flex-direction: column;
        gap: 10px;
    }

    .search-form input {
        margin-bottom: 10px;
    }

    .search-form button {
        width: 100%;
    }
}

/* Enhanced Mobile Menu */
.mobile-menu.active {
    overflow-y: auto;
}

.mobile-nav ul {
    padding: 0px 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--dark-cream);
}

.mobile-nav .nav-link {
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s ease;
}

.mobile-nav .nav-link:hover {
    background-color: var(--light-cream);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    background-color: var(--light-cream);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    flex-wrap: wrap;
}

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

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--maroon-light);
}

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

/* Enhanced Buttons */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
}

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Focus States */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.nav-link:focus {
    outline: none;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 6px;
}

/* Enhanced Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Layout with Sidebar */
.header-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start;
}

.header-layout .sidebar {
    width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.header-layout .sidebar h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.header-layout .sidebar ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.header-layout .sidebar li {
    margin-bottom: 5px;
}

.header-layout .sidebar a {
    text-decoration: none;
    color: #555;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-layout .sidebar a:hover {
    background: #f2f2f2;
    color: #333;
}

.header-layout .sidebar a.active {
    background: var(--primary-color);
    color: white;
}

.header-layout .featured-grid {
    flex: 1;
}

/* Professional Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    min-width: 0;
}

.sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--light-cream);
    height: fit-content;
}

.sidebar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
    font-weight: 700;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.sidebar ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.sidebar ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar ul li a:hover {
    background: var(--light-cream);
    color: var(--primary-color);
    font-weight: 600;
    transform: translateX(5px);
}

.sidebar ul li a.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-color: var(--accent-color);
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-cream);
}

.results-count {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.results-count span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.sort-options {
    position: relative;
}

.sort-options select {
    padding: 12px 40px 12px 15px;
    border: 2px solid var(--light-cream);
    border-radius: 8px;
    background-color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
    font-weight: 500;
}

.sort-options select:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sort-options select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

/* Custom dropdown arrow */
.sort-options::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-color);
    font-size: 0.7rem;
    margin-top: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    justify-items: center;
    gap: 30px;
    width: 100%;
    min-width: 0;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    min-height: 280px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
    color: var(--text-color);
}

.product-price {
    color: #c0392b;
    font-weight: bold;
    font-size: 18px;
    margin: 8px 0;
}

.no-products {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Shop Layout Responsiveness */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-cream);
}

.sidebar-header h3 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    font-size: 1.5rem !important;
}

.close-filter {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    padding: 0 10px;
}

.btn-filter-toggle {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.desktop-results {
    display: inline-block;
}

/* Shop Layout Responsiveness */
@media (max-width: 992px) {
    .btn-filter-toggle {
        display: inline-flex;
    }

    .filter-overlay.active {
        display: block;
    }

    .sidebar-header.mobile-only {
        display: flex;
    }

    .shop-layout {
        grid-template-columns: 1fr;
        margin-top: 20px;
        gap: 20px;
    }

    .shop-layout .sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        z-index: 1001;
        overflow-y: auto;
        background: #fff;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 25px 20px;
        margin: 0;
        border-radius: 0;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        border: none;
    }

    .shop-layout .sidebar.active {
        left: 0;
    }

    .sidebar ul {
        display: block;
        margin-bottom: 30px;
    }

    .sidebar ul li {
        margin-bottom: 8px;
    }

    .sidebar ul li a {
        padding: 10px 15px;
        font-size: 1rem;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 6px;
        display: block;
    }

    .sidebar ul li a.active,
    .sidebar ul li a:hover {
        background: var(--light-cream);
        color: var(--primary-color);
        border-color: transparent;
        transform: translateX(5px);
        font-weight: 600;
    }

    .sidebar ul li a.active {
        background: var(--primary-color);
        color: white;
    }
}

@media (max-width: 768px) {
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }

    .results-count {
        width: 100%;
        border-bottom: 1px solid var(--light-cream);
        padding-bottom: 12px;
        font-size: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .btn-filter-toggle {
        margin-right: 0;
    }

    .sort-options {
        width: 100%;
    }

    .sort-options form {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px !important;
    }

    .sort-options select {
        width: 100%;
        min-width: unset;
        padding: 12px 35px 12px 15px;
    }
}

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* E-Technology Hover Popup Styles */
.powered-by-e-technology {
    position: relative;
    display: inline-block;
}

.e-tech-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease;
}

.e-tech-link:hover {
    color: var(--accent-color);
}

.e-tech-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 280px;
    background-color: #1a1a1a;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    z-index: 9999;
    margin-bottom: 10px;
    border: 1px solid #333;
}

.e-tech-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #1a1a1a;
}

.powered-by-e-technology:hover .e-tech-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-content {
    text-align: center;
    color: white;
}

.popup-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: #2b1b15;
    font-size: 24px;
}

.popup-content h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.popup-subtitle {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
    color: white;
}

.popup-contact-info {
    margin-bottom: 15px;
    text-align: center;
}

.popup-contact-info p {
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-contact-info i {
    color: #ffd700;
    font-size: 0.9rem;
    width: 12px;
}

.popup-contact-btn {
    background-color: #ffd700;
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    font-size: 0.9rem;
}

.popup-contact-btn:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Ensure popup doesn't get clipped in footer */
.main-footer {
    overflow: visible;
}

.footer-bottom {
    overflow: visible;
}

/* Mobile responsiveness for popup */
@media (max-width: 768px) {
    .e-tech-popup {
        width: 250px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
        font-size: 0.9rem;
    }

    .e-tech-popup::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .powered-by-e-technology:hover .e-tech-popup {
        transform: translateX(-50%) translateY(0);
    }

    .popup-content h3 {
        font-size: 1.2rem;
    }

    .popup-logo {
        width: 50px;
        height: 50px;
    }

    .popup-contact-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .powered-by-e-technology {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .e-tech-popup {
        width: 220px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
        padding: 15px;
    }

    .e-tech-popup::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .powered-by-e-technology:hover .e-tech-popup {
        transform: translateX(-50%) translateY(0);
    }

    .popup-content {
        padding: 0 10px;
    }

    .popup-content h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .popup-subtitle {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .popup-contact-info {
        margin-bottom: 10px;
    }

    .popup-contact-info p {
        font-size: 0.7rem;
        margin-bottom: 3px;
        gap: 5px;
    }

    .popup-contact-info i {
        font-size: 0.8rem;
        width: 10px;
    }

    .popup-contact-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .powered-by-e-technology {
        text-align: center;
        width: 100%;
    }
}