/* ==========================================================================
   Salepoet Athena — Global Styles
   Zero dependencies. System font stacks. CSS custom properties.
   ========================================================================== */

:root {
    --athena-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --athena-font-heading: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --athena-color-primary: #1a1a2e;
    --athena-color-accent: #c2185b;
    --athena-color-bg: #ffffff;
    --athena-color-surface: #f8f8fa;
    --athena-color-text: #23232b;
    --athena-color-text-muted: #6b6b76;
    --athena-color-border: #e4e4e8;
    --athena-radius: 6px;
    --athena-header-bg: var(--athena-color-primary);
    --athena-header-text: #ffffff;
    --athena-max-width: 1200px;
    --athena-gap: 1.5rem;
}

/* --- Reset ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--athena-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--athena-color-text);
    background: var(--athena-color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--athena-color-accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --- Header ----------------------------------------------------------- */
.site-header {
    background: var(--athena-header-bg);
    color: var(--athena-header-text);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    max-width: var(--athena-max-width);
    margin: 0 auto;
    padding: 0 var(--athena-gap);
    display: flex;
    align-items: center;
    gap: var(--athena-gap);
    height: 60px;
}

/* Logo */
.site-logo {
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo__img {
    height: 32px;
    width: auto;
}
.site-logo__text {
    font-family: var(--athena-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Nav */
.site-nav {
    margin-left: auto;
}
.site-nav__list {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}
.site-nav__list a {
    color: var(--athena-header-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.15s;
}
.site-nav__list a:hover {
    opacity: 1;
    text-decoration: none;
}
.site-nav__list .sub-menu {
    display: none;
    list-style: none;
    position: absolute;
    background: var(--athena-color-bg);
    border: 1px solid var(--athena-color-border);
    border-radius: var(--athena-radius);
    padding: 0.5rem 0;
    min-width: 160px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.site-nav__list li {
    position: relative;
}
.site-nav__list li:hover > .sub-menu {
    display: block;
}
.site-nav__list .sub-menu a {
    color: var(--athena-color-text);
    display: block;
    padding: 0.4rem 1rem;
    font-size: 0.825rem;
}

/* Cart icon */
.site-header__cart {
    color: var(--athena-header-text);
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.site-header__cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--athena-color-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.menu-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--athena-header-text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* --- Main ------------------------------------------------------------- */
.site-main {
    max-width: var(--athena-max-width);
    margin: 0 auto;
    padding: var(--athena-gap);
    min-height: 60vh;
}

/* Front page uses full-width sections with their own inner containers */
body.home .site-main {
    max-width: none;
    padding: 0;
}

/* --- WooCommerce Core Overrides --------------------------------------- */
.woo-content {
    padding-top: 1rem;
}

/* Product grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--athena-gap);
    list-style: none;
    padding: 0;
}
.woocommerce ul.products li.product {
    background: var(--athena-color-surface);
    border: 1px solid var(--athena-color-border);
    border-radius: var(--athena-radius);
    padding: 1rem;
    text-align: center;
    transition: box-shadow 0.2s;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.woocommerce ul.products li.product a img {
    border-radius: var(--athena-radius);
    margin-bottom: 0.75rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--athena-font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.woocommerce ul.products li.product .price {
    color: var(--athena-color-accent);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button {
    display: inline-block;
    background: var(--athena-color-accent);
    color: #fff;
    border: none;
    border-radius: var(--athena-radius);
    padding: 0.55rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: var(--athena-color-primary);
    text-decoration: none;
}

/* Single product */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.woocommerce div.product div.images {
    border-radius: var(--athena-radius);
    overflow: hidden;
}
.woocommerce div.product div.summary {
    padding-top: 1rem;
}
.woocommerce div.product .product_title {
    font-family: var(--athena-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.woocommerce div.product .price {
    font-size: 1.35rem;
    color: var(--athena-color-accent);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 0.8rem;
    color: var(--athena-color-text-muted);
    margin-bottom: 1.25rem;
}
.woocommerce-breadcrumb a {
    color: var(--athena-color-text-muted);
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: var(--athena-radius);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 2rem;
    text-align: center;
}
.woocommerce-pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 0.35rem;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: var(--athena-radius);
    font-size: 0.85rem;
}
.woocommerce-pagination ul li span.current {
    background: var(--athena-color-accent);
    color: #fff;
}

/* --- Shared Section Layout -------------------------------------------- */
.athena-section__inner {
    max-width: var(--athena-max-width);
    margin: 0 auto;
    padding: 3.5rem var(--athena-gap);
}
.athena-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    gap: 1rem;
}
.athena-section__title {
    font-family: var(--athena-font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--athena-color-text);
    line-height: 1.2;
}
.athena-section__subtitle {
    color: var(--athena-color-text-muted);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* --- Buttons ---------------------------------------------------------- */
.athena-btn {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: var(--athena-radius);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    border: none;
    letter-spacing: 0.02em;
}
.athena-btn:hover { text-decoration: none; }
.athena-btn--primary {
    background: var(--athena-color-accent);
    color: #fff;
}
.athena-btn--primary:hover {
    background: var(--athena-color-primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.athena-btn--outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
}
.athena-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
.athena-btn--small {
    font-size: 0.8rem;
    padding: 0.5rem 1.1rem;
    background: var(--athena-color-surface);
    color: var(--athena-color-text);
    border: 1px solid var(--athena-color-border);
}
.athena-btn--small:hover {
    background: var(--athena-color-primary);
    color: #fff;
    border-color: var(--athena-color-primary);
}

/* --- Hero ------------------------------------------------------------- */
.athena-hero {
    background: var(--athena-color-primary);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.athena-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(194, 24, 91, 0.15), transparent),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(194, 24, 91, 0.08), transparent);
    pointer-events: none;
}
.athena-hero__inner {
    max-width: var(--athena-max-width);
    margin: 0 auto;
    padding: 5rem var(--athena-gap) 5.5rem;
    position: relative;
}
.athena-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.6;
    margin-bottom: 1rem;
}
.athena-hero__title {
    font-family: var(--athena-font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.athena-hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.75;
    max-width: 480px;
    margin-bottom: 2rem;
}
.athena-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* --- Category Cards --------------------------------------------------- */
.athena-categories {
    background: var(--athena-color-bg);
}
.athena-categories .athena-section__title,
.athena-categories .athena-section__subtitle {
    text-align: center;
}
.athena-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.athena-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem 1.75rem;
    background: var(--athena-color-surface);
    border: 1px solid var(--athena-color-border);
    border-radius: 10px;
    color: var(--athena-color-text);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}
.athena-cat-card:hover {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
    border-color: var(--athena-color-accent);
}
.athena-cat-card__icon {
    width: 48px;
    height: 48px;
    color: var(--athena-color-accent);
    margin-bottom: 1rem;
}
.athena-cat-card__icon svg {
    width: 100%;
    height: 100%;
}
.athena-cat-card__title {
    font-family: var(--athena-font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.athena-cat-card__desc {
    font-size: 0.8rem;
    color: var(--athena-color-text-muted);
    line-height: 1.4;
}
.athena-cat-card__arrow {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 1.1rem;
    color: var(--athena-color-accent);
    transition: transform 0.2s;
}
.athena-cat-card:hover .athena-cat-card__arrow {
    transform: translateX(4px);
}

/* --- Arrivals / On-Sale sections -------------------------------------- */
.athena-arrivals,
.athena-onsale {
    background: var(--athena-color-bg);
}
.athena-onsale {
    background: var(--athena-color-surface);
}

/* --- Promo Banner ----------------------------------------------------- */
.athena-promo {
    background: var(--athena-color-primary);
    color: #fff;
    overflow: hidden;
}
.athena-promo__inner {
    max-width: var(--athena-max-width);
    margin: 0 auto;
    padding: 4rem var(--athena-gap);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.athena-promo__badge {
    display: inline-block;
    background: var(--athena-color-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.athena-promo__title {
    font-family: var(--athena-font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.athena-promo__text {
    font-size: 0.95rem;
    line-height: 1.65;
    opacity: 0.75;
    margin-bottom: 1.75rem;
    max-width: 420px;
}
.athena-promo__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.athena-promo__shape {
    width: 240px;
    height: 320px;
    border-radius: 120px 120px 30px 30px;
    background: linear-gradient(145deg, rgba(194,24,91,0.25), rgba(194,24,91,0.05));
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
}
.athena-promo__shape::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 100px 100px 20px 20px;
    background: linear-gradient(160deg, rgba(255,255,255,0.06), transparent);
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- Value Props ------------------------------------------------------- */
.athena-values {
    background: var(--athena-color-bg);
    border-top: 1px solid var(--athena-color-border);
}
.athena-values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.athena-value__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    color: var(--athena-color-accent);
    margin-bottom: 0.75rem;
}
.athena-value__icon svg {
    width: 100%;
    height: 100%;
}
.athena-value__title {
    font-family: var(--athena-font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.athena-value__text {
    font-size: 0.8rem;
    color: var(--athena-color-text-muted);
    line-height: 1.5;
}

/* --- Front-page responsive -------------------------------------------- */
@media (max-width: 768px) {
    .athena-hero__inner {
        padding: 3.5rem var(--athena-gap) 4rem;
    }
    .athena-categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .athena-promo__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .athena-promo__text {
        margin-left: auto;
        margin-right: auto;
    }
    .athena-promo__visual {
        display: none;
    }
    .athena-values__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .athena-section__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .athena-categories__grid {
        grid-template-columns: 1fr;
    }
    .athena-values__grid {
        grid-template-columns: 1fr;
    }
}

/* --- Footer ----------------------------------------------------------- */
.site-footer {
    background: var(--athena-color-primary);
    color: rgba(255,255,255,0.7);
    margin-top: 3rem;
    font-size: 0.85rem;
}
.site-footer__inner {
    max-width: var(--athena-max-width);
    margin: 0 auto;
    padding: 2rem var(--athena-gap);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-footer__name {
    display: block;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}
.site-footer__list {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}
.site-footer__list a {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}
.site-footer__list a:hover {
    color: #fff;
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--athena-header-bg);
        padding: 1rem var(--athena-gap);
    }
    .site-nav.is-open {
        display: block;
    }
    .site-nav__list {
        flex-direction: column;
        gap: 0.75rem;
    }
    .site-nav__list .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 1rem;
    }
    .woocommerce div.product {
        grid-template-columns: 1fr;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}
