/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

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

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

.top-bar p {
    margin: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #DB4444;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 8px 12px;
    width: 300px;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 5px;
    outline: none;
}

.search-bar button {
    background: transparent;
    color: #666;
}

.category-nav {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 15px 0;
}

.category-list {
    display: flex;
    justify-content: space-between;
}

.category-list a {
    font-weight: 500;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #DB4444;
}

/* Product Details Styles */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #DB4444;
}

.product-details {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.product-gallery {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.thumbnail-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-list::-webkit-scrollbar {
    display: none;
}

.thumbnail-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border 0.3s;
    flex-shrink: 0;
}

.thumbnail-list img.active {
    border-color: #007bff;
}

.main-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    user-select: none;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    touch-action: pan-y;
}

.product-info-details {
    flex: 1;
}

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

.product-rating-details {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-price-details {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #DB4444;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-options {
    margin-bottom: 30px;
}

.option-title {
    font-weight: 500;
    margin-bottom: 10px;
}

.color-options,
.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.color-option,
.size-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.color-option.active,
.size-option.active {
    background-color: #DB4444;
    color: #fff;
    border-color: #DB4444;
}

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

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-value {
    font-size: 18px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.buy-now-btn {
    background-color: #DB4444;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
}

.add-to-cart-btn {
    background-color: transparent;
    border: 1px solid #DB4444;
    color: #DB4444;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #DB4444;
    color: #fff;
}

.delivery-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 40px;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

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

.delivery-icon {
    color: #DB4444;
    font-size: 20px;
}

/* Related Products */
.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.related-products {
    margin-bottom: 60px;
}

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

.product-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.product-image {
    height: auto;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    max-width: 80%;
    max-height: 100%;
}

.product-image .img-hover {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-image:hover .img-hover {
    opacity: 1;
}

.product-image:hover .img-main {
    opacity: 0;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #DB4444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 19px;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-weight: 500;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    color: #DB4444;
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 19px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFAD33;
    font-size: 14px;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 30px;
}

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

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

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

.footer-column ul li a:hover {
    color: #DB4444;
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.subscribe-form button {
    background-color: #DB4444;
    color: #fff;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 14px;
}

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

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
}

.thumbnail {
    width: 100%;
    border: 2px solid transparent;
    cursor: pointer;
}

.thumbnail.active {
    border-color: #000;
}

.main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-details {
        flex-direction: column;
    }

    .product-gallery {
        height: 300px;
    }

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

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

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        width: 100%;
        margin-top: 15px;
    }

    .category-list {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
    }

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

@media (max-width: 576px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .color-options,
    .size-options {
        flex-wrap: wrap;
    }
}