/*
 * Oud Al Khoori — Main Theme Styles
 * Consolidated from header.php, template-homepage.php inline styles
 */

/* ========== CSS VARIABLES ========== */
:root {
    --fontPrimary: 'Lato', sans-serif;
    --fontSecondary: Didot, 'Bodoni MT', 'Noto Serif Display', Georgia, serif;
}

/* ========== BASE TYPOGRAPHY ========== */
body {
    font-family: var(--fontPrimary);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.06rem;
    line-height: 1.8;
    color: rgba(18, 18, 18, 0.75);
}
@media (min-width: 750px) {
    body { font-size: 16px; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fontPrimary);
    font-weight: 400;
    color: #121212;
}

body.home h1,
body.home h2,
body.home h3 {
    font-family: var(--fontSecondary);
}

.font-didot { font-family: var(--fontSecondary); }
ins { text-decoration: none; }

/* ========== ANIMATIONS ========== */
.product-card .img-hover { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.product-card .img-main { transition: opacity .4s; }
.product-card:hover .img-hover { opacity: 1; }
.product-card:hover .img-main { opacity: 0; }
.hero-panel img.bg { transition: transform .7s ease; }
.hero-panel:hover img.bg { transform: scale(1.05); }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.fade-up.visible { opacity: 1; transform: none; }

/* ========== MOBILE MENU — SIDE DRAWER ========== */
#mobileMenuOverlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 76px;
    background: rgba(18, 18, 18, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.2s ease;
}
#mobileMenuOverlay.open {
    display: block;
    opacity: 1;
}
#mobileMenu {
    position: fixed;
    top: 76px;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 640px;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
    display: flex !important;
    flex-direction: column;
}
#mobileMenu.open { transform: translateX(0); }
body.rtl #mobileMenu { left: auto; right: 0; transform: translateX(100%); }
body.rtl #mobileMenu.open { transform: translateX(0); }

/* ========== WOOCOMMERCE NOTICES ========== */
.woocommerce-notices-wrapper:not(:empty) { padding-top: 80px; }
.woocommerce div.product .woocommerce-notices-wrapper,
.oak-shop-page .woocommerce-notices-wrapper {
    padding-top: 0 !important;
    margin-bottom: 16px;
}

/* ========== HEADER ========== */
header.site-header { transition: background-color 0.4s ease, box-shadow 0.3s ease, transform 0.3s ease; }
header.site-header .px-5 { height: 76px; }
body.home header.site-header.scrolled { background-color: #b88360 !important; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
body:not(.home) header.site-header { background: #b88360 !important; }
body:not(.home) header.site-header.header-hidden { transform: translateY(-100%); }
#searchBar { display: none; }
#searchBar.open { display: flex; }
#langDropdown { display: none; }
#langDropdown.open { display: block; }

/* ========== FOOTER ========== */
footer h4 { font-size: 22px; letter-spacing: 0.6px; line-height: 1.111; }
footer a, footer p, footer li { font-size: 16px; letter-spacing: 0.6px; line-height: 1.8; }
footer .text-\[12px\] { font-size: 16px !important; }
footer .text-\[11px\] { font-size: 12px !important; letter-spacing: 0.7px; line-height: 1.7; }
footer .text-\[9px\] { font-size: 10px !important; letter-spacing: 1.3px; line-height: 1.2; text-transform: uppercase; }

/* ========== ARCH ICON (hero) ========== */
.arch-icon {
    width: 52px;
    height: 62px;
    border: 1.5px solid rgba(212, 184, 150, 0.8);
    border-radius: 26px 26px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* ========== HOMEPAGE — HERO ========== */
.oak-hero { height: 100svh; display: flex; flex-direction: column; background: #000; }
.oak-hero-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); min-height: 0; }
.oak-hero-panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.oak-hero-panel img.oak-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.oak-hero-panel:hover img.oak-hero-bg { transform: scale(1.05); }
.oak-hero-panel-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.oak-hero-panel-icon { width: 93px; height: 100px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; }
.oak-hero-panel-title { font-family: var(--fontSecondary); font-size: 36px; font-weight: 700; color: #fff; text-align: center; letter-spacing: 0.6px; }

/* ========== HOMEPAGE — ANNOUNCEMENT ========== */
.oak-announcement { background: #b88360; color: #fff; text-align: center; padding: 10px 20px; font-size: 13px; letter-spacing: 0.6px; line-height: 1.3; flex-shrink: 0; }

/* ========== HOMEPAGE — CATEGORY PILLS ========== */
.oak-cat-pills { padding: 16px 24px; margin-top: 32px; }
.oak-cat-pills-inner { max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.oak-pill { display: flex; align-items: center; gap: 10px; border: 1px solid #b88360; border-radius: 9999px; padding: 6px 16px 6px 8px; text-decoration: none; transition: all 0.2s; }
.oak-pill:hover { background: rgba(184, 131, 96, 0.06); }
.oak-pill-icon { width: 24px; height: 24px; border-radius: 50%; background: #b88360; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.oak-pill-icon img { width: 14px; height: 14px; object-fit: contain; filter: brightness(0) invert(1); }
.oak-pill-label { font-size: 14px; font-weight: 700; color: #000; text-transform: uppercase; white-space: nowrap; letter-spacing: 0.6px; }

/* ========== HOMEPAGE — NEW ARRIVAL ========== */
.oak-new-arrival { padding: 36px 0; background: #fff; }
.oak-new-arrival-inner { max-width: 1400px; margin: 0 auto; padding: 0 30px; }
.oak-new-arrival h2 { font-family: var(--fontSecondary); font-size: 24px; font-weight: 400; color: rgba(18, 18, 18, 0.75); letter-spacing: 0.6px; line-height: 1.3; text-align: center; margin: 0 0 24px; }
.oak-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* ========== HOMEPAGE — VIEW ALL BUTTON ========== */
.oak-view-all { text-align: center; margin-top: 32px; }
.oak-view-all a { display: inline-flex; align-items: center; justify-content: center; min-width: 320px; border: 1px solid #b88360; color: #000; background: transparent; border-radius: 9999px; padding: 12px 32px; font-size: 11px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: all 0.15s; }
.oak-view-all a:hover { background: #b88360; color: #fff; }

/* ========== HOMEPAGE — PROMO BANNERS ========== */
.oak-promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 128px; }
.oak-promo-link { display: block; position: relative; overflow: hidden; }
.oak-promo-link img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }

/* ========== HOMEPAGE — GIFT SET ========== */
.oak-gift-section { max-width: 1400px; margin: 144px auto; padding: 48px 30px; display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.oak-gift-text { text-align: start; padding: 20px 0; }
.oak-gift-text h2 { font-family: var(--fontSecondary); font-size: 28px; font-weight: 600; text-transform: uppercase; color: rgb(18, 18, 18); letter-spacing: 2px; line-height: 1.2; margin: 0 0 20px; }
.oak-gift-text .oak-gift-sub { color: #7f7f7f; font-size: 15px; margin: 0; line-height: 1.8; font-style: italic; }
.oak-gift-btn { display: inline-block; align-items:center; 
/*min-width: 200px; */
background: #b88360; color: #fff; border: 1px solid #b88360; border-radius: 9999px; padding: 10px 32px; font-size: 11px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: all 0.15s; margin-top: 24px; }
.oak-gift-btn:hover { background: transparent; color: #b88360; }

/* Gift slider */
.oak-gift-slider-wrap { position: relative; min-width: 0; }
.oak-gift-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.oak-gift-slider-arrow:hover { background: rgba(255, 255, 255, 0.9); }
.oak-gift-slider-arrow.prev { left: 8px; }
.oak-gift-slider-arrow.next { right: 8px; }
body.rtl .oak-gift-slider-arrow.prev { left: auto; right: 8px; }
body.rtl .oak-gift-slider-arrow.next { right: auto; left: 8px; }
body.rtl .oak-gift-slider-arrow svg { transform: scaleX(-1); }
.oak-gift-slider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.oak-gift-slider::-webkit-scrollbar { display: none; }
.oak-gift-card { flex: 0 0 calc(33.333% - 11px); scroll-snap-align: start; position: relative; aspect-ratio: 3/5; border-radius: 12px; overflow: hidden; display: block; text-decoration: none; transition: box-shadow 0.2s; }
.oak-gift-card:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1); }
.oak-gift-card img { width: 100%; height: 100%; object-fit: cover; }
.oak-gift-card-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent 30%, transparent calc(100% - 30%), rgba(0, 0, 0, 0.4)); }
.oak-gift-card-info { position: absolute; bottom: 0; inset-inline: 0; padding: 16px; text-align: center; }
.oak-gift-card-info .oak-gift-card-title { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 4px; }
.oak-gift-card-info .oak-gift-card-price { font-size: 16px; color: #fff; letter-spacing: 1px; }
.oak-gift-card-info .oak-gift-card-price del { color: #d33915; }
.oak-gift-card-badge { position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 12px; font-weight: 400; letter-spacing: 1px; padding: 5px 13px; line-height: 1; border-radius: 0; }
body.rtl .oak-gift-card-badge { left: auto; right: 12px; }
.oak-badge-sale { background: #d33915; color: #fff; }
.oak-badge-soldout { background: #d33915; color: #fff; }

/* ========== HOMEPAGE — VIDEO ========== */
.oak-video-section { position: relative; padding: 0; }
.oak-video-split-bg { position: absolute; inset: 0; background: linear-gradient(to bottom, #fff 50%, #b88360 50%); z-index: 0; }
.oak-video-inner { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 0 30px; }
.oak-video-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.oak-video-wrap video, .oak-video-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ========== PAGE TEMPLATES (Policy, About, Contact) ========== */
.oak-policy-page,
.oak-about-page,
.oak-contact-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 60px;
}
.oak-policy-content,
.oak-about-content,
.oak-contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: start;
}
.oak-policy-title,
.oak-about-title,
.oak-contact-title {
    font-family: var(--fontPrimary);
    font-size: 30px;
    font-weight: 400;
    color: rgb(18, 18, 18);
    letter-spacing: 0.6px;
    line-height: 1.3;
    margin: 0 0 28px;
}
@media (min-width: 750px) {
    .oak-policy-title, .oak-about-title, .oak-contact-title { font-size: 40px; }
}

/* Rich text */
.oak-rte { font-size: 16px; color: rgba(18, 18, 18, 0.75); letter-spacing: 0.6px; line-height: 1.8; }
.oak-rte h2 { font-size: 24px; font-weight: 400; color: rgb(18, 18, 18); letter-spacing: 0.6px; line-height: 1.3; margin: 2rem 0 1rem; }
.oak-rte h3 { font-size: 20px; font-weight: 400; color: rgb(18, 18, 18); letter-spacing: 0.6px; line-height: 1.3; margin: 1.5rem 0 0.75rem; }
.oak-rte p { margin: 0 0 1rem; }
.oak-rte strong { font-weight: 700; color: rgb(18, 18, 18); }
.oak-rte ul, .oak-rte ol { margin: 0.5rem 0 1rem; padding-inline-start: 24px; }
.oak-rte li { margin-bottom: 0.4rem; }
.oak-rte hr { border: none; border-top: 1px solid rgba(18, 18, 18, 0.1); margin: 2rem 0; }
.oak-rte a { color: rgb(18, 18, 18); text-decoration: underline; text-underline-offset: 3px; }
.oak-rte a:hover { color: rgba(18, 18, 18, 0.75); }

/* Contact page */
.oak-contact-details { margin-bottom: 2rem; }
.oak-contact-details p { font-size: 16px; color: rgba(18, 18, 18, 0.75); letter-spacing: 0.6px; line-height: 1.8; margin: 0 0 4px; }
.oak-contact-details a { color: rgb(18, 18, 18); text-decoration: none; }
.oak-contact-details a:hover { text-decoration: underline; }
.oak-contact-form-heading { font-family: var(--fontPrimary); font-size: 24px; font-weight: 400; color: rgb(18, 18, 18); letter-spacing: 0.6px; line-height: 1.3; margin: 0 0 1.5rem; }
.oak-contact-form { max-width: 700px; }

/* CF7 form */
.oak-contact-form .wpcf7-form > p { margin: 0 0 16px; }
.oak-contact-form .wpcf7-form br { display: none; }
.oak-contact-form .oak-row { display: flex; gap: 16px; margin: 0 0 16px; }
.oak-contact-form .oak-row .oak-col { flex: 1; min-width: 0; }
.oak-contact-form input[type="text"],
.oak-contact-form input[type="email"],
.oak-contact-form input[type="tel"],
.oak-contact-form textarea,
.oak-contact-form .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%; border: 1px solid rgba(18, 18, 18, 0.55); border-radius: 0; padding: 12px 16px;
    font-family: var(--fontPrimary); font-size: 16px; color: rgb(18, 18, 18); letter-spacing: 0.6px;
    background: #fff; transition: border-color 0.2s; box-sizing: border-box;
}
.oak-contact-form input:focus, .oak-contact-form textarea:focus { outline: none; border-color: rgb(18, 18, 18); }
.oak-contact-form input::placeholder, .oak-contact-form textarea::placeholder { color: rgba(18, 18, 18, 0.5); }
.oak-contact-form textarea { resize: vertical; min-height: 150px; }
.oak-contact-form input[type="submit"],
.oak-contact-form .wpcf7-submit {
    display: inline-block !important; min-width: 200px; background: #b88360 !important; color: #fff !important;
    border: 1px solid #b88360 !important; border-radius: 200px !important; padding: 12px 32px !important;
    font-family: var(--fontPrimary); font-size: 11px; font-weight: 400; letter-spacing: 1px; line-height: 1.5;
    cursor: pointer; transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); text-transform: uppercase; box-sizing: border-box;
}
.oak-contact-form input[type="submit"]:hover, .oak-contact-form .wpcf7-submit:hover { background: transparent !important; color: #b88360 !important; }
.oak-contact-form .wpcf7-not-valid-tip { font-size: 13px; color: #d33915; margin-top: 4px; }
.oak-contact-form .wpcf7-response-output { font-size: 14px; border-color: rgba(18, 18, 18, 0.15) !important; margin: 16px 0 0; padding: 12px 16px; }

/* ========== 404 PAGE ========== */
.oak-404-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 100px 24px 60px; text-align: center; }
.oak-404-content { max-width: 480px; }
.oak-404-code { display: block; font-family: 'Noto Serif Display', serif; font-size: 120px; font-weight: 600; color: #b88360; line-height: 1; letter-spacing: 4px; margin-bottom: 16px; }
.oak-404-title { font-family: var(--fontPrimary); font-size: 24px; font-weight: 400; color: rgb(18, 18, 18); letter-spacing: 0.6px; line-height: 1.3; margin: 0 0 12px; }
.oak-404-text { font-size: 16px; color: rgba(18, 18, 18, 0.65); letter-spacing: 0.6px; line-height: 1.8; margin: 0 0 32px; }
.oak-404-btn { display: inline-block; background: #b88360; color: #fff; border: 1px solid #b88360; border-radius: 200px; padding: 12px 40px; font-size: 11px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.oak-404-btn:hover { background: transparent; color: #b88360; }

/* ========== RESPONSIVE — TABLET ========== */
@media (max-width: 999px) {
    .oak-hero-panel-icon { width: 60px; height: 70px; }
    .oak-hero-panel-title { font-size: 28px; }
    .oak-announcement { font-size: 12px; padding: 8px 16px; }
}

@media (max-width: 1100px) { .oak-gift-card { flex: 0 0 calc(50% - 8px); } }
@media (max-width: 1023px) {
    .oak-gift-section { grid-template-columns: 1fr; margin: 72px auto; }
    .oak-gift-text { text-align: center; padding: 0; }
}
@media (max-width: 989px) { .oak-product-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; } }

/* ========== RESPONSIVE — MOBILE ========== */
@media (max-width: 767px) {
    .oak-promos { grid-template-columns: 1fr; margin-top: 64px; }
    .oak-promo-link img { height: auto; max-height: none; object-fit: contain; }
}

@media (max-width: 749px) {
    /* Hero */
    .oak-hero { height: 55vh; min-height: 250px; }
    .oak-hero-panel-icon { width: 36px; height: 40px; }
    .oak-hero-panel-title { font-size: 14px; }
    .oak-hero-panel-content { gap: 8px; }
    .oak-announcement { font-size: 10px; padding: 8px 12px; }

    /* Category pills */
    .oak-cat-pills { padding: 12px 0; margin-top: 16px; overflow: hidden; }
    .oak-cat-pills-inner { gap: 8px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 12px 4px; }
    .oak-cat-pills-inner::-webkit-scrollbar { display: none; }
    .oak-pill { padding: 4px 12px 4px 6px; gap: 8px; flex-shrink: 0; }
    .oak-pill-icon { width: 20px; height: 20px; }
    .oak-pill-icon img { width: 12px; height: 12px; }
    .oak-pill-label { font-size: 11px; }

    /* New Arrival */
    .oak-new-arrival { padding: 24px 0; }
    .oak-new-arrival-inner { padding: 0 12px; }
    .oak-new-arrival h2 { font-size: 18px; margin-bottom: 16px; }
    .oak-product-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }

    /* View All */
    .oak-view-all { margin-top: 16px; }
    .oak-view-all a { min-width: 180px; padding: 10px 24px; font-size: 10px; }

    /* Gift section */
    .oak-gift-section { margin: 32px auto; padding: 20px 0; gap: 16px; }
    .oak-gift-text { padding: 0 16px; text-align: center; }
    .oak-gift-text h2 { font-size: 20px; letter-spacing: 1.5px; margin-bottom: 12px; }
    .oak-gift-text .oak-gift-sub { font-size: 13px; }
    .oak-gift-btn { min-width: 160px; padding: 8px 24px; margin-top: 16px; }
    .oak-gift-slider-wrap { padding: 0 8px; }
    .oak-gift-slider { gap: 8px; }
    .oak-gift-slider-arrow { display: none; }
    .oak-gift-card { flex: 0 0 48%; aspect-ratio: 3/4; }
    .oak-gift-card-info { padding: 10px; }
    .oak-gift-card-info .oak-gift-card-title { font-size: 11px; }
    .oak-gift-card-info .oak-gift-card-price { font-size: 12px; }

    /* Video */
    .oak-video-inner { padding: 0 12px; }

    /* Pages */
    .oak-policy-page, .oak-about-page, .oak-contact-page { padding: 92px 16px 40px; }
    .oak-rte { font-size: 15px; }
    .oak-contact-details p { font-size: 15px; }
    .oak-contact-form .oak-row { flex-direction: column; }

    /* 404 */
    .oak-404-code { font-size: 80px; }
    .oak-404-title { font-size: 20px; }
    .oak-404-text { font-size: 15px; }

    /* Gift cards */
    .oak-gift-card { flex: 0 0 48%; }
}
body.rtl .oak-contact-form input[type="email"]{
    direction: rtl !important;
}
@media (max-width: 640px) { .oak-gift-card { flex: 0 0 75%; } }
