/* ==========================================
   Page Name: style.css
   Purpose: Global stylesheet for OOZARU storefront.
   ========================================== */

:root {
  /* Oozaru Brand Palette */
  --ivory-mist: #F2EFEA;
  /* Primary Light Background */
  --warm-linen: #E7DDD0;
  /* Secondary Background / Cards */
  --cocoa-brown: #5A3B27;
  /* Primary Text / Headers */
  --deep-black: #0B0B0B;
  /* Secondary Text / Logo */
  --caramel-gold: #B88A4A;
  /* Buttons / Accents / Luxury Highlights */

  /* Global variables */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-sans);
  color: var(--cocoa-brown);
  background-color: var(--ivory-mist);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--deep-black);
}

/* ==========================================
   NAVIGATION & HEADER
   ========================================== */
.navbar {
  background-color: var(--ivory-mist);
  box-shadow: 0 4px 20px rgba(90, 59, 39, 0.05);
  padding: 1rem 0;
}

.nav-link {
  color: var(--cocoa-brown) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--caramel-gold) !important;
}

.cart-icon-btn {
  color: var(--cocoa-brown);
  font-size: 1.4rem;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.cart-icon-btn:hover {
  color: var(--caramel-gold);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--caramel-gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  height: 18px;
  min-width: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ==========================================
   HERO / BANNER SECTIONS
   ========================================== */
.hero {
  background-color: var(--warm-linen);
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--deep-black);
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--caramel-gold);
  font-style: italic;
}

.hero p {
  font-size: 1.1rem;
  color: var(--cocoa-brown);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.shop-header {
  background: var(--ivory-mist);
  padding: 80px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(200, 149, 108, 0.2);
}

.shop-header h1 {
  font-size: 3.5rem;
  color: var(--deep-black);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.shop-header p {
  color: var(--cocoa-brown);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}


/* ==========================================
   GLOBAL BUTTONS
   ========================================== */
.btn-primary-custom {
  background-color: var(--caramel-gold);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background-color: var(--cocoa-brown);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(184, 138, 74, 0.2);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--cocoa-brown);
  border: 1px solid var(--cocoa-brown);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-outline-custom:hover {
  background-color: var(--cocoa-brown);
  color: #fff;
}


/* ==========================================
   SHOP GRID & CATEGORY FILTERS
   ========================================== */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--caramel-gold);
  color: var(--cocoa-brown);
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--caramel-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(200, 149, 108, 0.3);
}

.frag-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.frag-item.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.95);
}


/* ==========================================
   PRODUCT CARDS (shop.php)
   ========================================== */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(90, 59, 39, 0.03);
}

.product-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(200, 149, 108, 0.2);
  transform: translateY(-5px);
}

.img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #faf8f5;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .img-container img {
  transform: scale(1.05);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(200, 149, 108, 0.3);
}

.card-body-custom {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.3rem;
  color: var(--deep-black);
  margin: 0 0 5px 0;
  font-weight: 700;
}

.product-cat {
  color: var(--caramel-gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.product-desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Card Controls */
.control-group {
  background: #faf8f5;
  border-radius: 8px;
  padding: 15px;
  margin-top: auto;
}

.price-tag {
  font-size: 1.4rem;
  color: var(--deep-black);
  font-weight: 600;
}

.btn-cart {
  background: var(--deep-black);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.3s;
  width: 100%;
  margin-top: 15px;
}

.btn-cart:hover:not(:disabled) {
  background: var(--caramel-gold);
}

.btn-cart:disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}


/* ==========================================
   INDIVIDUAL PRODUCT PAGE (product.php)
   ========================================== */
.product-split-layout {
  display: flex;
  flex-wrap: wrap;
  min-height: calc(100vh - 100px);
}

/* Left Gallery */
.product-gallery {
  flex: 1 1 50%;
  background: #faf8f5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

@media (min-width: 992px) {
  .product-gallery {
    position: sticky;
    top: 0;
    height: 100vh;
  }
}

.product-main-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

/* Right Details */
.product-details-pane {
  flex: 1 1 50%;
  padding: 60px 8%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pd-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--caramel-gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.pd-title {
  font-size: 3rem;
  color: var(--deep-black);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 25px;
}

.pd-description {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Scent Profile */
.scent-profile {
  background: #fdfdfc;
  border: 1px solid rgba(200, 149, 108, 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 40px;
}

.scent-profile h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--deep-black);
  margin-bottom: 20px;
  font-weight: 600;
  border-bottom: 1px solid rgba(200, 149, 108, 0.2);
  padding-bottom: 10px;
}

.scent-row {
  display: flex;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.scent-label {
  width: 90px;
  color: var(--caramel-gold);
  font-weight: 600;
}

.scent-value {
  color: #555;
  flex: 1;
}

/* Purchase Box */
.purchase-controls {
  background: #faf8f5;
  padding: 30px;
  border-radius: 12px;
}

.pd-price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--deep-black);
  margin-bottom: 20px;
  display: block;
}


/* ==========================================
   BADGES & ICONS
   ========================================== */
.offer-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--deep-black);
  color: var(--caramel-gold);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  z-index: 2;
}

.eco-badges {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.eco-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--cocoa-brown);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: help;
}


/* ==========================================
   FORMS & INPUTS
   ========================================== */
.form-select,
.form-control {
  border-color: var(--warm-linen);
  color: var(--deep-black);
  border-radius: 8px;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--caramel-gold);
  box-shadow: 0 0 0 3px rgba(184, 138, 74, 0.2);
}

.qty-stepper {
  display: flex;
  background: var(--ivory-mist);
  border-radius: 8px;
  border: 1px solid var(--warm-linen);
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--cocoa-brown);
  padding: 5px 12px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.qty-btn:hover {
  background: var(--warm-linen);
}

.qty-input {
  width: 40px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 600;
  color: var(--deep-black);
  pointer-events: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* ==========================================
   TOAST NOTIFICATION (Cart Feedback)
   ========================================== */
.toast-wrap {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--deep-black);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  transition: var(--transition);
  opacity: 0;
  font-weight: 500;
  border: 1px solid var(--caramel-gold);
}

.toast-wrap.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}


/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--deep-black);
  color: var(--warm-linen);
  padding: 40px 0;
  text-align: center;
}

footer a {
  color: var(--caramel-gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}