/* ============================================================
   ONLINE BRITISH HOMES — Custom Bagisto Theme
   Brand: Misty Sage / Warm Oak / Off-White / Deep Slate
   Aesthetic: Heritage Boutique meets Modern Comfort
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
    --primary:          #9BB0A5;
    --primary-hover:    #7a9991;
    --primary-soft:     rgba(155, 176, 165, 0.15);
    --secondary:        #8C6D51;
    --secondary-hover:  #735a42;
    --secondary-soft:   rgba(140, 109, 81, 0.12);
    --bg:               #F9F7F2;
    --white:            #ffffff;
    --text:             #333333;
    --text-light:       #666666;
    --border:           #e4ddd4;
    --dark:             #2a2a2a;
    --font-heading:     'Lora', Georgia, serif;
    --font-body:        'Source Sans 3', sans-serif;
    --radius:           6px;
    --shadow:           0 2px 12px rgba(140,109,81,0.10);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    line-height: 1.6;
}

a { color: var(--secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary-hover); }
img { max-width: 100%; height: auto; }

/* ── Scrolling Announcement Bar ── */
.obh-top-bar {
    background: #2a2a2a;
    color: #d4c9bc;
    font-size: 12px;
    padding: 7px 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
}
.obh-top-bar-scroll {
    display: inline-block;
    animation: obh-marquee 90s linear infinite;
    padding-left: 100%;
}
@keyframes obh-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Login Bar ── */
.obh-login-bar {
    background: #3d3530;
    color: rgba(255,255,255,0.65);
    font-size: 11px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(212,201,188,0.2);
}
.obh-login-bar a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    margin-left: 16px;
}
.obh-login-bar a:hover { color: #d4c9bc; }

/* ── Header ── */
.obh-header {
    background: var(--white);
    box-shadow: 0 1px 6px rgba(140,109,81,0.10);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.obh-header-inner {
    display: flex;
    align-items: center;
    padding: 16px 0;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
.obh-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.obh-logo span { color: var(--secondary); }
.obh-logo img { height: 48px; width: auto; }

.obh-search {
    flex: 1;
    position: relative;
}
.obh-search form {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
    background: var(--white);
}
.obh-search form:focus-within { border-color: var(--primary); }
.obh-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text);
    background: transparent;
}
.obh-search input::placeholder { color: #aaa; }
.obh-search button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}
.obh-search button:hover { background: var(--primary-hover); }

.obh-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.obh-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text);
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: background 0.2s;
    position: relative;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: none;
}
.obh-action-btn:hover { background: var(--primary-soft); color: var(--secondary); }
.obh-action-btn .icon { font-size: 22px; color: var(--secondary); }
.obh-cart-count {
    position: absolute;
    top: 2px; right: 6px;
    background: var(--secondary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ── Navigation Bar ── */
.obh-nav {
    background: var(--primary);
    border-bottom: 2px solid var(--primary-hover);
}
.obh-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}
.obh-nav-categories {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    transition: background 0.2s;
    white-space: nowrap;
}
.obh-nav-categories:hover { background: var(--secondary-hover); }
.obh-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.obh-nav-links li a {
    display: block;
    color: rgba(255,255,255,0.92);
    font-size: 13px;
    font-weight: 500;
    padding: 13px 16px;
    font-family: var(--font-body);
    transition: background 0.2s;
}
.obh-nav-links li a:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

/* ── Section Titles ── */
.obh-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.obh-section-title h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    font-style: italic;
}
.obh-section-title a {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Product Cards ── */
.obh-product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    border: 1px solid var(--border);
    position: relative;
    height: 100%;
}
.obh-product-card:hover {
    box-shadow: 0 6px 20px rgba(140,109,81,0.15);
    transform: translateY(-2px);
}
.obh-product-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--bg);
}
.obh-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.obh-product-card:hover .obh-product-img img { transform: scale(1.04); }

.obh-product-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--secondary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}
.obh-product-badge.new { background: var(--primary); color: var(--text); }

.obh-product-body { padding: 14px; }
.obh-product-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.obh-product-name a { color: inherit; }
.obh-product-name a:hover { color: var(--secondary); }
.obh-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.obh-price-current { font-size: 17px; font-weight: 700; color: var(--secondary); font-family: var(--font-body); }
.obh-price-old { font-size: 12px; color: #999; text-decoration: line-through; }
.obh-price-save { font-size: 11px; font-weight: 700; color: var(--primary-hover); }

.obh-btn-cart {
    width: 100%;
    background: var(--primary);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.obh-btn-cart:hover { background: var(--primary-hover); color: var(--white); }

/* ── Hero Slider ── */
.obh-hero { padding: 20px 0; background: var(--bg); }
.obh-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.obh-hero-slider {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.obh-hero-slider img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* ── Category Sidebar ── */
.obh-cat-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}
.obh-cat-sidebar-header {
    background: var(--secondary);
    color: var(--white);
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 8px;
}
.obh-cat-sidebar ul { list-style: none; margin: 0; padding: 0; }
.obh-cat-sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
    gap: 10px;
    font-family: var(--font-body);
}
.obh-cat-sidebar ul li a:hover {
    background: var(--primary-soft);
    color: var(--secondary);
    padding-left: 22px;
}

/* ── Products Grid ── */
.obh-products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
@media (max-width: 1200px) { .obh-products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .obh-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ── Category Cards ── */
.obh-cat-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px 12px;
    text-align: center;
    transition: box-shadow 0.25s, transform 0.25s;
    text-decoration: none;
    display: block;
}
.obh-cat-card:hover {
    box-shadow: 0 4px 16px rgba(140,109,81,0.15);
    transform: translateY(-2px);
}
.obh-cat-card img {
    width: 70px; height: 70px;
    object-fit: contain;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--bg);
    padding: 8px;
    display: block;
}
.obh-cat-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-body);
}
.obh-cat-card:hover .obh-cat-card-name { color: var(--secondary); }

/* ── Promo Banners ── */
.obh-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0;
}
.obh-promo-banner {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.obh-promo-banner img {
    width: 100%; height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.obh-promo-banner:hover img { transform: scale(1.04); }
.obh-promo-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(42,42,42,0.75));
    padding: 16px;
    color: var(--white);
}
.obh-promo-title { font-family: var(--font-heading); font-size: 16px; font-weight: 600; margin: 0 0 4px; font-style: italic; }
.obh-promo-sub { font-size: 11px; color: rgba(255,255,255,0.8); margin: 0 0 8px; }
.obh-promo-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
}

/* ── Trust Bar ── */
.obh-trust-bar {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
    margin: 28px 0;
}
.obh-trust-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.obh-trust-item { display: flex; align-items: center; gap: 12px; }
.obh-trust-icon {
    width: 44px; height: 44px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary);
    font-size: 20px;
    flex-shrink: 0;
}
.obh-trust-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); font-family: var(--font-body); }
.obh-trust-text span { font-size: 11px; color: var(--text-light); }

/* ── Newsletter ── */
.obh-newsletter {
    background: linear-gradient(135deg, #4a3728 0%, #2a2a2a 100%);
    padding: 48px 0;
    text-align: center;
}
.obh-newsletter h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 8px;
    font-style: italic;
}
.obh-newsletter p { font-size: 14px; color: #d4c9bc; margin: 0 0 24px; }
.obh-newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.obh-newsletter-form input {
    flex: 1; border: none;
    padding: 14px 18px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    color: var(--text);
    background: var(--white);
}
.obh-newsletter-form button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s;
    white-space: nowrap;
}
.obh-newsletter-form button:hover { background: var(--secondary-hover); }

/* ── Footer ── */
.obh-footer {
    background: #2a2a2a;
    color: rgba(255,255,255,0.7);
    padding: 48px 0 0;
    font-family: var(--font-body);
}
.obh-footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.obh-footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.55); margin: 14px 0 16px; }
.obh-footer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: #d4c9bc;
    font-style: italic;
}
.obh-footer-social { display: flex; gap: 10px; }
.obh-footer-social a {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: background 0.2s;
    text-decoration: none;
}
.obh-footer-social a:hover { background: var(--secondary); color: var(--white); }
.obh-footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: #d4c9bc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
    font-family: var(--font-body);
}
.obh-footer-col ul { list-style: none; margin: 0; padding: 0; }
.obh-footer-col ul li { margin-bottom: 10px; }
.obh-footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; text-decoration: none; }
.obh-footer-col ul li a:hover { color: #d4c9bc; }
.obh-footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

/* ── Buttons ── */
.obh-btn-primary {
    background: var(--primary);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.obh-btn-primary:hover { background: var(--primary-hover); color: var(--white); }
.obh-btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.obh-btn-secondary:hover { background: var(--secondary-hover); }

/* ── Container ── */
.obh-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.obh-section { padding: 32px 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .obh-footer-grid { grid-template-columns: 1fr 1fr; }
    .obh-promo-grid { grid-template-columns: 1fr 1fr; }
    .obh-hero-inner { flex-direction: column; }
    .obh-cat-sidebar { width: 100%; }
}
@media (max-width: 768px) {
    .obh-header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
    .obh-search { order: 3; width: 100%; }
    .obh-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .obh-promo-grid { grid-template-columns: 1fr; }
    .obh-hero-slider img { height: 240px; }
    .obh-products-grid { grid-template-columns: repeat(2, 1fr); }
    .obh-nav-links { display: none; }
    .obh-newsletter-form { flex-direction: column; }
}
@media (max-width: 480px) {
    .obh-footer-grid { grid-template-columns: 1fr; }
    .obh-footer-bottom { flex-direction: column; text-align: center; }
}

/* Cookie consent buttons */
.js-cookie-consent button,
.js-cookie-consent a {
    background-color: #9BB0A5 !important;
}
.js-cookie-consent button:hover,
.js-cookie-consent a:hover {
    background-color: #7a9991 !important;
}
