/* css/style.css */

:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5a623;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
    background: #f8f9fc;
    overflow: hidden;
}

.hero-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-heading h1 {
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero-heading p {
    color: #666;
    font-size: 1.05rem;
}

/* Carousel */
.category-carousel {
    position: relative;
    overflow: hidden;
}

.category-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* Category Card */
.category-card {
    position: relative;
    flex: 0 0 calc(33.333% - 14px);
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

/* Overlay */
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8),
        rgba(0,0,0,0.05)
    );

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.category-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.category-overlay span {
    font-size: 0.9rem;
    color: #fff;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dots button {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.carousel-dots button.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 10px;
}

/* Tablet */
@media (max-width: 900px) {
    .category-card {
        flex: 0 0 calc(50% - 10px);
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-heading h1 {
        font-size: 1.7rem;
    }

    .category-card {
        flex: 0 0 100%;
        height: 280px;
    }
}

/* Shop Categories Section */
.shop-categories-section {
    padding: 25px 0;
    background: #fff;
}

.shop-categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.shop-categories-header h2 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin: 0;
}

.shop-category-navigation {
    display: flex;
    gap: 8px;
}

.shop-category-navigation button {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary-color);
    transition: 0.3s;
}

.shop-category-navigation button:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Horizontal Track */
.shop-categories-wrapper {
    overflow: hidden;
}

.shop-categories-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 3px 0 8px;
}

.shop-categories-track::-webkit-scrollbar {
    display: none;
}

/* Category Card */
.shop-category-card {
    position: relative;
    flex: 0 0 190px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    background: #f8f9fc;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    text-decoration: none;
    color: #222;
    transition: all 0.3s ease;
}

.shop-category-card:hover {
    background: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Category Icon */
.shop-category-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9edff;
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 18px;
}

.shop-category-info {
    min-width: 0;
}

.shop-category-info h3 {
    font-size: 0.88rem;
    margin: 0 0 5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-category-info span {
    font-size: 0.75rem;
    color: #777;
}

.shop-category-badge {
    position: absolute;
    top: 5px;
    right: 7px;
    font-size: 0.65rem;
    color: var(--primary-color);
}

/* Mobile */
@media (max-width: 600px) {

    .shop-categories-section {
        padding: 18px 0;
    }

    .shop-categories-header h2 {
        font-size: 1.15rem;
    }

    .shop-category-card {
        flex: 0 0 165px;
        padding: 10px;
    }

    .shop-category-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .shop-category-navigation button {
        width: 29px;
        height: 29px;
    }
}

/* Products Grid */
.products-section {
    padding: 1rem 0;
}

.products-section.bg-light {
    background: var(--light-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.sale-badge,
.new-badge,
.out-of-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.sale-badge {
    background: var(--danger-color);
    color: white;
}

.new-badge {
    background: var(--success-color);
    color: white;
}

.out-of-stock-badge {
    background: var(--gray-color);
    color: white;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    margin-bottom: 1rem;
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray-color);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.sale-price,
.regular-price {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-to-cart {
    flex: 1;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-to-cart:hover {
    background: #357abd;
}

.btn-out-of-stock {
    flex: 1;
    padding: 0.5rem;
    background: var(--gray-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
}

.btn-wishlist {
    width: 40px;
    padding: 0.5rem;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-wishlist:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
}

.newsletter-message.success {
    background: rgba(255,255,255,0.2);
}

.newsletter-message.error {
    background: rgba(220,53,69,0.2);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
}

/* Product Detail Page */
.product-detail-page {
    padding: 2rem 0;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.thumbnail-images img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border-color: var(--primary-color);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stock-status {
    font-weight: bold;
}

.stock-status.in-stock {
    color: var(--success-color);
}

.stock-status.out-of-stock {
    color: var(--danger-color);
}

.product-description {
    margin: 2rem 0;
}

.product-description h3 {
    margin-bottom: 1rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.category-tag {
    padding: 0.3rem 0.8rem;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.category-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-purchase {
    margin: 2rem 0;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-right: 1rem;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.quantity-selector button:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 1rem;
}

.purchase-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-add-to-cart-large,
.btn-buy-now {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-to-cart-large {
    background: var(--primary-color);
    color: white;
}

.btn-add-to-cart-large:hover {
    background: #357abd;
}

.btn-buy-now {
    background: var(--secondary-color);
    color: white;
}

.btn-buy-now:hover {
    background: #e69500;
}

.product-extra-info {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
}

.product-extra-info div {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.product-extra-info i {
    width: 20px;
    color: var(--primary-color);
}

.related-products {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Category Page */
.category-page {
    padding: 2rem 0;
}

.category-header {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.category-parent {
    color: var(--gray-color);
}

.category-parent a {
    color: var(--primary-color);
    text-decoration: none;
}

.subcategories-section {
    margin-bottom: 3rem;
}

.subcategories-section h2 {
    margin-bottom: 1.5rem;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.subcategory-card {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s;
}

.subcategory-card:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.subcategory-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.category-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 5px;
}

.sort-options select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.no-products {
    text-align: center;
    padding: 4rem 0;
}

.no-products h3 {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    overflow-y: auto;
}

.cart-modal.open {
    display: block;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
}

.cart-items {
    padding: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    margin: 0.5rem 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    cursor: pointer;
}

.cart-item-remove {
    color: var(--danger-color);
    cursor: pointer;
}

.cart-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem;
    border-top: 2px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: #218838;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: static;
    }
    
    .cart-modal {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .purchase-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    /* GRID LAYOUT */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* PRODUCT CARD */
    .product-card {
        border-radius: 8px;
    }

    /* IMAGE (VERY IMPORTANT) */
    .product-image {
        height: 140px; /* smaller for mobile */
    }

    /* PRODUCT INFO */
    .product-info {
        padding: 10px;
    }

    /* TITLE */
    .product-title {
        font-size: 0.85rem;
        height: auto;
        line-height: 1.2;
        margin-bottom: 5px;
    }

    /* PRICE */
    .sale-price,
    .regular-price {
        font-size: 1rem;
    }

    .original-price {
        font-size: 0.75rem;
    }

    /* BUTTONS */
    .product-actions {
        gap: 5px;
    }

    .btn-add-to-cart {
        padding: 6px;
        font-size: 0.75rem;
    }

    .btn-wishlist {
        width: 32px;
        padding: 5px;
    }

    /* BADGES */
    .sale-badge,
    .new-badge,
    .out-of-stock-badge {
        font-size: 0.6rem;
        padding: 2px 5px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 0px;
        border-radius: 8px;
    }

    .category-card h3 {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .product-count {
        font-size: 0.75rem;
    }

    .category-badge {
        font-size: 0.6rem;
        padding: 2px 5px;
    }
}
/* Header Styles - Add to existing header styles */
.search-bar {
    position: relative;
    flex: 0 1 300px;
}

.search-bar form {
    display: flex;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.search-bar button {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #357abd;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 1000;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: var(--light-color);
}

.dropdown-content a i {
    width: 20px;
    color: var(--primary-color);
}

/* Auth Links */
.auth-links {
    display: flex;
    gap: 1rem;
}

.auth-links a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: var(--primary-color);
}

/* Wishlist Icon */
.wishlist-icon {
    position: relative;
    color: var(--dark-color);
    text-decoration: none;
}

.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    overflow-y: auto;
    transition: left 0.3s ease;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
}

.close-mobile-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-search {
    margin-bottom: 1.5rem;
}

.mobile-search form {
    display: flex;
}

.mobile-search input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
}

.mobile-search button {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.mobile-nav {
    list-style: none;
    margin-bottom: 1.5rem;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: var(--primary-color);
}

.mobile-account,
.mobile-auth {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.mobile-account p {
    margin-bottom: 1rem;
    font-weight: bold;
}

.mobile-account a,
.mobile-auth a {
    display: block;
    padding: 0.5rem 0;
    color: var(--dark-color);
    text-decoration: none;
}

.mobile-auth {
    display: flex;
    gap: 1rem;
}

.mobile-auth a {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: 5px;
}

.mobile-login {
    background: var(--light-color);
    border: 1px solid var(--border-color);
}

.mobile-register {
    background: var(--primary-color);
    color: white !important;
}

/* Responsive Design Updates */
@media (max-width: 992px) {
    .search-bar {
        flex: 0 1 250px;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .search-bar,
    .auth-links,
    .user-dropdown,
    .wishlist-icon {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
    }
    
    .cart-icon {
        margin-left: auto;
    }
}

@media (min-width: 769px) {
    .mobile-menu,
    .mobile-menu-toggle {
        display: none;
    }
}


/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

.user-btn:hover {
    background: #f0f0f0;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: #f5f5f5;
}

.dropdown-content a i {
    width: 20px;
    color: #667eea;
}

.dropdown-content a.text-danger i,
.dropdown-content a.text-danger {
    color: #dc3545;
}

.dropdown-divider {
    height: 1px;
    background: #e1e1e1;
    margin: 5px 0;
}

/* Auth Links */
.auth-links {
    display: flex;
    gap: 15px;
}

.auth-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s;
}

.auth-links a:hover {
    background: #667eea;
    color: white;
}

.auth-links a:hover i {
    color: white;
}

/* Mobile Auth Links */
.mobile-auth {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-auth a {
    display: block;
    padding: 12px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

.mobile-login {
    background: #f0f0f0;
    color: #333;
}

.mobile-register {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-links,
    .user-dropdown {
        display: none;
    }
}.search-page {
    padding: 2rem 0;
    min-height: 60vh;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.search-query {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.search-stats {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray-color);
    font-size: 1.1rem;
}

.category-suggestions {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.category-suggestions h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.category-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-tag span {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.category-tag:hover span {
    color: white;
}

.search-toolbar {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 5px;
    display: flex;
    justify-content: flex-end;
}

.no-results,
.empty-search {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-color);
    border-radius: 10px;
}

.no-results i,
.empty-search i {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.no-results h2,
.empty-search h2 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.no-results p,
.empty-search p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.suggestions,
.popular-categories,
.popular-searches {
    max-width: 400px;
    margin: 2rem auto;
    text-align: left;
}

.suggestions h3,
.popular-categories h3,
.popular-searches h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.suggestions ul {
    list-style: none;
    padding: 0;
}

.suggestions li {
    padding: 0.5rem 0;
    color: var(--gray-color);
    display: flex;
    align-items: center;
}

.suggestions li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.category-links,
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-link,
.search-tag {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.category-link:hover,
.search-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Search Suggestions Dropdown */
.search-bar {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--light-color);
}

.suggestion-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.suggestion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.suggestion-price {
    color: var(--primary-color);
    font-weight: bold;
}

.suggestion-view-all {
    padding: 0.75rem;
    text-align: center;
    background: var(--light-color);
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.suggestion-view-all:hover {
    background: var(--border-color);
}
.btn-whatsapp{
    background:#25D366;
    color:#fff;
    padding:8px 12px;
    border-radius:6px;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:14px;
    transition:0.3s;
}

.btn-whatsapp:hover{
    background:#1ebe5d;
    color:#fff;
}
/* Checkout Page Styles */
.checkout-page {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step.completed .step-number {
    background: #28a745;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-label {
    font-weight: 500;
    color: #333;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.checkout-form {
    flex: 1;
}

.checkout-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.checkout-section h2 {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.col {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102,126,234,0.1);
}

.form-control.error {
    border-color: #dc3545;
}

.error-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}

/* Account Options */
.account-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option span {
    font-weight: 500;
    color: #333;
}

.account-fields {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e1e1e1;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar.weak {
    width: 25%;
    background: #dc3545;
}

.strength-bar.medium {
    width: 50%;
    background: #ffc107;
}

.strength-bar.strong {
    width: 75%;
    background: #28a745;
}

/* Shipping Methods */
.shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.shipping-option:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.shipping-option input[type="radio"] {
    margin-right: 15px;
}

.shipping-info {
    flex: 1;
}

.shipping-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.shipping-description {
    font-size: 12px;
    color: #666;
}

.shipping-cost {
    font-weight: 600;
    color: #28a745;
}

.free-shipping {
    color: #28a745;
    font-weight: 600;
}

/* Payment Section */
.payment-section .payment-info {
    padding: 20px;
    background: #e7f1ff;
    border-radius: 8px;
}

.cod-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cod-info i {
    font-size: 32px;
    color: #28a745;
}

.cod-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.cod-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Order Summary Sidebar */
.checkout-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.order-summary {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.order-summary h2 {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.order-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e1e1e1;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.item-quantity {
    font-size: 12px;
    color: #666;
}

.item-price {
    font-weight: 600;
    color: #333;
}

.order-totals {
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    padding: 15px 0;
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.grand-total {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding-top: 10px;
    margin-top: 5px;
    border-top: 2px solid #f0f0f0;
}

/* Place Order Button */
.btn-place-order {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

.secure-checkout {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.secure-checkout i {
    color: #28a745;
    margin-right: 5px;
}

.info-box {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

.info-box i {
    color: #667eea;
    margin-right: 8px;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 992px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-right {
        position: static;
        order: -1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .checkout-steps {
        flex-wrap: wrap;
    }
    
    .account-options {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .checkout-page {
        padding: 20px 0;
    }
    
    .checkout-section {
        padding: 20px;
    }
    
    .shipping-option {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cod-info {
        flex-direction: column;
        text-align: center;
    }
}
.info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #e7f3ff;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 0.875rem;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}