

/* --------------------------------------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f9fafb;
    line-height: 1.6;
    color: #374151;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 0;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4f46e5;
}

.modal-img {
    width: 13%;
}

.nav-links {
    display: none;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #4f46e5;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    position: relative;
}

.search-input {
    width: 16rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #4f46e5;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.nav-icons {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: #4f46e5;
}
.search-btn {
    color: #4F46E5;
    font-size: .7rem;
    text-decoration: none;
    cursor: pointer;
    margin-left: 1rem;
    border-radius: 50%;
    transition: color 0.3s ease;
    cursor: pointer;
    padding: 11px;
    margin-left: 9px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #4F46E5;
}

.search-btn:hover {
    color: #fff;  
    background-color: #4F46E5;
    border-color: #4F46E5;
}
.contact-info {
    font-size: 0.875rem;
    color: #6b7280;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 0.2rem;
        justify-content: center;
        align-items: center;
        max-width: 1000px;
        flex-wrap: wrap;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    color: white;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0;
    gap: 2rem;
}

.hero-text {
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #c7d2fe;
}

.hero-btn {
    background-color: white;
    color: #4f46e5;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hero-btn:hover {
    background-color: #f3f4f6;
}

.hero-image {
    width: 100%;
}

.hero-img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
    }

    .hero-text {
        width: 50%;
        text-align: left;
    }

    .hero-image {
        width: 50%;
    }

    .hero-title {
        font-size: 3.75rem;
    }
}

/* Products Section */
.products-section {
    padding: 4rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    padding: 2rem;
}

.product-image {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.wishlist-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

.product-card:hover .wishlist-btn {
    opacity: 1;
}

.wishlist-btn i {
    color: #6b7280;
    transition: color 0.2s;
}

.wishlist-btn:hover i {
    color: #ef4444;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.product-price {
    font-size: 1.125rem;
    font-weight: bold;
    color: #4f46e5;
}

.add-to-cart-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #4338ca;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Detail Section */
.product-detail-section {
    padding: 3rem 0;
}

.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.product-images {
    width: 100%;
    display: flex;
    gap: 1rem;
}

.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thumbnail {
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.thumbnail:hover {
    opacity: 0.75;
}

.main-image-container {
    flex: 1;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1rem;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.product-details {
    width: 100%;
}

.detail-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.rating-section {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.stars {
    color: #fbbf24;
}

.review-count {
    color: #6b7280;
}

.stock-status {
    color: #10b981;
    font-weight: 600;
}

.detail-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.product-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.option-section {
    margin-bottom: 1.5rem;
}

.option-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.color-options {
    display: flex;
    gap: 0.5rem;
}

.color-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.color-btn.active,
.color-btn:hover {
    box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor;
}

.size-options {
    display: flex;
    gap: 0.5rem;
}

.size-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.size-btn.active {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.quantity-section {
    margin-bottom: 1.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    width: fit-content;
}

.qty-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.qty-btn:hover {
    background-color: #f3f4f6;
}

.qty-input {
    width: 4rem;
    text-align: center;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    padding: 0.5rem;
    outline: none;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.buy-now-btn {
    flex: 1;
    background-color: #4f46e5;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.buy-now-btn:hover {
    background-color: #4338ca;
}

.wishlist-detail-btn {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wishlist-detail-btn:hover {
    background-color: #f3f4f6;
}

@media (min-width: 768px) {
    .product-detail {
        flex-wrap: nowrap;
    }

    .product-images {
        width: 50%;
    }

    .product-details {
        width: 50%;
    }
}

/* Cart Section */
.cart-section {
    padding: 3rem 0;
}

.cart-table {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background-color: #f9fafb;
    padding: 1rem;
    font-weight: 600;
}

.cart-items {
    border-top: 1px solid #e5e7eb;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.cart-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-image {
    width: 4rem;
    height: 4rem;
    border-radius: 0.25rem;
}

.qty-select {
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.25rem 0.75rem;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.return-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.return-btn:hover {
    background-color: #f9fafb;
}

.update-cart-btn {
    padding: 0.5rem 1.5rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.update-cart-btn:hover {
    background-color: #4338ca;
}

.cart-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.coupon-section {
    grid-column: span 2;
}

.coupon-input {
    display: flex;
    gap: 1rem;
}

.coupon-field {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    outline: none;
}

.coupon-field:focus {
    border-color: #4f46e5;
}

.apply-coupon-btn {
    padding: 0.5rem 1.5rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.apply-coupon-btn:hover {
    background-color: #4338ca;
}

.cart-summary {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.summary-details {
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    font-weight: 600;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.checkout-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #4338ca;
}

@media (min-width: 768px) {
    .cart-bottom {
        grid-template-columns: 2fr 1fr;
    }
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: #d1d5db;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-text {
    color: #9ca3af;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.newsletter {
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    outline: none;
}

.newsletter-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.newsletter-btn:hover {
    background-color: #4338ca;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .nav-right {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-input {
        width: 12rem;
    }
    
    .contact-info {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .cart-header,
    .cart-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .cart-header > div,
    .cart-item > div {
        padding: 0.25rem 0;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .coupon-input {
        flex-direction: column;
    }
}

/* Additional Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}