/**
 * Theme Name: Horloger
 * Description: A luxury watch WooCommerce theme
 * Version: 1.0.0
 */

/* ============================================
   1. CSS Custom Properties
   ============================================ */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --gold: #b8943e;
    --gold-light: #c9a54a;
    --gold-dark: #9a7a30;
    --gold-glow: rgba(184,148,62,0.1);
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border: #e5e5e5;
    --border-light: #d0d0d0;
    --font-display: Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --header-h: 80px;
    --max-w: 1340px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   2. Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
}
a { color: inherit; text-decoration: none; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================
   3. Layout Utilities
   ============================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px 20px;
}
.container.nav-container {
    padding-top: 20px;
}

/* ============================================
   4. Header & Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(10,10,10,0.95);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f0ece4;
}
.site-logo span { color: #c9a84c; }

.main-nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
}
.main-nav a {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b5b0a8;
}
.main-nav a:hover { color: #c9a84c; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text-primary);
}

/* ============================================
   5. Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
    overflow: hidden;
    padding-top: var(--header-h);
}
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 0 24px;
}
.hero__tag {
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero__title {
    font-size: clamp(38px, 6.5vw, 82px);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}
.hero__title em {
    font-style: italic;
    color: var(--gold);
}
.hero__sub {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}
.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.8s forwards;
}

/* ============================================
   6. Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid;
    transition: all 0.35s var(--ease);
}
.btn--gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
}
.btn--gold:hover {
    background: var(--gold-light);
    letter-spacing: 0.28em;
}
.btn--outline {
    background: transparent;
    border-color: var(--text-muted);
    color: var(--text-secondary);
}
.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================
   7. Section Labels
   ============================================ */
.section-label {
    text-align: center;
    margin-bottom: 56px;
}
.section-label h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.section-label p {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* ============================================
   8. About Preview
   ============================================ */
.about-preview {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.about-preview__inner {
    max-width: 680px;
    margin: 0 auto;
}
.about-preview h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}
.about-preview p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 36px;
}

/* ============================================
   9. Newsletter
   ============================================ */
.newsletter {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.newsletter h3 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.newsletter p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
}
.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    font-size: 13px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-right: none;
    color: var(--text-primary);
    outline: none;
}
.newsletter-form input[type="email"]:focus {
    border-color: var(--gold);
}
.newsletter-form button {
    padding: 14px 28px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--bg-primary);
    border: 1px solid var(--gold);
}

/* ============================================
   10. Footer
   ============================================ */
.site-footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.footer-brand .site-logo {
    font-size: 22px;
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
}
.footer-col h4 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    font-size: 13px;
    color: var(--text-muted);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   11. Animations
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   12. Mobile Navigation
   ============================================ */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 85vw);
    background: var(--bg-secondary);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    padding: 32px;
}
.mobile-nav.active {
    transform: translateX(0);
}
.mobile-nav__close {
    align-self: flex-end;
    padding: 8px;
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-size: 20px;
}
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav a {
    display: block;
    padding: 18px 0;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.mobile-nav a:hover { color: var(--gold); }

/* ============================================
   13. Home Product Cards
   ============================================ */
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.hp-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.hp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
    z-index: 2;
}
.hp-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 12px rgba(184,148,62,0.06);
    transform: translateY(-4px);
}
.hp-card:hover::before {
    transform: scaleX(1);
}
.hp-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.hp-card__img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f7f7f7;
}
.hp-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 12px;
}
.hp-card:hover .hp-card__img-wrap img {
    transform: scale(1.06);
}
.hp-card__img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s;
}
.hp-card:hover .hp-card__img-overlay {
    background: rgba(26,26,26,0.04);
}
.hp-card__view {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 10px 24px;
    border: 1px solid var(--gold);
    background: rgba(255,255,255,0.95);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s var(--ease);
}
.hp-card:hover .hp-card__view {
    opacity: 1;
    transform: translateY(0);
}
.hp-card__body {
    padding: 20px 20px 24px;
    border-top: 1px solid #f0f0f0;
}
.hp-card__brand {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 500;
}
.hp-card__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40.5px;
}
.hp-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 10px 14px;
    background: #faf9f6;
    border-left: 3px solid var(--gold);
}
.hp-card__price-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}
.hp-card__price {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 400;
}
.hp-card__inquiry {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}
.hp-card__inquiry em {
    font-style: normal;
    color: var(--gold);
    margin-left: 4px;
    transition: margin-left 0.3s;
}
.hp-card:hover .hp-card__inquiry em {
    margin-left: 8px;
}

@media (max-width: 1100px) {
    .home-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .home-product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hp-card__body { padding: 14px 14px 18px; }
    .hp-card__title { font-size: 14px; margin-bottom: 10px; min-height: auto; }
    .hp-card__price-row { padding: 8px 10px; }
    .hp-card__price { font-size: 15px; }
    /* Fix inline padding on brand section */
    .home-brand-section { padding-left: 16px !important; padding-right: 16px !important; }
    .home-brand-tabs { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (max-width: 480px) {
    .home-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-card__body { padding: 10px 10px 14px; }
    .hp-card__brand { font-size: 8px; margin-bottom: 4px; }
    .hp-card__title { font-size: 13px; margin-bottom: 8px; min-height: auto; }
    .hp-card__price-row { padding: 6px 8px; }
    .hp-card__price { font-size: 14px; }
    .hp-card__price-label { font-size: 9px; }
    .hp-card__inquiry { font-size: 11px; }
    .hp-card__view { font-size: 9px; padding: 8px 16px; }
}

/* ============================================
   14. Shop Series Tabs
   ============================================ */
.shop-series-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 36px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.shop-series-tabs::-webkit-scrollbar { display: none; }
.shop-series-tab {
    padding: 10px 22px;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: none;
    border: 1px solid #e5e5e5;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    margin-right: -1px;
    text-decoration: none;
}
.shop-series-tab:first-child { border-radius: 3px 0 0 3px; }
.shop-series-tab:last-child { border-radius: 0 3px 3px 0; }
.shop-series-tab:hover { color: #555; border-color: #ccc; }
.shop-series-tab.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; z-index: 1; position: relative; }
.shop-series-count {
    font-size: 9px;
    color: #bbb;
    margin-left: 4px;
}
.shop-series-tab.active .shop-series-count { color: rgba(255,255,255,0.6); }

/* ============================================
   15. Responsive - Tablet
   ============================================ */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .hero { min-height: 560px; height: 85vh; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input[type="email"] { border-right: 1px solid var(--border); border-bottom: none; }
}
