/*
Theme Name: EQL Apparel Clone
Theme URI: https://eql-apparel.com/
Description: A high-end minimalist eCommerce theme cloned from EQL Apparel.
Author: Antigravity
Author URI: https://google.com/
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eql-clone
Tags: ecommerce, minimalist, fashion, clean
*/

@charset "UTF-8";

/* --- Critical Layout Reset --- */
html {
    font-size: 62.5%;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-size: 1.6rem;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

:root {
    --color-background-body: #ffffff;
    --color-text: #000000;
    --color-border: #e5e5e5;
    --container-width: 1400px;
    --gap: 20px;
    --border-radius: 4px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.announcement-bar {
    background: #000;
    color: #fff;
    padding: 0.8rem 0;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 500;
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.header-column {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.header__logo {
    height: auto;
    max-width: 120px;
    display: block;
}

.main-nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2.5rem;
}

.main-nav-list a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

.main-nav-list a:hover {
    opacity: 0.7;
}

.header__icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon {
    font-family: 'Material Symbols Outlined';
    font-size: 2.4rem;
    cursor: pointer;
    color: #000;
}

/* --- Product Cards & WooCommerce Grid --- */
/* Target both custom and standard WooCommerce classes */
.u-grid,
.woocommerce ul.products {
    display: grid !important;
    gap: var(--gap) !important;
    grid-template-columns: repeat(4, 1fr) !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 4rem 0 !important;
}

@media (max-width: 1024px) {

    .u-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {

    .u-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.product-card,
.woocommerce ul.products li.product {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: transform 0.3s ease;
}

.product-card__image-wrapper,
.woocommerce ul.products li.product a img {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-card__image-wrapper img,
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image Swap Logic */
.product-card .image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .image-secondary {
    opacity: 1;
}

.product-card__info {
    padding-top: 1rem;
}

.product-card__title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    color: #000;
    text-decoration: none;
}

.product-card__price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
}

/* --- Product Detail Page --- */
.single-product-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
    margin: 5rem auto;
}

.product__media-wrapper {
    flex: 0 0 60%;
}

.product__info-wrapper {
    flex: 0 0 35%;
    position: sticky;
    top: 15rem;
    align-self: flex-start;
}

@media (max-width: 991px) {

    .product__media-wrapper,
    .product__info-wrapper {
        flex: 0 0 100%;
    }

    .product__info-wrapper {
        position: static;
        margin-top: 3rem;
    }
}

.main-product__gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-product__gallery img {
    width: 100%;
    height: auto;
}

.main-product__title h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.main-product__price {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

/* --- Sidebar --- */
.grid-archive {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
}

.grid-archive__sidebar {
    flex: 0 0 250px;
}

.grid-archive__main {
    flex: 1;
}

@media (max-width: 991px) {
    .grid-archive {
        flex-direction: column;
    }

    .grid-archive__sidebar {
        flex: 0 0 auto;
        order: 2;
    }
}

/* --- Cart Drawer --- */
.mini-cart {
    z-index: 2000;
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.mini-cart.active {
    transform: translateX(0);
}

.mini-cart__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1999;
}

.mini-cart.active+.mini-cart__overlay,
.mini-cart.active~.mini-cart__overlay {
    opacity: 1;
    visibility: visible;
}

/* --- Utility --- */
.button--plain {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.hide-mobile {
    @media (max-width: 768px) {
        display: none !important;
    }
}

.text-center {
    text-align: center;
}

/* --- Final Refinements --- */
.icon {
    font-family: 'Material Symbols Outlined' !important;
    font-style: normal;
}

.button--view-product {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #000;
}

.price .woocommerce-Price-amount {
    color: #000;
    font-weight: 700;
}

.shop-sidebar-widget {
    margin-bottom: 3rem;
}

.shop-sidebar-widget h2 {
    font-size: 1.60rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
}