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

:root {
    --primary-color: #000;
    --secondary-color: #ff4444;
    --accent-color: #ffd700;
    --text-color: #333;
    --light-bg: #f8f8f8;
    --white: #fff;
    --gray: #888;
    --light-gray: #e0e0e0;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1, .logo h1 a {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 1rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
}

/* Cart Icon */
.cart-icon {
    position: relative;
}

.cart-icon a {
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section with 3D Animation */
.hero-3d {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button:hover {
    background: #ff6666;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,68,68,0.4);
}

.animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero3d {
    width: 100%;
    height: 100%;
}

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

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Hot Collections */
.hot-collections {
    padding: 5rem 0;
    background: var(--light-bg);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.collection-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 400px;
}

.collection-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--white);
}

.collection-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.collection-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.view-collection {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.view-collection:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.collection-card:hover .collection-image img {
    transform: scale(1.1);
}

/* Products Grid */
.featured-products, .products-section, .related-products {
    padding: 5rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.discount-badge, .hot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.hot-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    left: 10px;
    right: auto;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-3d-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.view-3d-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.star {
    color: var(--light-gray);
    font-size: 1rem;
}

.star.filled {
    color: var(--accent-color);
}

.rating-value {
    color: var(--gray);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    color: var(--gray);
    text-decoration: line-through;
}

.add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--gray);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #333);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Products Page Layout */
.products-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.filters-sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filters-sidebar h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.filter-list {
    list-style: none;
    margin-bottom: 2rem;
}

.filter-list li {
    margin-bottom: 0.75rem;
}

.filter-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.filter-list a:hover, .filter-list a.active {
    background: var(--light-bg);
    color: var(--secondary-color);
}

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

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

.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
}

.viewer-3d-container {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

#product3d {
    width: 100%;
    height: 400px;
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.view-3d-toggle {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.view-3d-toggle:hover {
    background: var(--secondary-color);
}

.viewer-hint {
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.product-details {
    padding: 1rem 0;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.product-rating-detail .stars {
    display: flex;
    gap: 0.25rem;
}

.rating-text {
    color: var(--gray);
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.current-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price-large {
    font-size: 1.5rem;
    color: var(--gray);
    text-decoration: line-through;
}

.save-amount {
    color: var(--secondary-color);
    font-weight: 600;
}

.product-description {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.product-description h3 {
    margin-bottom: 1rem;
}

.product-description p {
    line-height: 1.8;
    color: var(--gray);
}

.product-options {
    margin-bottom: 2rem;
}

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

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.size-options, .color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-btn, .color-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.size-btn:hover, .color-btn:hover,
.size-btn.active, .color-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.color-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--light-gray);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

#quantity {
    width: 80px;
    padding: 0.75rem;
    text-align: center;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-weight: 600;
}

.stock-info {
    color: var(--gray);
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.add-to-cart-large, .buy-now-btn {
    flex: 1;
    padding: 1.25rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-large {
    background: var(--primary-color);
    color: var(--white);
}

.add-to-cart-large:hover {
    background: #333;
}

.buy-now-btn {
    background: var(--secondary-color);
    color: var(--white);
}

.buy-now-btn:hover {
    background: #ff6666;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--gray);
}

/* Reviews Section */
.reviews-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.reviews-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rating-overview {
    text-align: center;
}

.average-rating {
    display: inline-block;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stars-large {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2rem;
    margin: 1rem 0;
}

.reviews-list {
    display: grid;
    gap: 1.5rem;
}

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.reviewer-name {
    margin-bottom: 0.25rem;
}

.review-rating {
    display: flex;
    gap: 0.25rem;
}

.review-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.review-comment {
    line-height: 1.8;
    color: var(--text-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-col h3, .footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: 200px 1fr;
    }

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

    .product-images {
        position: relative;
        top: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-bg);
        margin-top: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

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

    .products-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: relative;
        top: 0;
    }

    .product-detail-grid {
        gap: 2rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .current-price-large {
        font-size: 2rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.75rem 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .review-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}
