* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --accent-secondary: #0f3460;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-secondary) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-color);
}


nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

header nav ul li a {
    color: var(--white);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

header nav ul li a:hover::after {
    width: 60%;
}

header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-widget {
    position: relative;
}


.cart-toggle {
    display: none;
}

.cart-icon {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: var(--white);
    padding: 0.7rem 1.4rem;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.cart-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.cart-badge {
    background-color: var(--white);
    color: var(--accent-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Shopping List */
.shopping-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    border: 1px solid var(--border-color);
    max-height: 80vh;
    overflow-y: auto;
}

.shopping-list::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background-color: var(--white);
    transform: rotate(45deg);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}


@media (min-width: 769px) {
    .cart-widget:hover .shopping-list {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.shopping-list-header {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.cart-close-label {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    line-height: 1;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.cart-close-label:hover {
    color: var(--accent-color);
    background-color: rgba(233, 69, 96, 0.1);
}


.cart-overlay-label {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-item:hover {
    background-color: var(--light-bg);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
}

.cart-item-image {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--light-bg), #e9ecef);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
}

.cart-item-qty input {
    width: 50px;
    padding: 0.4rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.cart-item-qty input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.cart-item-remove {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.3rem;
    transition: var(--transition);
    border-radius: 50%;
}

.cart-item-remove:hover {
    color: var(--accent-color);
    background-color: rgba(233, 69, 96, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 0;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.2rem;
    border-top: 2px solid var(--light-bg);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

/*  Category Navigation  */
.category-nav {
    background-color: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.category-nav-container {
    max-width: 1400px;
    margin: 0 auto;
}

.category-nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.5rem 0;
}

.category-nav-list::-webkit-scrollbar {
    display: none;
}

.category-nav-list li {
    flex-shrink: 0;
}

.category-nav-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.category-nav-list li a:hover {
    transform: translateY(-3px);
}

.category-nav-list li a:hover .category-icon-circle {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.25);
    border-color: var(--accent-color);
}

.category-nav-list li a:hover .category-name {
    color: var(--accent-color);
}

.category-nav-list li a.active .category-icon-circle {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.3);
}

.category-nav-list li a.active .category-name {
    color: var(--accent-color);
    font-weight: 700;
}

.category-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, var(--light-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.category-name {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
    max-width: 80px;
    transition: var(--transition);
}


.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    background-color: transparent;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.breadcrumb ul li a {
    color: var(--accent-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius-sm);
}

.breadcrumb ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(233, 69, 96, 0.1);
}

.breadcrumb ul li span {
    color: var(--text-dark);
    font-weight: 600;
}

.breadcrumb ul li:not(:last-child)::after {
    content: "›";
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 0.5rem;
    font-weight: 300;
}


.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
}


.products-section {
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    border-radius: 2px;
}


.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.product-card {
    flex: 1 1 calc(25% - 1.2rem);
    min-width: 250px;
    max-width: calc(25% - 1.2rem);
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-thumbnail {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.product-thumbnail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.05), rgba(15, 52, 96, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.product-thumbnail:hover::before {
    opacity: 1;
}

.product-image-placeholder {
    font-size: 4.5rem;
    transition: var(--transition);
}

.product-thumbnail:hover .product-image-placeholder {
    transform: scale(1.15);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(233, 69, 96, 0.3);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
}

.product-name:hover {
    color: var(--accent-color);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
}

.product-price .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}


.product-detail-container {
    display: flex;
    gap: 3rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    border: 1px solid var(--border-color);
}

.product-gallery {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--light-bg), #e9ecef);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

/* Image Slider Styles */
.image-slider {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-bg), #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.slider-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
    border-color: var(--white);
    transform: scale(1.2);
}

.thumbnail-list {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail-list::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-list::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 3px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.thumbnail-item {
    width: 85px;
    height: 85px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumbnail-item:hover {
    border-color: var(--text-muted);
}

.thumbnail-item.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.product-details {
    flex: 1;
    min-width: 300px;
}

.product-details .product-name {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.stars {
    color: var(--warning-color);
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-details .product-price {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.product-description {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.product-options {
    margin-bottom: 2rem;
}

.option-label {
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
    color: var(--text-dark);
}

.option-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.option-btn {
    padding: 0.7rem 1.4rem;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
}

.option-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.option-btn.selected {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--white);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
}

.qty-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.qty-input {
    width: 70px;
    height: 45px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
}

.qty-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons .add-to-cart-btn {
    flex: 1;
    min-width: 180px;
    padding: 1.1rem 2rem;
    font-size: 1rem;
}

.buy-now-btn {
    flex: 1;
    min-width: 180px;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.buy-now-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}


footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.5rem 0;
}

.footer-section ul li a {
    color: #adb5bd;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}



/* Large Desktop */
@media (max-width: 1200px) {
    .product-card {
        flex: 1 1 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
    
    .category-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .category-nav-list {
        gap: 0.8rem;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .product-card {
        flex: 1 1 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
    
    .category-icon-circle {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    .category-nav-list {
        justify-content: flex-start;
        gap: 0.6rem;
    }
    
    .product-detail-container {
        gap: 2rem;
        padding: 2rem;
    }
}

/* Small Tablet / Large Phone */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
    }
    
    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    /* Hide desktop nav, show hamburger */
    .menu-toggle {
        display: block;
        order: 1;
    }
    
    header nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        transition: var(--transition);
        z-index: 999;
        box-shadow: var(--shadow-lg);
    }
    
    header nav.active {
        left: 0;
    }
    
    header nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    header nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: var(--border-radius-sm);
        font-size: 1rem;
    }
    
    header nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    header nav ul li a::after {
        display: none;
    }
    
    /* Mobile nav close button */
    .nav-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.8rem;
        cursor: pointer;
    }
    
    /* Overlay when mobile nav is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .cart-widget {
        order: 2;
    }

    .main-container {
        padding: 1rem;
    }

    .product-card {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        min-width: unset;
    }
    
    .product-grid {
        gap: 1rem;
    }
    
    .product-thumbnail {
        height: 160px;
    }
    
    .product-image-placeholder {
        font-size: 3rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .product-price {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .add-to-cart-btn {
        padding: 0.7rem;
        font-size: 0.8rem;
    }


    
 
    .cart-close-label,
    .cart-overlay-label {
        display: block;
    }
  
    .shopping-list {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
    }
    
    .shopping-list::before {
        display: none;
    }
    

    .cart-toggle:checked ~ .cart-overlay-label {
        opacity: 1;
        visibility: visible;
    }
    
    .cart-toggle:checked ~ .shopping-list {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .product-detail-container {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .product-gallery {
        min-width: 100%;
    }
    
    .product-details {
        min-width: 100%;
    }

    .main-image,
    .image-slider {
        height: 280px;
    }
    
    .slide {
        font-size: 4rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-btn.prev {
        left: 0.5rem;
    }
    
    .slider-btn.next {
        right: 0.5rem;
    }
    
    .thumbnail-item {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }

    .product-details .product-name {
        font-size: 1.5rem;
    }

    .product-details .product-price {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .product-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .category-nav {
        padding: 1rem;
    }
    
    .category-nav-list {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 0.5rem 0;
    }
    
    .category-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .category-name {
        font-size: 0.7rem;
        max-width: 55px;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .breadcrumb {
        padding: 1rem;
    }
    
    .breadcrumb ul li {
        font-size: 0.85rem;
    }
    
    footer {
        padding: 2.5rem 1rem 1rem;
        margin-top: 2rem;
    }
    
    .footer-container {
        gap: 2rem;
    }
    
    .footer-section {
        flex: 1 1 calc(50% - 1rem);
        min-width: calc(50% - 1rem);
    }
}

/* Mobile Phone */
@media (max-width: 480px) {
    header {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }

    .cart-icon {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.3rem;
    }
    
    .cart-icon span:first-child {
        display: none;
    }
    
    .cart-badge {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .shopping-list {
        padding: 1rem;
        max-height: 80vh;
    }
    
    .shopping-list-header {
        font-size: 1rem;
    }
    
    .cart-item {
        gap: 0.8rem;
        padding: 0.8rem 0;
    }
    
    .cart-item-image {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .cart-item-name {
        font-size: 0.85rem;
    }
    
    .cart-item-price {
        font-size: 0.85rem;
    }
    
    .cart-item-qty input {
        width: 45px;
        padding: 0.3rem;
        font-size: 0.85rem;
    }
    
    .cart-total {
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .checkout-btn {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .category-nav {
        padding: 0.8rem 0.5rem;
    }
    
    .category-nav-list {
        gap: 0.4rem;
    }
    
    .category-icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        border-width: 2px;
    }
    
    .category-name {
        font-size: 0.65rem;
        max-width: 50px;
    }
    
    .main-container {
        padding: 0.8rem;
    }
    
    .breadcrumb {
        padding: 0.8rem;
    }
    
    .breadcrumb ul li {
        font-size: 0.8rem;
    }
    
    .breadcrumb ul li a {
        padding: 0.2rem 0.4rem;
    }

    .section-title {
        font-size: 1.2rem;
    }
    
    .section-title::after {
        width: 40px;
        height: 3px;
    }
    
    /* Single column grid on mobile */
    .product-grid {
        gap: 0.6rem;
    }
    
    .product-card {
        flex: 1 1 100%;
        max-width: 100%;
        border-radius: var(--border-radius-sm);
    }
    
    .product-thumbnail {
        height: 130px;
        border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    }
    
    .product-image-placeholder {
        font-size: 2.5rem;
    }
    
    .product-badge {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.6rem;
        border-radius: var(--border-radius-sm);
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-name {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-price {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .product-price .original-price {
        font-size: 0.75rem;
        display: block;
        margin-left: 0;
        margin-top: 0.2rem;
    }
    
    .add-to-cart-btn {
        padding: 0.6rem;
        font-size: 0.75rem;
        border-radius: var(--border-radius-sm);
        gap: 0.3rem;
    }
    
    /* Product detail page mobile */
    .product-detail-container {
        padding: 1rem;
        border-radius: var(--border-radius-sm);
    }
    
    .main-image,
    .image-slider {
        height: 220px;
        border-radius: var(--border-radius-sm);
    }
    
    .slide {
        font-size: 3.5rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slider-dots {
        bottom: 1rem;
        gap: 0.4rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .thumbnail-list {
        gap: 0.5rem;
    }
    
    .thumbnail-item {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        border-width: 2px;
    }
    
    .product-details .product-name {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .product-rating {
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .stars {
        font-size: 1.1rem;
    }
    
    .rating-count {
        font-size: 0.85rem;
    }
    
    .product-details .product-price {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .product-description {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .product-options {
        margin-bottom: 1.5rem;
    }
    
    .option-label {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .option-buttons {
        gap: 0.5rem;
    }
    
    .option-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .quantity-selector {
        margin-bottom: 1.5rem;
        gap: 0.8rem;
    }
    
    .qty-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .qty-input {
        width: 60px;
        height: 38px;
        font-size: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .action-buttons .add-to-cart-btn,
    .buy-now-btn {
        min-width: 100%;
        padding: 1rem;
        font-size: 0.95rem;
        border-radius: var(--border-radius);
    }
    
    /* Footer mobile */
    footer {
        padding: 2rem 1rem 1rem;
        margin-top: 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-section {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
    }
    
    .footer-section ul li {
        padding: 0.4rem 0;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    .logo {
        font-size: 1rem;
    }
    
    .cart-icon {
        padding: 0.4rem 0.6rem;
    }
    
    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .category-icon-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .category-name {
        font-size: 0.6rem;
        max-width: 45px;
    }
    
    .product-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .product-grid {
        gap: 0.5rem;
    }
    
    .product-thumbnail {
        height: 110px;
    }
    
    .product-image-placeholder {
        font-size: 2rem;
    }
    
    .product-info {
        padding: 0.6rem;
    }
    
    .product-name {
        font-size: 0.75rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .add-to-cart-btn {
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .main-image,
    .image-slider {
        height: 180px;
    }
    
    .product-details .product-name {
        font-size: 1.1rem;
    }
    
    .product-details .product-price {
        font-size: 1.3rem;
    }
}

.hidden {
    display: none !important;
}
/* ============ Swiper Product Slider ============ */

/* Gallery container — prevent overflow on narrow screens */
.product-gallery {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Main image swiper */
.product-main-swiper {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--light-bg), #e9ecef);
}

.product-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-bg), #e9ecef);
}

.product-main-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.slide-placeholder {
    font-size: 6rem;
}

/* Navigation arrows */
.product-main-swiper .swiper-button-prev,
.product-main-swiper .swiper-button-next {
    color: var(--accent-color);
    background-color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-main-swiper .swiper-button-prev:hover,
.product-main-swiper .swiper-button-next:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.product-main-swiper .swiper-button-prev::after,
.product-main-swiper .swiper-button-next::after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Pagination dots */
.product-main-swiper .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-main-swiper .swiper-pagination-bullet-active {
    background-color: var(--accent-color);
    border-color: var(--white);
    transform: scale(1.2);
}

/* Thumbnails swiper */
.product-thumbs-swiper {
    width: 100%;
    height: 90px;
    padding: 5px 0;
    overflow: hidden;
}

.product-thumbs-swiper .swiper-slide {
    width: 85px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    transition: var(--transition);
    opacity: 0.6;
    flex-shrink: 0;
}

.product-thumbs-swiper .swiper-slide:hover {
    opacity: 0.85;
    border-color: var(--text-muted);
}

.product-thumbs-swiper .swiper-slide-thumb-active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
    opacity: 1;
}

.product-thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    font-size: 2.2rem;
}

/* ---- Swiper Responsive ---- */

/* Tablet */
@media (max-width: 900px) {
    .product-gallery {
        min-width: 0;
    }
}

/* Small Tablet / Large Phone */
@media (max-width: 768px) {
    .product-gallery {
        min-width: 100%;
        width: 100%;
    }

    .product-main-swiper {
        height: 280px;
    }

    .slide-placeholder {
        font-size: 4rem;
    }

    .product-main-swiper .swiper-button-prev,
    .product-main-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .product-main-swiper .swiper-button-prev::after,
    .product-main-swiper .swiper-button-next::after {
        font-size: 1rem;
    }

    .product-thumbs-swiper {
        height: 70px;
    }

    .product-thumbs-swiper .swiper-slide {
        width: 65px;
        height: 60px;
    }

    .thumb-placeholder {
        font-size: 1.6rem;
    }
}

/* Mobile Phone */
@media (max-width: 480px) {
    .product-main-swiper {
        height: 220px;
        border-radius: var(--border-radius-sm);
    }

    .slide-placeholder {
        font-size: 3.5rem;
    }

    .product-main-swiper .swiper-button-prev,
    .product-main-swiper .swiper-button-next {
        width: 32px;
        height: 32px;
    }

    .product-main-swiper .swiper-button-prev::after,
    .product-main-swiper .swiper-button-next::after {
        font-size: 0.8rem;
    }

    .product-main-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .product-thumbs-swiper {
        height: 58px;
    }

    .product-thumbs-swiper .swiper-slide {
        width: 50px;
        height: 50px;
    }

    .thumb-placeholder {
        font-size: 1.3rem;
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    .product-main-swiper {
        height: 180px;
    }

    .product-main-swiper .swiper-button-prev,
    .product-main-swiper .swiper-button-next {
        width: 28px;
        height: 28px;
    }

    .product-main-swiper .swiper-button-prev::after,
    .product-main-swiper .swiper-button-next::after {
        font-size: 0.7rem;
    }

    .product-thumbs-swiper {
        height: 50px;
    }

    .product-thumbs-swiper .swiper-slide {
        width: 42px;
        height: 42px;
        border-width: 2px;
    }

    .thumb-placeholder {
        font-size: 1rem;
    }
}