/* ============================================
   DANA ALON CONCEPT STORE
   Net-a-Porter inspired luxury e-commerce
   Below-the-fold styles (critical CSS is inlined in header.php)
   ============================================ */

/* --- Container --- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    max-height: 900px;
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero__slide.active { opacity: 1; }

.hero__slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 40%, transparent 70%);
}

.hero__content {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 48px;
}

.hero__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    margin-bottom: 12px;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
    max-width: 600px;
}

.hero__cta {
    display: inline-block;
    padding: 14px 36px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    transition: background .3s, color .3s;
}
.hero__cta:hover { background: #000; color: #fff; }

.hero__dots {
    position: absolute;
    bottom: 30px;
    left: 48px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero__dot {
    width: 32px;
    height: 3px;
    background: rgba(255,255,255,.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .3s, width .3s;
}
.hero__dot.active { background: #fff; width: 48px; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 64px 0; }
.section--lg { padding: 80px 0; }
.section--bg { background: #fafafa; }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
}
.section-header h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; }

.view-all {
    font-size: 13px;
    font-weight: 500;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: opacity .2s;
    border-bottom: 1px solid #000;
    padding-bottom: 1px;
}
.view-all:hover { opacity: .55; }
.view-all svg { width: 14px; height: 14px; display: block; }

/* ============================================
   VALUE BAR
   ============================================ */
.value-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.value-bar__item {
    text-align: center;
    padding: 28px 16px;
    border-right: 1px solid #eee;
}
.value-bar__item:last-child { border-right: none; }

.value-bar__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.value-bar__text { font-size: 12px; color: #757575; line-height: 1.4; }

/* ============================================
   CATEGORY GRID
   ============================================ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }

.cat-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    display: block;
}
.cat-card--wide { grid-column: span 2; aspect-ratio: auto; }

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.19,1,.22,1);
}
.cat-card:hover img { transform: scale(1.04); }

.cat-card__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 100%);
    color: #fff;
}
.cat-card__name { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.cat-card__count { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 2px; }

.cat-card__placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #bdbdbd;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.prod-card { position: relative; }

.prod-card__img {
    position: relative;
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #fafafa;
    margin-bottom: 12px;
}
.prod-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .4s ease;
}

.prod-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 8px;
    z-index: 2;
}

.prod-card__wish {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    opacity: 0;
    transition: opacity .25s;
    z-index: 2;
    border: none;
    padding: 0;
    cursor: pointer;
}
.prod-card:hover .prod-card__wish { opacity: 1; }
.prod-card__wish svg { width: 14px; height: 14px; display: block; }

.prod-card__brand {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 2px;
    line-height: 1.3;
}
.prod-card__name {
    font-size: 13px;
    font-weight: 400;
    color: #616161;
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prod-card__name a { color: inherit; }
.prod-card__price { font-size: 13px; font-weight: 600; }
.prod-card__price del { font-weight: 400; color: #9e9e9e; margin-right: 6px; }
.prod-card__price .sale { color: #c0392b; }

/* ============================================
   BRAND STORY (split)
   ============================================ */
.brand-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}
.brand-split--flip .brand-split__media { order: 2; }
.brand-split--flip .brand-split__body { order: 1; }

.brand-split__media { overflow: hidden; position: relative; }
.brand-split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.19,1,.22,1);
}
.brand-split:hover .brand-split__media img { transform: scale(1.03); }

.brand-split__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px;
    background: #fafafa;
}
.brand-split__origin {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9e9e9e;
    margin-bottom: 16px;
}
.brand-split__name {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.15;
}
.brand-split__text {
    font-size: 14px;
    color: #616161;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 440px;
}

.brand-split__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
    transition: opacity .2s;
}
.brand-split__link:hover { opacity: .55; }
.brand-split__link svg { width: 14px; height: 14px; display: block; }

/* ============================================
   LOGO MARQUEE
   ============================================ */
.logo-marquee {
    overflow: hidden;
    padding: 48px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.logo-marquee__track {
    display: flex;
    gap: 64px;
    align-items: center;
    animation: marquee 25s linear infinite;
    width: max-content;
}
.logo-marquee__track:hover { animation-play-state: paused; }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.logo-marquee__item {
    height: 28px;
    width: auto;
    flex-shrink: 0;
    opacity: .3;
    filter: grayscale(1);
    transition: opacity .3s, filter .3s;
}
.logo-marquee__item:hover { opacity: 1; filter: none; }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter { background: #000; color: #fff; padding: 72px 0; text-align: center; }
.newsletter h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; margin-bottom: 8px; color: #fff; }
.newsletter p { font-size: 13px; color: #9e9e9e; margin-bottom: 32px; }

.nl-form {
    display: flex;
    max-width: 440px;
    margin: 0 auto;
    border: 1px solid #424242;
}
.nl-form:focus-within { border-color: #fff; }

.nl-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 14px 16px;
    font-size: 13px;
    outline: none;
}
.nl-form input[type="email"]::placeholder { color: #757575; }
.nl-form button {
    background: #fff;
    color: #000;
    padding: 14px 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .3s;
    border: none;
    cursor: pointer;
}
.nl-form button:hover { background: #e0e0e0; }

.form-msg { font-size: 13px; margin-top: 12px; display: none; }
.form-msg--ok { display: block; color: #4caf50; }
.form-msg--err { display: block; color: #ef5350; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: #fafafa; padding: 64px 0 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e0e0e0;
}
.footer-brand img { height: 32px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: #757575; line-height: 1.6; max-width: 280px; margin-bottom: 20px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.footer-social a:hover { background: #000; border-color: #000; color: #fff; }
.footer-social a:hover svg { stroke: #fff; }
.footer-social a svg { width: 14px; height: 14px; display: block; }

.footer-col h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 0; margin: 0; }
.footer-col a, .footer-col li a {
    display: block;
    font-size: 13px;
    color: #757575;
    padding: 3px 0;
    transition: color .2s;
}
.footer-col a:hover, .footer-col li a:hover { color: #000; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 11px;
    color: #9e9e9e;
}
.footer-bottom a { color: #9e9e9e; margin-left: 20px; transition: color .2s; }
.footer-bottom a:hover { color: #000; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.contact-info {
    background: #fafafa;
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-info h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
.contact-info > p { font-size: 14px; color: #616161; line-height: 1.7; margin-bottom: 32px; }

.contact-row { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 16px; }
.contact-row svg { width: 18px; height: 18px; color: #9e9e9e; flex-shrink: 0; display: block; }

.contact-form-area {
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.c-form .form-group { margin-bottom: 20px; }
.c-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.c-form input,
.c-form textarea,
.c-form select {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    background: transparent;
    outline: none;
    transition: border-color .2s;
    border-radius: 0;
    -webkit-appearance: none;
}
.c-form input:focus,
.c-form textarea:focus,
.c-form select:focus { border-color: #000; }
.c-form textarea { min-height: 100px; resize: vertical; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: all .3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}
.btn--black { background: #000; color: #fff; }
.btn--black:hover { background: #424242; }
.btn--outline { border: 1px solid #000; color: #000; background: transparent; }
.btn--outline:hover { background: #000; color: #fff; }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: #eee; }
.btn--full { width: 100%; }

/* ============================================
   PAGE HEADER
   ============================================ */
.pg-header { padding: 48px 0 32px; border-bottom: 1px solid #eee; }
.pg-header h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
.pg-header p { font-size: 14px; color: #757575; margin-top: 6px; max-width: 480px; }

/* ============================================
   BRANDS PAGE
   ============================================ */
.brands-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.brand-card {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    display: block;
}
.brand-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.19,1,.22,1); }
.brand-card:hover img { transform: scale(1.04); }

.brand-card__info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .3s;
}
.brand-card:hover .brand-card__info { background: rgba(0,0,0,.55); }
.brand-card__name { font-size: 20px; font-weight: 700; }
.brand-card__from { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.brand-card__logo { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 8px; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   404
   ============================================ */
.four04 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 16px;
}
.four04 h1 { font-size: 6rem; font-weight: 800; color: #eee; line-height: 1; }
.four04 h2 { font-size: 1.5rem; font-weight: 600; }
.four04 p { color: #757575; font-size: 14px; margin-bottom: 8px; }

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.woocommerce ul.products li.product { margin: 0 !important; width: 100% !important; float: none !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px; font-weight: 400; padding: 8px 0 0; }
.woocommerce ul.products li.product .price { font-size: 13px; font-weight: 600; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: #000 !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 14px 28px !important;
    transition: background .3s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: #424242 !important; }
.woocommerce div.product div.images { width: 55%; }
.woocommerce div.product div.summary { width: 40%; }

/* WordPress Pagination */
.nav-links { display: flex; gap: 8px; justify-content: center; padding: 32px 0; }
.nav-links a, .nav-links span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 13px; border: 1px solid #eee; transition: all .2s; }
.nav-links a:hover, .nav-links .current { background: #000; color: #fff; border-color: #000; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 992px) {
    .brand-split { grid-template-columns: 1fr; }
    .brand-split--flip .brand-split__media { order: 0; }
    .brand-split__media { height: 360px; }
    .brand-split__body { padding: 40px 32px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-split { grid-template-columns: 1fr; }
    .contact-info, .contact-form-area { padding: 48px 32px; }
}

@media (max-width: 768px) {
    .hero { height: 70vh; min-height: 400px; }
    .hero__content { bottom: 48px; padding: 0 16px; }
    .hero__dots { left: 16px; bottom: 16px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .cat-card--wide { grid-column: span 2; }
    .value-bar { grid-template-columns: 1fr; }
    .value-bar__item { border-right: none; border-bottom: 1px solid #eee; padding: 20px 16px; }
    .value-bar__item:last-child { border-bottom: none; }
    .section { padding: 40px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .brands-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.75rem; }
    .product-grid { gap: 8px; }
    .prod-card__brand { font-size: 11px; }
    .prod-card__name { font-size: 12px; }
    .prod-card__price { font-size: 12px; }
    .brands-grid { grid-template-columns: 1fr; }
}

/* RTL overrides */
body.rtl .prod-card__badge { left: auto; right: 8px; }
body.rtl .prod-card__wish { right: auto; left: 8px; }
body.rtl .prod-card__price del { margin-right: 0; margin-left: 6px; }
body.rtl .brand-split { direction: rtl; }
body.rtl .brand-split--flip { direction: ltr; }
body.rtl .brand-split__link svg { transform: rotate(180deg); }
body.rtl .view-all svg { transform: rotate(180deg); }
body.rtl .footer-bottom a { margin-left: 0; margin-right: 20px; }
body.rtl .contact-split { direction: rtl; }
body.rtl .contact-row { flex-direction: row-reverse; }
body.rtl .nl-form { flex-direction: row-reverse; }
body.rtl .value-bar__item { border-right: none; border-left: 1px solid #eee; }
body.rtl .value-bar__item:last-child { border-left: none; }
body.rtl .cat-nav__list { flex-direction: row-reverse; }
body.rtl .hero__dots { left: auto; right: 48px; }
body.rtl .hero__content { text-align: right; }
body.rtl .woocommerce div.product div.images { float: right; }
body.rtl .woocommerce div.product div.summary { float: left; }
@media (max-width: 768px) {
    body.rtl .value-bar__item { border-left: none; }
    body.rtl .hero__dots { right: 16px; }
}
