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

*,
*::before,
*::after {
    box-sizing: inherit;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
    --accent-color: #81C784;
    --dark-color: #1B5E20;
    --text-color: #333;
    --light-text: #666;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

* {
    max-width: 100%;
}

table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

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

/* Top Bar */
.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

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

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i {
    margin-right: 5px;
}

.top-bar-right a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
    transition: color 0.3s;
}

.top-bar-right a:hover {
    color: var(--accent-color);
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInLeft 0.5s ease-out;
}

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

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 8px 0;
}

.logo-image {
    height: 55px;
    width: auto;
    max-width: 220px;
    min-width: 120px;
    object-fit: contain;
    object-position: left center;
    transition: transform 0.3s ease;
    display: block;
}

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

@media (max-width: 768px) {
    .logo-image {
        height: 45px;
        max-width: 180px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 40px;
        max-width: 150px;
        min-width: 80px;
    }
    
    .logo a {
        padding: 5px 0;
    }
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.logo i {
    color: var(--secondary-color);
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

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

.cart-icon {
    position: relative;
    color: var(--text-color);
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
}

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.8) 0%, rgba(46, 125, 50, 0.8) 100%), url('../images/herobg.png') center/cover no-repeat;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(46, 125, 50, 0.9) 100%);
    animation: pulse 3s ease-in-out infinite;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInLeft 1s ease-out;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: slideInRight 1s ease-out;
}

.hero-content .btn {
    animation: scaleIn 1s ease-out 0.5s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

/* Featured Products Header */
.featured-products .container > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.featured-products .section-title {
    margin-bottom: 0;
    text-align: left;
}

.featured-products .section-title::after {
    left: 0;
    transform: none;
}

@media (max-width: 768px) {
    .featured-products .container > div:first-child {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-products .section-title {
        text-align: center;
        width: 100%;
    }
    
    .featured-products .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Categories Grid */
.categories-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

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

.category-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: scaleIn 0.5s ease-out;
    animation-fill-mode: both;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }

.category-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.category-card:hover .category-image {
    transform: scale(1.1) rotate(5deg);
    animation: pulse 1s ease-in-out infinite;
}

.category-card a {
    text-decoration: none;
    color: var(--text-color);
}

.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    transition: transform 0.3s ease;
}

.category-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.category-card p {
    color: var(--light-text);
    font-size: 14px;
}

/* Products Grid */
.featured-products {
    padding: 60px 0;
}

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

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background-color: var(--bg-light);
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

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

.product-card .btn {
    width: 100%;
    text-align: center;
}

/* Why Choose Us */
.why-choose-us {
    padding: 60px 0;
    background-color: var(--bg-light);
}

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

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.feature-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-hover);
}

.feature-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2) rotate(5deg);
    animation: bounce 1s ease-in-out;
}

.feature-item h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-item p {
    color: var(--light-text);
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

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

.footer-logo-container {
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.footer-logo {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

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

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

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background-color 0.3s;
}

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

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Cart Page */
.cart-page {
    padding: 60px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.cart-table th,
.cart-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    background-color: var(--bg-light);
    font-weight: 600;
}

/* Mobile Cart Table - Convert to Cards */
.cart-table-mobile {
    display: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.quantity-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.remove-item {
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
}

.cart-summary {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.cart-summary h3 {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: none;
}

/* Checkout Page */
.checkout-page {
    padding: 60px 0;
}

.checkout-form {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.form-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

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

.payment-methods {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.payment-method {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.1);
}

/* Products Page Template Styles */
.products-page-template {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background-color: #f5f5f5 !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

.products-page-template .container {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Desktop Styles for Products Template */
@media (min-width: 768px) {
    .products-grid-template {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
    }
    
    .sort-filter-bar {
        top: 70px;
    }
    
    .product-card-content {
        padding: 14px;
        gap: 10px;
    }
    
    .product-name {
        min-height: 44px;
    }
    
    .product-name a {
        font-size: 15px;
    }
    
    .current-price {
        font-size: 19px;
    }
    
    .add-to-cart-btn {
        padding: 13px 18px;
        font-size: 13px;
    }
}

@media (min-width: 1024px) {
    .products-grid-template {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        padding: 30px;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .filter-chips-scroll {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .sort-filter-bar .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .product-card-template {
        border-radius: 14px;
    }
    
    .product-card-content {
        padding: 16px;
        gap: 12px;
    }
    
    .product-name {
        min-height: 46px;
    }
    
    .product-name a {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .current-price {
        font-size: 20px;
    }
    
    .original-price {
        font-size: 14px;
    }
    
    .discount-badge {
        font-size: 12px;
        padding: 4px 9px;
    }
    
    .add-to-cart-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .wishlist-btn {
        width: 40px;
        height: 40px;
    }
    
    .wishlist-btn i {
        font-size: 18px;
    }
}

@media (min-width: 1440px) {
    .products-grid-template {
        grid-template-columns: repeat(5, 1fr);
        gap: 28px;
    }
}

/* Sort and Filter Bar */
.sort-filter-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sort-filter-bar .container {
    display: flex;
    gap: 15px;
    padding: 0 15px;
}

.sort-filter-btn {
    flex: 1;
    padding: 10px 15px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.sort-filter-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.sort-filter-btn i {
    font-size: 16px;
}

/* Horizontal Filter Chips */
.filter-chips-container {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-chips-container::-webkit-scrollbar {
    display: none;
}

.filter-chips-scroll {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    min-width: max-content;
}

.filter-chip {
    padding: 8px 16px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.filter-chip i {
    font-size: 12px;
    color: var(--primary-color);
}

.filter-chip:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.filter-chip:hover i {
    color: var(--white);
}

.filter-chip.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.filter-chip.active i {
    color: var(--white);
}

/* Products Grid Template */
.products-grid-template {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Product Card Template - Enhanced */
.products-grid-template .product-card-template {
    background-color: var(--white) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    border: 1px solid #f0f0f0 !important;
    margin: 0 !important;
}

.products-grid-template .product-card-template:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    transform: translateY(-4px) !important;
    border-color: var(--primary-color) !important;
}

.product-card-template .product-image-wrapper {
    position: relative !important;
    width: 100% !important;
    padding-top: 100% !important;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%) !important;
    overflow: hidden !important;
    border-bottom: 1px solid #f0f0f0 !important;
    margin: 0 !important;
}

.product-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.product-card-template:hover .product-image-wrapper::before {
    background: rgba(255, 255, 255, 0.1);
}

.product-card-template .product-image-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 0 !important;
}

.product-card-template:hover .product-image-wrapper img {
    transform: scale(1.08);
}

.product-card-template .wishlist-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 36px !important;
    height: 36px !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #666 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.wishlist-btn:hover {
    background-color: var(--white);
    color: #e74c3c;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

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

.wishlist-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.wishlist-btn:hover i {
    transform: scale(1.2);
}

.sponsored-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.product-card-template .product-card-content {
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-template .rating-value {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%) !important;
    color: var(--white) !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(56, 142, 60, 0.3) !important;
    line-height: 1 !important;
}

.rating-value::after {
    content: '★';
    font-size: 11px;
    margin-left: 2px;
}

.product-name {
    min-height: 42px;
    display: flex;
    align-items: flex-start;
}

.product-card-template .product-name a {
    color: var(--text-color) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.3s ease !important;
    word-break: break-word !important;
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.product-card-template .original-price {
    color: #9e9e9e !important;
    font-size: 13px !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
}

.product-card-template .current-price {
    color: var(--text-color) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

.product-card-template .discount-badge {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%) !important;
    color: var(--white) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(56, 142, 60, 0.2) !important;
    white-space: nowrap !important;
}

.product-card-template .add-to-cart-btn {
    margin-top: 8px !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn i {
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.add-to-cart-btn span {
    position: relative;
    z-index: 1;
}

/* Sort Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: flex-end;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: var(--bg-light);
}

.modal-body {
    padding: 10px 0;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option:hover {
    background-color: var(--bg-light);
}

.sort-option.active {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.sort-option i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* Products Page */
.products-page {
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}

.products-header .section-title {
    margin-bottom: 0;
}

.filter-section {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-section h4 {
    margin-bottom: 15px;
    font-weight: 700;
    color: #424242;
    font-size: 18px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--white);
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #2196F3;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    font-size: 14px;
}

.filter-btn:hover {
    background-color: #f5f5f5;
    border-color: #BDBDBD;
    transform: translateY(-2px);
}

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

.products-search-form {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.search-btn {
    padding: 12px 25px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    width: 100%;
}

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

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

/* Product Detail Page */
.product-detail {
    padding: 60px 0;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-detail-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.product-detail-info h1 {
    margin-bottom: 20px;
    color: var(--text-color);
}

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

.product-detail-description {
    margin-bottom: 30px;
    color: var(--light-text);
    line-height: 1.8;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector input {
    width: 80px;
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

/* Responsive Design */
/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .checkout-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-detail-content {
        gap: 30px;
    }
    
    .cart-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-header {
        position: relative;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Top Bar */
    .top-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .top-bar-left {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .top-bar-left span {
        margin-right: 0;
    }
    
    .top-bar-right {
        margin-top: 5px;
    }
    
    /* Header */
    .header-content {
        padding: 12px 0;
        flex-wrap: wrap;
    }
    
    .logo-image {
        height: 45px;
        max-width: 180px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 3;
        margin-left: auto;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        right: 15px;
        width: 150px;
        min-width: 140px;
        max-width: calc(100vw - 30px);
        background-color: var(--white);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        padding: 0;
        z-index: 9999;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out, transform 0.3s ease-out;
    }
    
    .main-nav.active {
        max-height: 400px;
        padding: 15px 0;
        width: 150px;
        min-width: 140px;
        max-width: calc(100vw - 30px);
        margin-top: 100px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        overflow-y: auto;
    }
    
    /* Extra small devices (phones, less than 360px) */
    @media (max-width: 360px) {
        .main-nav {
            right: 10px;
            width: 140px;
            min-width: 130px;
        }
        
        .main-nav.active {
            width: 140px;
            min-width: 130px;
            margin-top: 90px;
        }
        
        .main-nav a {
            padding: 10px 15px;
            font-size: 14px;
        }
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .main-nav a {
        display: block;
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 500;
        color: var(--text-color);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        transition: color 0.3s, background-color 0.3s;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .main-nav a:hover,
    .main-nav a:active {
        color: var(--primary-color);
        background-color: rgba(76, 175, 80, 0.08);
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .cart-icon {
        font-size: 20px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 350px;
        padding: 50px 15px;
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-content .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* Categories */
    .categories-section {
        padding: 40px 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-image {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .category-card h3 {
        font-size: 16px;
    }
    
    .category-card p {
        font-size: 12px;
    }
    
    /* Products */
    .featured-products {
        padding: 40px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    .product-card .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    /* Features */
    .why-choose-us {
        padding: 40px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 25px 20px;
    }
    
    .feature-item i {
        font-size: 40px;
    }
    
    /* Cart Page */
    .cart-page {
        padding: 40px 0;
    }
    
    .cart-table {
        display: none;
    }
    
    .cart-table-mobile {
        display: block;
    }
    
    .cart-item-mobile {
        background-color: var(--white);
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: var(--shadow);
        animation: fadeIn 0.4s ease-out;
    }
    
    .cart-item-mobile-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .cart-item-mobile-image {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 5px;
    }
    
    .cart-item-mobile-info {
        flex: 1;
    }
    
    .cart-item-mobile-name {
        font-weight: 600;
        margin-bottom: 5px;
        font-size: 16px;
    }
    
    .cart-item-mobile-price {
        color: var(--primary-color);
        font-weight: 600;
        font-size: 18px;
    }
    
    .cart-item-mobile-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }
    
    .cart-item-mobile-quantity {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .cart-item-mobile-total {
        font-weight: 700;
        color: var(--text-color);
        font-size: 18px;
    }
    
    .cart-summary {
        margin-top: 20px;
        padding: 20px;
    }
    
    /* Checkout Page */
    .checkout-page {
        padding: 40px 0;
    }
    
    .checkout-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-section h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 10px;
    }
    
    .payment-method {
        padding: 12px;
    }
    
    /* Product Detail */
    .product-detail {
        padding: 40px 0;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-detail-price {
        font-size: 28px;
    }
    
    .quantity-selector {
        flex-wrap: wrap;
    }
    
    /* Products Page Template Mobile */
    .sort-filter-bar {
        top: 60px;
    }
    
    .products-grid-template {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
    
    .product-card-template {
        border-radius: 10px;
    }
    
    .product-card-content {
        padding: 10px;
        gap: 6px;
    }
    
    .product-image-wrapper {
        padding-top: 100%;
    }
    
    .wishlist-btn {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    
    .wishlist-btn i {
        font-size: 14px;
    }
    
    .sponsored-badge {
        bottom: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .rating-value {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .product-name {
        min-height: 38px;
    }
    
    .product-name a {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .product-pricing {
        gap: 6px;
    }
    
    .original-price {
        font-size: 12px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .discount-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .add-to-cart-btn {
        padding: 10px 12px;
        font-size: 12px;
        margin-top: 6px;
    }
    
    .add-to-cart-btn i {
        font-size: 12px;
    }
    
    /* Products Page */
    .products-page {
        padding: 40px 0;
        width: 100%;
        max-width: 100%;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .products-header .section-title {
        width: 100%;
        text-align: left;
        font-size: 28px;
    }
    
    .filter-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .filter-section h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .filter-options {
        gap: 8px;
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
        flex: 0 1 auto;
    }
    
    .products-search-form {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    
    .search-input {
        width: 100%;
        min-width: 100%;
        padding: 10px 12px;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .product-card {
        width: 100%;
        max-width: 100%;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    .product-card .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .no-products-message {
        padding: 40px 15px;
    }
    
    .no-products-message h2 {
        font-size: 20px;
    }
    
    /* Footer */
    .main-footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo-container {
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .footer-logo {
        height: 35px;
        max-width: 160px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        margin-bottom: 10px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 6px 15px;
        font-size: 12px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-image {
        height: 40px;
        max-width: 150px;
    }
    
    .logo a {
        padding: 3px 0;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-image {
        height: 250px;
    }
    
    /* Products Page Template Small Mobile */
    .sort-filter-bar {
        top: 50px;
        padding: 10px 0;
    }
    
    .sort-filter-bar .container {
        padding: 0 10px;
        gap: 10px;
    }
    
    .sort-filter-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .filter-chips-container {
        padding: 12px 0;
    }
    
    .filter-chips-scroll {
        padding: 0 10px;
        gap: 8px;
    }
    
    .filter-chip {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .products-grid-template {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
    
    .product-card-template {
        border-radius: 8px;
    }
    
    .product-card-content {
        padding: 8px;
        gap: 5px;
    }
    
    .wishlist-btn {
        width: 30px;
        height: 30px;
        top: 6px;
        right: 6px;
    }
    
    .wishlist-btn i {
        font-size: 13px;
    }
    
    .sponsored-badge {
        bottom: 6px;
        left: 6px;
        padding: 3px 6px;
        font-size: 8px;
    }
    
    .rating-value {
        padding: 2px 5px;
        font-size: 10px;
    }
    
    .product-name {
        min-height: 34px;
    }
    
    .product-name a {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .product-pricing {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .original-price {
        font-size: 11px;
    }
    
    .current-price {
        font-size: 15px;
    }
    
    .discount-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .add-to-cart-btn {
        font-size: 11px;
        padding: 9px 10px;
        margin-top: 5px;
        gap: 5px;
    }
    
    .add-to-cart-btn i {
        font-size: 11px;
    }
    
    .add-to-cart-btn span {
        font-size: 11px;
    }
    
    /* Products Page Mobile */
    .products-page {
        padding: 30px 0;
    }
    
    .products-header .section-title {
        font-size: 24px;
        text-align: center;
    }
    
    .filter-section {
        padding: 15px 12px;
    }
    
    .filter-section h4 {
        font-size: 15px;
    }
    
    .filter-options {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1 1 auto;
        min-width: calc(50% - 3px);
        text-align: center;
    }
    
    .products-search-form {
        margin-top: 12px;
    }
    
    .search-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .product-category {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .product-card .btn {
        padding: 8px 12px;
        font-size: 12px;
        width: 100%;
    }
    
    .no-products-message {
        padding: 30px 10px;
    }
    
    .no-products-message i {
        font-size: 36px;
    }
    
    .no-products-message h2 {
        font-size: 18px;
    }
    
    .no-products-message p {
        font-size: 14px;
    }
    
    .cart-item-mobile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-mobile-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .cart-item-mobile-quantity {
        justify-content: space-between;
    }
    
/* Contact Page Styles */
.contact-page {
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.contact-form-section {
    animation: fadeIn 0.6s ease-out;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.contact-info-section {
    animation: slideInRight 0.6s ease-out;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.contact-info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.contact-info-card h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 24px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item i {
    color: var(--primary-color);
    font-size: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 24px;
    min-width: 24px;
    text-align: center;
}

.contact-info-content {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.contact-info-content strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 16px;
    word-wrap: break-word;
}

.contact-info-content span {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
}

.contact-info-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

.contact-info-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-cta-card {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    animation: scaleIn 0.6s ease-out 0.3s both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.contact-cta-card h3 {
    margin-bottom: 15px;
    color: var(--white);
    font-size: 22px;
    word-wrap: break-word;
}

.contact-cta-card p {
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.6;
    word-wrap: break-word;
}

.btn-cta {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.btn-cta:hover {
    background: var(--bg-light) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Contact Page Responsive */
@media (max-width: 1024px) {
    .contact-wrapper {
        gap: 30px;
        padding: 0 10px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* Contact Page */
    .contact-page {
        padding: 40px 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0 auto;
    }
    
    .contact-form-section {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .contact-info-section {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .contact-info-card {
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .contact-info-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .contact-info-item {
        margin-bottom: 20px;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-info-item i {
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .contact-info-content {
        min-width: 0;
        flex: 1;
    }
    
    .contact-info-content strong {
        font-size: 15px;
    }
    
    .contact-info-content span {
        font-size: 13px;
    }
    
    .contact-cta-card {
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-cta-card h3 {
        font-size: 20px;
    }
    
    .form-section {
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-section h3 {
        font-size: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 30px 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-wrapper {
        gap: 25px;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .contact-info-card {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-info-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-info-item i {
        margin-top: 3px;
        flex-shrink: 0;
    }
    
    .contact-info-content {
        flex: 1;
        min-width: 0;
    }
    
    .contact-cta-card {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-cta-card p {
        font-size: 14px;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
        box-sizing: border-box;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 24px;
        padding: 0 10px;
        word-wrap: break-word;
    }
}
    
    /* Product Detail Page Mobile */
    .product-detail-image {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }
    
    .product-detail-info h1 {
        font-size: 24px;
    }
    
    .product-detail-description {
        font-size: 14px;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quantity-selector input {
        width: 100%;
        max-width: 100px;
    }
    
    /* Login/Register Pages */
    .login-page,
    .register-page {
        padding: 40px 0;
    }
    
    .login-page > div,
    .register-page > div {
        max-width: 100% !important;
        padding: 0 15px;
    }
    
    /* Register Page Grid Adjustments */
    .name-fields,
    .password-fields {
        grid-template-columns: 1fr !important;
    }
    
    .address-fields {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .form-section > div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
    }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

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

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

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Additional Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Alert Animation */
.alert {
    animation: slideInRight 0.4s ease-out;
}

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

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Image Hover Effects */
.product-image img,
.category-image {
    transition: transform 0.4s ease;
}

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

/* Smooth Transitions for All Interactive Elements */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Mobile Menu Animation */
.main-nav {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.main-nav.active {
    animation: slideInLeft 0.3s ease-out;
}

/* Stagger Animation for Grid Items */
.products-grid > *,
.categories-grid > *,
.features-grid > * {
    animation: fadeIn 0.6s ease-out both;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   NEW HOMEPAGE REDESIGN STYLES
   ============================================ */

/* Hero Section New */
.hero-section-new {
    position: relative;
    background: url('../images/herobg.png') center/cover no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hero-section-new::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.hero-section-new .container {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hero-section-new .container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.85) 0%, rgba(27, 94, 32, 0.75) 100%);
    z-index: 1;
}

.hero-content-new {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 40px 20px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-headline {
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
    text-align: center;
    width: 100%;
    animation: slideInLeft 1s ease-out;
}

.hero-subtext {
    font-size: 22px;
    margin: 0 auto 35px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    line-height: 1.5;
    text-align: center;
    width: 100%;
    max-width: 700px;
    animation: slideInRight 1s ease-out;
}

.hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    animation: scaleIn 1s ease-out 0.5s both;
}

.btn-hero {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Discount Banner Section */
.discount-banner-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.discount-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
}

.discount-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.discount-banner-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    position: relative;
    z-index: 1;
}

.discount-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.discount-banner-content {
    flex: 1;
    position: relative;
    z-index: 1;
    color: var(--white);
}

.discount-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.discount-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.btn-discount {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-discount:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Categories Section New */
.categories-section-new {
    padding: 50px 0;
    background-color: var(--white);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.categories-section-new::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.categories-section-new .container {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.categories-section-new .container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.section-title-new {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title-new::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.categories-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch;
}

.categories-grid-new::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-card-new {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out both;
}

.category-card-new:nth-child(1) { animation-delay: 0.1s; }
.category-card-new:nth-child(2) { animation-delay: 0.2s; }
.category-card-new:nth-child(3) { animation-delay: 0.3s; }
.category-card-new:nth-child(4) { animation-delay: 0.4s; }
.category-card-new:nth-child(5) { animation-delay: 0.5s; }
.category-card-new:nth-child(6) { animation-delay: 0.6s; }

.category-card-new:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.category-card-new a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.category-image-new {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-size: 48px;
}

.category-card-new:hover .category-image-new img {
    transform: scale(1.08);
}

.category-info {
    padding: 15px;
    text-align: center;
}

.category-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.category-info p {
    color: var(--light-text);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured Products New */
.featured-products-new {
    padding: 80px 0;
    background-color: var(--bg-light);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.featured-products-new::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.featured-products-new .container {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.featured-products-new .container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

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

.featured-header .section-title-new {
    margin-bottom: 0;
    text-align: left;
}

.featured-header .section-title-new::after {
    left: 0;
    transform: none;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-view-all:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.products-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch;
}

.products-grid-new::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.product-card-new {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out both;
    position: relative;
}

/* Product Card Link - Makes entire featured card clickable */
.product-card-link-new {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.product-card-link-new:link,
.product-card-link-new:visited,
.product-card-link-new:hover,
.product-card-link-new:active,
.product-card-link-new:focus {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
    border-bottom: none !important;
}

/* Universal rule - remove all underlines from everything inside the link */
.product-card-link-new,
.product-card-link-new *,
.product-card-link-new *:link,
.product-card-link-new *:visited,
.product-card-link-new *:hover,
.product-card-link-new *:active,
.product-card-link-new *:focus,
.product-card-link-new *::before,
.product-card-link-new *::after {
    text-decoration: none !important;
    border-bottom: none !important;
    text-underline-offset: 0 !important;
    text-decoration-line: none !important;
    color: inherit !important;
}

/* Specific overrides for text elements - remove all underlines */
.product-card-link-new .product-name-new,
.product-card-link-new .product-rating-new,
.product-card-link-new .product-pricing-new,
.product-card-link-new .product-price-current,
.product-card-link-new .product-info-new,
.product-card-link-new .product-info-new *,
.product-card-link-new h3,
.product-card-link-new div,
.product-card-link-new i {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
    text-underline-offset: 0 !important;
}

/* Original price needs strikethrough - exclude from no-underline rule */
.product-card-link-new .product-price-original {
    text-decoration: line-through !important;
    text-decoration-line: line-through !important;
    border-bottom: none !important;
}

/* Rating stars - ensure proper colors */
.product-card-link-new .fa-star {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
    text-underline-offset: 0 !important;
    color: #ddd !important; /* Default grey for inactive stars */
}

.product-card-link-new .fa-star.active {
    color: #ffc107 !important; /* Gold for active stars */
}

.product-card-link-new .product-price-original {
    text-decoration: line-through !important; /* Keep strikethrough for original price */
    text-decoration-line: line-through !important;
    border-bottom: none !important;
}

.product-card-link-new .product-name-new {
    color: var(--text-color) !important;
    text-decoration: none !important;
}

.product-card-link-new:hover .product-name-new {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.product-card-link-new .product-price-current {
    text-decoration: none !important;
    border-bottom: none !important;
    text-underline-offset: 0 !important;
}

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

.product-image-new {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

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

.product-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.product-info-new {
    padding: 18px;
    text-decoration: none !important;
}

.product-info-new * {
    text-decoration: none !important;
}

.product-name-new {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.3;
    min-height: 42px;
    text-decoration: none !important;
    border-bottom: none !important;
    text-underline-offset: 0 !important;
}

.product-card-link-new:hover .product-name-new {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.product-rating-new {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
}

.product-rating-new .fa-star {
    color: #ddd !important;
    font-size: 14px;
}

.product-rating-new .fa-star.active {
    color: #ffc107 !important;
}

/* Ensure rating stars show properly in gold */
.product-card-link-new .product-rating-new .fa-star {
    color: #ddd !important;
}

.product-card-link-new .product-rating-new .fa-star.active {
    color: #ffc107 !important;
}

.product-pricing-new {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    text-decoration: none !important;
    border-bottom: none !important;
}

.product-pricing-new *,
.product-pricing-new span {
    text-decoration: none !important;
    border-bottom: none !important;
}

.product-card-link-new .product-pricing-new * {
    text-decoration: none !important;
    border-bottom: none !important;
}

.product-price-original {
    color: var(--light-text);
    text-decoration: line-through !important;
    text-decoration-line: line-through !important;
    font-size: 16px;
}

/* Ensure original price shows strikethrough even inside link */
.product-card-link-new .product-price-original {
    text-decoration: line-through !important;
    text-decoration-line: line-through !important;
    border-bottom: none !important;
}

.product-price-current {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: none !important;
    text-underline-offset: 0 !important;
}

/* Ensure no underlines in product card link */
.product-card-link-new .product-price-current {
    text-decoration: none !important;
    border-bottom: none !important;
    text-underline-offset: 0 !important;
}

.btn-add-cart-new {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 20;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Health & Lifestyle Trust Section */
.health-trust-section {
    padding: 80px 0;
    background-color: var(--white);
}

.health-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.health-trust-image {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.health-trust-content {
    padding: 20px;
}

.health-trust-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.3;
}

.health-trust-description {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 40px;
    line-height: 1.7;
}

.trust-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.trust-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.trust-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

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

.trust-text p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
}

/* Why Choose Section New */
.why-choose-section-new {
    padding: 80px 0;
    background-color: var(--bg-light);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.why-choose-section-new::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.why-choose-section-new .container {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.why-choose-section-new .container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.features-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch;
}

.features-grid-new::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.feature-item-new {
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out both;
}

.feature-item-new:nth-child(1) { animation-delay: 0.1s; }
.feature-item-new:nth-child(2) { animation-delay: 0.2s; }
.feature-item-new:nth-child(3) { animation-delay: 0.3s; }
.feature-item-new:nth-child(4) { animation-delay: 0.4s; }

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

.feature-icon-new {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.feature-item-new:hover .feature-icon-new {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.feature-item-new h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-item-new p {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.6;
}

/* Responsive Styles for New Homepage */
@media (max-width: 1024px) {
    .health-trust-grid {
        gap: 40px;
    }
    
    .health-trust-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section-new {
        min-height: 500px;
    }
    
    .hero-headline {
        font-size: 32px;
        text-align: center;
    }
    
    .hero-subtext {
        font-size: 18px;
        text-align: center;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .btn-hero {
        width: 100%;
    }
    
    .discount-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .discount-banner-image {
        width: 150px;
        height: 120px;
    }
    
    .discount-title {
        font-size: 24px;
    }
    
    .discount-subtitle {
        font-size: 16px;
    }
    
    .section-title-new {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .categories-section-new,
    .featured-products-new,
    .health-trust-section,
    .why-choose-section-new {
        padding: 50px 0;
    }
    
    .categories-grid-new {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .category-image-new {
        height: 150px;
    }
    
    .featured-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-header .section-title-new {
        text-align: center;
        width: 100%;
    }
    
    .featured-header .section-title-new::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .products-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image-new {
        height: 180px;
    }
    
    .product-info-new {
        padding: 15px;
    }
    
    .product-name-new {
        font-size: 15px;
        min-height: 38px;
    }
    
    .product-price-current {
        font-size: 18px;
    }
    
    .health-trust-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .health-trust-image {
        height: 300px;
    }
    
    .health-trust-title {
        font-size: 28px;
    }
    
    .health-trust-description {
        font-size: 16px;
    }
    
    .features-grid-new {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-item-new {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-section-new {
        min-height: 400px;
    }
    
    .hero-headline {
        font-size: 26px;
        text-align: center;
    }
    
    .hero-subtext {
        font-size: 16px;
        text-align: center;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .discount-title {
        font-size: 20px;
    }
    
    .section-title-new {
        font-size: 26px;
    }
    
    .categories-grid-new {
        grid-template-columns: 1fr;
    }
    
    .products-grid-new {
        grid-template-columns: 1fr;
    }
    
    .health-trust-image {
        height: 250px;
    }
    
    .health-trust-title {
        font-size: 24px;
    }
    
    .trust-feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon-new {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

