/* Home Page Styles */

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-logo {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-logo-img {
    height: 100px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
}

.hero-title .accent {
    color: var(--accent-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--medium-grey);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Featured Products Section */
.featured-products {
    padding: 5rem 0;
    background: var(--primary-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem 1.25rem;
    margin-top: 3rem;
}

/* --- Editorial Product Card (shared base) --- */
.product-card,
.shop-product-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    cursor: pointer;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover,
.shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.product-image,
.shop-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    height: auto;
    background: #f2f2f2;
    border-radius: 4px;
}

.product-image .pc-img,
.shop-product-image .pc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.5s ease;
}

.product-image .pc-img-alt,
.shop-product-image .pc-img-alt {
    opacity: 0;
}

/* Hover-swap when alt image exists */
.product-image.has-swap:hover .pc-img-primary,
.shop-product-image.has-swap:hover .pc-img-primary {
    opacity: 0;
}
.product-image.has-swap:hover .pc-img-alt,
.shop-product-image.has-swap:hover .pc-img-alt {
    opacity: 1;
}

/* Subtle zoom on hover for cards without an alt */
.product-card:hover .product-image:not(.has-swap) .pc-img-primary,
.shop-product-card:hover .shop-product-image:not(.has-swap) .pc-img-primary {
    transform: scale(1.04);
}

/* "New" thin accent strip top-left on hover */
.product-card::before,
.shop-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-black);
    z-index: 2;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover::before,
.shop-product-card:hover::before {
    width: 40px;
}

.product-info,
.shop-product-info {
    padding: 1rem 0.25rem 0.5rem;
    text-align: left;
}

.product-info .pc-brand,
.shop-product-info .pc-brand {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--medium-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}

.product-info h3,
.shop-product-info h3 {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.35;
    display: inline-block;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-info h3,
.shop-product-card:hover .shop-product-info h3 {
    background-size: 100% 1px;
}

.product-info .price,
.shop-product-info .price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0;
    letter-spacing: 0.2px;
}

.product-info .pc-currency,
.shop-product-info .pc-currency {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--medium-grey);
    margin-left: 2px;
    letter-spacing: 1px;
}

/* Trending Categories Section */
.trending-categories {
    padding: 5rem 0;
}

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

.category-card {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 2rem;
    text-align: center;
}

.category-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-content p {
    color: var(--medium-grey);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.category-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Mobile Responsive */
/* Women's Collection Section */
.womens-collection {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

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

.brand-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.brand-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.brand-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.brand-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.brand-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 3em;
}

.shop-now-btn {
    background: #000;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.shop-now-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Women's collection brand logo tweaks: apply to all brand cards (Gymshark Women, YoungLA Women) */
.womens-collection .brand-image {
    width: 140px;
    height: 140px;
    border-radius: 12px; /* subtle rounded square */
    background: transparent; /* remove grey halo behind transparent logos */
    overflow: hidden; /* allow slight upscale without spilling */
}

.womens-collection .brand-image img {
    width: 82%; /* base size for balance */
    height: 82%;
    max-width: none; /* override the 80px cap */
    max-height: none; /* override the 80px cap */
    object-fit: contain;
}

/* Compensate for extra whitespace in some logos */
.brand-card[data-brand="gymshark-women"] .brand-image img,
.brand-card[data-brand="youngla-women"] .brand-image img {
    width: 195%;
    height: 195%;
}


@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 0.75rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-image {
        height: 200px;
    }
    
    .category-content {
        padding: 1.5rem;
    }
    
    .featured-products,
    .trending-categories {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0.5rem;
    }
}
