/* Modern Clean White E-commerce Design */

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-main {
    padding: 20px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.search-bar {
    display: flex;
    gap: 10px;
    flex: 0 0 400px;
}

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

.search-bar input {
    flex: 1;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--secondary-color);
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease-out;
}

.hero-btn {
    display: inline-block;
    padding: 16px 45px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: slideInUp 1s ease-out;
}

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

/* Hero Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

/* Hero Slider Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

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

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    background: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
}

/* Slide Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Category Navigation - Modern Grid Design */
.category-nav {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 35px 0;
    margin-bottom: 40px;
}

.category-section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    padding: 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-item:hover::before {
    opacity: 1;
}

.category-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.4s ease;
    display: block;
}

.category-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.category-item:hover .category-icon {
    transform: scale(1.15) rotateY(180deg);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 30px rgba(245, 87, 108, 0.5);
}

.category-item:hover .category-icon img {
    transform: rotateY(180deg);
}

.category-text {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(52, 152, 219, 0.25);
    border-color: var(--secondary-color);
}

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

.category-item.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #667eea 100%);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
    transform: translateY(-8px);
}

.category-item.active .category-icon {
    background: white;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.category-item.active .category-icon img {
    filter: none;
}

.category-item.active .category-text {
    color: white;
}

.category-label {
    color: var(--text-light);
    font-weight: 600;
    margin-right: 15px;
    white-space: nowrap;
    font-size: 16px;
}

/* New Arrivals Section */
.new-arrivals-section {
    padding: 50px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

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

.new-arrivals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.new-arrival-card {
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.new-arrival-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.new-arrival-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-arrival-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

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

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
}

.product-code {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.5px;
}

.new-arrival-info {
    padding: 20px;
    text-align: center;
}

.new-arrival-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.new-arrival-name-sinhala {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-arrival-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Products Grid */
.products-section {
    padding: 40px 0;
}

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

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

/* Product Card */
.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 10px;
}

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

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

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

.product-name-sinhala {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.price-old {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* View All Products Button */
.view-all-container {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
}

.btn-view-all {
    display: inline-block;
    padding: 16px 50px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    border: none;
    cursor: pointer;
}

.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Product Detail Page */
.product-detail {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

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

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
    cursor: zoom-in;
    padding: 15px;
}

.main-image img:hover {
    opacity: 0.95;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.slider-arrow:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--secondary-color);
    border-color: white;
    transform: scale(1.3);
}

/* Image Counter */
.image-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--secondary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

/* Image Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-arrow:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.prev {
    left: 30px;
}

.lightbox-arrow.next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
}

.product-detail-info h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-detail-info .product-name-sinhala {
    font-size: 18px;
    margin-bottom: 20px;
}

.product-detail-info .product-price {
    font-size: 36px;
    margin-bottom: 20px;
}

.product-meta {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.meta-label {
    color: var(--text-light);
    font-weight: 500;
}

.meta-value {
    color: var(--text-dark);
    font-weight: 600;
}

/* Product Description */
.product-description {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

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

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

/* Product Action Buttons */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-order-now {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
    min-width: 220px;
}

.btn-order-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.btn-order-now svg {
    flex-shrink: 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.btn-back:hover {
    background: var(--bg-white);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.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);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

/* Similar Products Section */
.similar-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.similar-products h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

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

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

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

    .similar-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    /* New Arrivals Tablet */
    .new-arrivals-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .new-arrival-image {
        height: 280px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Header adjustments */
    .header-top {
        padding: 8px 0;
        font-size: 12px;
    }

    .header-main {
        padding: 15px 0;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .logo {
        font-size: 24px;
        text-align: center;
    }

    .search-bar {
        flex: 1;
        width: 100%;
    }

    .search-bar input {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 15px 0;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 10px;
        border-bottom: 1px solid var(--border-color);
    }

    /* Hero Slider Mobile */
    .hero-slider {
        height: 450px;
        margin-bottom: 25px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .hero-arrow {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .hero-prev {
        left: 15px;
    }

    .hero-next {
        right: 15px;
    }

    .hero-dots {
        bottom: 20px;
        gap: 10px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    /* Category Navigation */
    .category-nav {
        padding: 25px 0;
        margin-bottom: 25px;
    }

    .category-section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .category-container {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 12px;
    }

    .category-item {
        padding: 18px 10px;
        font-size: 12px;
        border-radius: 12px;
    }

    .category-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
        padding: 11px;
    }

    .category-text {
        font-size: 12px;
    }

    .category-label {
        font-size: 14px;
        margin-right: 10px;
    }

    /* New Arrivals Mobile */
    .new-arrivals-section {
        padding: 35px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 14px;
    }

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

    .new-arrival-image {
        height: 220px;
    }

    .new-arrival-image img {
        padding: 12px;
    }

    .product-code {
        font-size: 10px;
        padding: 4px 10px;
        top: 10px;
        left: 10px;
    }

    .new-badge {
        font-size: 11px;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
    }

    .new-arrival-info {
        padding: 15px;
    }

    .new-arrival-name {
        font-size: 15px;
        min-height: 40px;
    }

    .new-arrival-name-sinhala {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .new-arrival-price {
        font-size: 18px;
    }

    /* Products Grid */
    .products-section {
        padding: 25px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

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

    .product-card {
        border-radius: 10px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-name-sinhala {
        font-size: 13px;
    }

    .product-price {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .price-old {
        font-size: 14px;
    }

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

    /* View All Button Mobile */
    .view-all-container {
        margin-top: 35px;
        padding: 20px 0;
    }

    .btn-view-all {
        padding: 14px 40px;
        font-size: 16px;
    }

    /* Product Detail Page */
    .product-detail {
        padding: 20px;
        margin: 20px 0;
        border-radius: 10px;
    }

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

    /* Mobile slider adjustments */
    .main-image {
        height: 300px;
        border-radius: 10px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .slider-arrow.prev {
        left: 8px;
    }

    .slider-arrow.next {
        right: 8px;
    }

    .image-counter {
        top: 8px;
        right: 8px;
        font-size: 11px;
        padding: 5px 10px;
    }

    .slider-dots {
        bottom: 8px;
        gap: 8px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .thumbnail {
        height: 70px;
        border-radius: 6px;
    }

    /* Product Detail Info */
    .product-detail-info h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .product-detail-info .product-name-sinhala {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .product-detail-info .product-price {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .product-meta {
        margin: 20px 0;
        padding: 15px 0;
    }

    .meta-item {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* Product Description Mobile */
    .product-description {
        margin-top: 20px;
        padding: 16px;
    }

    .product-description h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .product-description p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Product Action Buttons Mobile */
    .product-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }

    .btn-order-now,
    .btn-back {
        width: 100%;
        min-width: 100%;
        padding: 12px 22px;
        font-size: 15px;
    }

    .btn-order-now {
        font-size: 16px;
    }

    /* Similar Products */
    .similar-products {
        margin-top: 40px;
        padding-top: 25px;
    }

    .similar-products h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

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

    /* Lightbox Mobile */
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }

    .lightbox-arrow {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .lightbox-arrow.prev {
        left: 15px;
    }

    .lightbox-arrow.next {
        right: 15px;
    }

    .lightbox-counter {
        bottom: 15px;
        font-size: 14px;
        padding: 8px 16px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }

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

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    /* Category Navigation Small Mobile */
    .category-nav {
        padding: 25px 0;
    }

    .category-section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .category-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .category-item {
        padding: 15px 8px;
        border-radius: 10px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
        padding: 10px;
    }

    .category-text {
        font-size: 11px;
    }

    /* Hero Slider Small Mobile */
    .hero-slider {
        height: 350px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .hero-btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .hero-dots {
        bottom: 15px;
        gap: 8px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    /* New Arrivals Small Mobile */
    .new-arrivals-section {
        padding: 30px 0;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .new-arrivals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .new-arrival-image {
        height: 180px;
    }

    .new-arrival-image img {
        padding: 10px;
    }

    .product-code {
        font-size: 9px;
        padding: 3px 8px;
    }

    .new-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .new-arrival-info {
        padding: 12px;
    }

    .new-arrival-name {
        font-size: 14px;
        min-height: 36px;
    }

    .new-arrival-name-sinhala {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .new-arrival-price {
        font-size: 16px;
    }

    .new-arrival-price .price-old {
        font-size: 12px;
    }

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

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 18px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* View All Button Small Mobile */
    .view-all-container {
        margin-top: 30px;
        padding: 15px 0;
    }

    .btn-view-all {
        padding: 12px 35px;
        font-size: 15px;
    }

    .main-image {
        height: 250px;
    }

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

    .product-detail-info h1 {
        font-size: 20px;
    }

    .product-detail-info .product-price {
        font-size: 24px;
    }

    /* Product Description Small Mobile */
    .product-description {
        margin-top: 18px;
        padding: 14px;
    }

    .product-description h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .product-description p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Product Action Buttons Small Mobile */
    .btn-order-now,
    .btn-back {
        padding: 10px 18px;
        font-size: 14px;
    }

    .btn-order-now svg {
        width: 16px;
        height: 16px;
        margin-right: 6px !important;
    }

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

    .section-title {
        font-size: 20px;
    }
}

/* Loading & Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 15px;
}

.empty-state .btn {
    margin-top: 10px;
}
