/* ==========================================================================
   Oliver & Lucia Custom Enhancements & Hostinger Optimizations
   ========================================================================== */

:root {
  --ol-primary: #C8511B;
  --ol-primary-hover: #A63E14;
  --ol-espresso: #3B2718;
  --ol-ivory: #F7F2E9;
  --ol-white: #ffffff;
  --ol-ink: #1A1713;
  --ol-border: #E9DED0;
  --ol-gold: #D4AF37;
  --ol-font-serif: 'Fraunces', Georgia, serif;
  --ol-font-sans: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--ol-font-sans);
  color: var(--ol-ink);
  background-color: var(--ol-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Base link reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Header & Nav */
.ol-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border-bottom: 1px solid var(--ol-border);
}
.ol-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ol-header__logo img,
.ol-header__logo svg {
  height: 42px;
  width: auto;
  display: block;
}
.ol-header__nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.ol-header__link {
  font-family: var(--ol-font-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ol-espresso);
  transition: color 0.2s ease;
  padding: 6px 0;
  position: relative;
}
.ol-header__link:hover,
.ol-header__link.active {
  color: var(--ol-primary);
}
.ol-header__link.sale-link {
  color: var(--ol-primary);
  font-weight: 700;
}
.ol-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ol-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ol-espresso);
  padding: 6px;
  display: flex;
  align-items: center;
  position: relative;
  transition: transform 0.15s, color 0.15s;
}
.ol-icon-btn:hover {
  color: var(--ol-primary);
  transform: scale(1.05);
}
.ol-cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--ol-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Nav Drawer */
.ol-mobile-menu-btn {
  display: none;
}
@media (max-width: 991px) {
  .ol-header__nav {
    display: none;
  }
  .ol-mobile-menu-btn {
    display: flex;
  }
}

.ol-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 2px 0 20px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.ol-mobile-drawer.open {
  transform: translateX(0);
}
.ol-mobile-drawer__head {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ol-border);
}
.ol-mobile-drawer__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.ol-mobile-drawer__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--ol-espresso);
  padding: 8px 0;
  border-bottom: 1px solid #f2ede6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Section */
.ol-hero {
  position: relative;
  background-color: var(--ol-ivory);
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
}
.ol-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ol-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(247,242,233,0.92) 0%, rgba(247,242,233,0.7) 45%, rgba(247,242,233,0.1) 100%);
}
@media (max-width: 768px) {
  .ol-hero__overlay {
    background: linear-gradient(180deg, rgba(247,242,233,0.94) 0%, rgba(247,242,233,0.85) 60%, rgba(247,242,233,0.4) 100%);
  }
}
.ol-hero__content {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
  box-sizing: border-box;
}
.ol-hero__card {
  max-width: 580px;
  background: rgba(247, 242, 233, 0.95);
  backdrop-filter: blur(8px);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 16px 36px -12px rgba(59, 39, 24, 0.2);
  border: 1px solid rgba(233, 222, 208, 0.8);
}
@media (max-width: 576px) {
  .ol-hero__card {
    padding: 24px 20px;
  }
}
.ol-hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ol-primary);
  margin-bottom: 12px;
  display: block;
}
.ol-hero__title {
  font-family: var(--ol-font-serif);
  font-size: 46px;
  line-height: 1.08;
  color: var(--ol-espresso);
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
@media (max-width: 768px) {
  .ol-hero__title {
    font-size: 32px;
  }
}
.ol-hero__subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ol-ink);
  margin: 0 0 24px;
}
.ol-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ol-espresso);
  color: var(--ol-ivory);
  padding: 16px 36px;
  font-family: var(--ol-font-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}
.ol-btn:hover {
  background: #23160e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 39, 24, 0.25);
}
.ol-btn--primary {
  background: var(--ol-primary);
  color: #fff;
}
.ol-btn--primary:hover {
  background: var(--ol-primary-hover);
  color: #fff;
}
.ol-btn--outline {
  background: transparent;
  color: var(--ol-espresso);
  border: 2px solid var(--ol-espresso);
}
.ol-btn--outline:hover {
  background: var(--ol-espresso);
  color: var(--ol-ivory);
}
.ol-btn--full {
  width: 100%;
}

/* Product Card Grid */
.ol-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 1100px) {
  .ol-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .ol-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.ol-product-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #efe8df;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ol-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(59, 39, 24, 0.12);
  border-color: #d8c8b6;
}
.ol-product-card__img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: #fbf9f6;
  overflow: hidden;
}
.ol-product-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ol-product-card:hover .ol-product-card__img {
  transform: scale(1.05);
}
.ol-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ol-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 2;
}
.ol-product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.ol-product-card__vendor {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8c7866;
  margin-bottom: 4px;
}
.ol-product-card__title {
  font-family: var(--ol-font-serif);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ol-espresso);
  margin: 0 0 10px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}
.ol-product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}
.ol-product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ol-primary);
}
.ol-product-card__compare {
  font-size: 14px;
  color: #8c7866;
  text-decoration: line-through;
}
.ol-product-card__btn {
  background: var(--ol-espresso);
  color: var(--ol-ivory);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.ol-product-card__btn:hover {
  background: var(--ol-primary);
  color: #fff;
}

/* Cart Drawer */
.ol-cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.ol-cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.ol-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  z-index: 1001;
  box-shadow: -4px 0 30px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ol-cart-drawer.active {
  transform: translateX(0);
}
.ol-cart-drawer__header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ol-border);
  background: #faf6f0;
}
.ol-cart-drawer__title {
  font-family: var(--ol-font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ol-espresso);
  margin: 0;
}
.ol-cart-drawer__timer-bar {
  background: #fff3ed;
  border-bottom: 1px solid #fed7c7;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ol-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ol-cart-drawer__body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ol-cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f2ede6;
}
.ol-cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #faf6f0;
  flex-shrink: 0;
}
.ol-cart-item__details {
  flex-grow: 1;
}
.ol-cart-item__title {
  font-family: var(--ol-font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ol-espresso);
  margin: 0 0 4px;
  line-height: 1.3;
}
.ol-cart-item__variant {
  font-size: 12px;
  color: #8c7866;
  margin-bottom: 6px;
}
.ol-cart-item__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ol-cart-item__price {
  font-weight: 700;
  color: var(--ol-primary);
  font-size: 15px;
}
.ol-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ol-border);
  border-radius: 4px;
  overflow: hidden;
}
.ol-cart-qty button {
  background: #faf6f0;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ol-espresso);
}
.ol-cart-qty span {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
}
.ol-cart-item__remove {
  background: none;
  border: none;
  color: #a08f80;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
  margin-top: 6px;
}
.ol-cart-item__remove:hover {
  color: var(--ol-primary);
}
.ol-cart-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--ol-border);
  background: #faf6f0;
}
.ol-cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.ol-cart-subtotal {
  font-size: 18px;
  font-weight: 700;
  color: var(--ol-espresso);
}
.ol-trust-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  opacity: 0.7;
}

/* Toast alert */
.ol-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ol-espresso);
  color: #fff;
  padding: 14px 22px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 2000;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ol-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Search Modal */
.ol-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 23, 19, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.ol-search-modal.active {
  display: flex;
}
.ol-search-box {
  background: #fff;
  width: 680px;
  max-width: 90%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.ol-search-input-wrap {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ol-border);
}
.ol-search-input {
  flex-grow: 1;
  border: none;
  font-size: 18px;
  font-family: var(--ol-font-sans);
  color: var(--ol-espresso);
  outline: none;
}
.ol-search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 14px 20px;
}
.ol-search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f7f3ee;
  cursor: pointer;
  transition: background 0.15s;
}
.ol-search-result-item:hover {
  background: #faf6f0;
}
.ol-search-result-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

/* Section styling */
.ol-section {
  padding: 60px 20px;
}
.ol-section--ivory {
  background-color: var(--ol-ivory);
}
.ol-section--dark {
  background-color: var(--ol-espresso);
  color: var(--ol-ivory);
}
.ol-container {
  max-width: 1320px;
  margin: 0 auto;
}
.ol-section-head {
  text-align: center;
  margin-bottom: 40px;
}
.ol-section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ol-primary);
  margin-bottom: 8px;
  display: block;
}
.ol-section-title {
  font-family: var(--ol-font-serif);
  font-size: 36px;
  color: var(--ol-espresso);
  margin: 0 0 12px;
  font-weight: 600;
}
.ol-section--dark .ol-section-title {
  color: var(--ol-ivory);
}
.ol-section-sub {
  font-size: 16px;
  color: #6d5b4d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}
.ol-section--dark .ol-section-sub {
  color: #dfd3c5;
}
