/* Local Font Declaration - Sabiren */
@font-face {
  font-family: 'Sabiren';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/sabiren.ttf') format('truetype');
}

/* Local Font Declarations - Cormorant Garamond */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/cormorant-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('fonts/cormorant-garamond-400italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('fonts/cormorant-garamond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url('fonts/cormorant-garamond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('fonts/cormorant-garamond-700.woff2') format('woff2');
}

/* Local Font Declarations - Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url('fonts/inter-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url('fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('fonts/inter-700.woff2') format('woff2');
}

/* Color Variables - Cozy Cottage Palette */
:root {
  --bg-color: #FDF8F2;          /* Almond Milk - Cozy Background */
  --accent-color: #D4A373;      /* Dusty Rose - Warm Accent Tone */
  --accent-hover: #C59262;      /* Darker Dusty Rose for hover states */
  --text-color: #4A3728;        /* Deep Walnut - Rich text anchor */
  --text-muted: #7A695C;        /* Soft brown-gray for secondary text */
  --card-bg: #FFFFFF;           /* Crisp clean white for containers */
  --border-color: rgba(74, 55, 40, 0.12); /* Subtle Deep Walnut border */
  --input-bg: #FCF5EC;          /* Cozy light input box */
  --shadow-light: 0 4px 20px rgba(74, 55, 40, 0.04);
  --shadow-medium: 0 10px 30px rgba(74, 55, 40, 0.08);
  --shadow-deep: 0 20px 40px rgba(74, 55, 40, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 12px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 14px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-color);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(253, 248, 242, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-family: 'Sabiren', 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--text-color);
  text-decoration: none;
  display: inline-block;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-color);
  font-weight: 500;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.cart-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 8px;
  color: var(--text-color);
  transition: var(--transition);
}

.cart-icon-btn:hover {
  color: var(--accent-color);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--accent-color);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-color);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: 20px;
  padding: 8px;
}

.wishlist-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 8px;
  color: var(--text-color);
  transition: var(--transition);
}

.wishlist-icon-btn:hover {
  color: var(--accent-color);
  transform: scale(1.05);
}

/* ==========================================================
   MOBILE APP SHELL: hamburger side-menu + bottom nav bar
   ========================================================== */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: -300px;
  width: 82%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-deep);
  z-index: 320;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-right: 1px solid var(--border-color);
}

.mobile-menu-panel.active {
  transform: translateX(300px);
}

.mobile-menu-header {
  padding: 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-header h3 {
  font-size: 20px;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.mobile-menu-links {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-links a,
.mobile-menu-links button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.mobile-menu-links a i,
.mobile-menu-links button i {
  width: 18px;
  color: var(--accent-color);
  font-size: 15px;
}

.mobile-menu-links a:hover,
.mobile-menu-links button:hover {
  background-color: var(--card-bg);
  color: var(--accent-color);
}

.mobile-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, 0.45);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-scrim.active {
  opacity: 1;
  visibility: visible;
}

/* Bottom fixed navigation bar - mobile only */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 150;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-btn {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.mobile-nav-btn i {
  font-size: 18px;
}

.mobile-nav-btn.active {
  color: var(--accent-color);
}

.mobile-nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 20px);
  background-color: var(--accent-color);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-color);
}

@media (max-width: 768px) {
  .hamburger-btn { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-bottom-nav { display: block; }
  .nav-links .nav-link:not(.cart-icon-btn) { display: none; }
  .navbar { padding: 16px 5%; }
  .brand-name { font-size: 26px; }
  body { padding-bottom: 62px; }
}

/* Bottom sheet (categories) */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, 0.4);
  z-index: 310;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bottom-sheet-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  background-color: var(--bg-color);
  width: 100%;
  max-width: 600px;
  max-height: 70vh;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  transform: translateY(30px);
  transition: var(--transition);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-sheet-backdrop.active .bottom-sheet {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: 4px;
  margin: 12px auto 4px;
}

.bottom-sheet-header {
  padding: 8px 22px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.bottom-sheet-header h3 {
  font-size: 20px;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.bottom-sheet-list {
  padding: 8px 0;
}

.bottom-sheet-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 22px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
}

.bottom-sheet-list button.active {
  color: var(--accent-color);
  font-weight: 700;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.search-overlay.active {
  transform: translateY(0);
}

.search-overlay-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.search-overlay-header input {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 15px;
  background: var(--input-bg);
  color: var(--text-color);
  outline: none;
}

.search-overlay-header button {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
  padding: 6px;
}

.search-results-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px 20px 30px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.search-result-item img {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius);
  object-fit: cover;
  background-color: #F3EAE0;
  flex-shrink: 0;
}

.search-result-item .sr-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.search-result-item .sr-price {
  font-size: 13px;
  color: var(--accent-color);
  font-weight: 700;
}

.search-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.search-empty-state i {
  font-size: 34px;
  color: var(--accent-color);
  margin-bottom: 14px;
  display: block;
}

/* Wishlist heart toggle on product card */
.wishlist-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #999;
  font-size: 15px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.wishlist-heart-btn:hover {
  transform: scale(1.1);
}

.wishlist-heart-btn.saved {
  color: #c0392b;
}

.wishlist-heart-btn.saved i {
  font-weight: 900;
}

/* Wishlist / Account drawer item rows */
.side-list-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.side-list-item img {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius);
  object-fit: cover;
  background-color: #F3EAE0;
  flex-shrink: 0;
}

.side-list-item .sli-details {
  flex-grow: 1;
}

.side-list-item .sli-name {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.side-list-item .sli-name:hover {
  color: var(--accent-color);
}

.side-list-item .sli-price {
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
  color: var(--accent-color);
}

.side-list-item .sli-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

/* Account drawer */
.account-guest-block {
  text-align: center;
  padding: 10px 0 24px;
}

.account-guest-block i {
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 14px;
  display: block;
}

.account-guest-block p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 18px;
  line-height: 1.6;
}

#googleSignInBtnContainer {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.account-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.account-divider::before,
.account-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.account-profile-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.account-profile-block img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}

.account-profile-block .ap-name {
  font-size: 16px;
  font-weight: 700;
}

.account-profile-block .ap-email {
  font-size: 12px;
  color: var(--text-muted);
}

.account-orders-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.order-history-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.order-history-item:hover {
  border-color: var(--accent-color);
}

.order-history-item .ohi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.order-history-item .ohi-id {
  font-size: 13px;
  font-weight: 700;
}

.order-history-item .ohi-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--card-bg);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.order-history-item .ohi-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Page Hero Header */
.page-header {
  padding: 60px 8% 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Primary Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-color);
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--text-color);
  color: #FFFFFF;
}

.btn-accent {
  background-color: var(--accent-color);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-danger {
  background-color: #a34a3e;
}
.btn-danger:hover {
  background-color: #83392f;
}

.btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Inputs & Form Styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-medium);
}

/* Product Card Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-deep);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-color);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
}

.product-image-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: #F3EAE0;
  position: relative;
  cursor: pointer;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-type {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 5px;
}

.product-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.product-name:hover {
  color: var(--accent-color);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  margin-bottom: 15px;
}

.product-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price span {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Products Grid - Mobile: show 2 products per row */
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .product-image-container {
    height: 150px;
  }

  .product-details {
    padding: 10px;
  }

  .product-type {
    font-size: 9px;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
  }

  .product-name {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-meta {
    font-size: 10px;
    padding: 5px 0;
    margin-bottom: 8px;
  }

  .product-price {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px;
  }

  .product-price > span,
  .product-price div span:first-child {
    font-size: 15px !important;
  }

  .product-price .btn,
  .product-price button {
    width: 100% !important;
    font-size: 10px !important;
    padding: 8px 10px !important;
  }

  .product-badge {
    font-size: 8px;
    padding: 3px 7px;
    top: 8px;
    left: 8px;
  }

  .card-img-dots {
    bottom: 6px;
  }
}

/* Modals & Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(74, 55, 40, 0.4);
  backdrop-filter: blur(5px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-deep);
  transform: translateY(30px);
  transition: var(--transition);
  position: relative;
}

.modal-backdrop.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--text-color);
  color: #FFFFFF;
}

/* Product Detail Modal Content */
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .product-modal-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.modal-image-container {
  height: 100%;
  min-height: 250px;
  background-color: #F3EAE0;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: 30px;
}

.scent-notes-box {
  background: var(--card-bg);
  border: 1px dashed var(--accent-color);
  border-radius: var(--border-radius);
  padding: 15px;
  margin: 15px 0;
  font-size: 13px;
}

.scent-notes-box h5 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-deep);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-left: 1px solid var(--border-color);
}

.cart-drawer.active {
  transform: translateX(-420px);
}

.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-size: 24px;
}

.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: 20px;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius);
  object-fit: cover;
  background-color: #F3EAE0;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 600;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--accent-color);
  text-transform: uppercase;
}

.cart-item-price {
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px 8px;
  gap: 10px;
  width: fit-content;
  background-color: var(--card-bg);
  margin-top: 8px;
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  color: var(--accent-color);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #a34a3e;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
  padding: 5px;
}

.cart-item-remove:hover {
  transform: scale(1.1);
}

.cart-empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

.cart-empty-state i {
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 15px;
  display: block;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--card-bg);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 16px;
}

.cart-summary-row .total-price {
  font-size: 20px;
  font-weight: 700;
}

/* Floating Simulated Email Widget */
.email-widget-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--text-color);
  color: #FFFFFF;
  border: 2px solid var(--accent-color);
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: var(--shadow-deep);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}

.email-widget-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.email-badge {
  background-color: #a34a3e;
  color: #FFFFFF;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  top: -5px;
  left: 10px;
}

.email-drawer {
  position: fixed;
  bottom: 85px;
  right: 24px;
  width: 400px;
  height: 500px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-deep);
  z-index: 150;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transform-origin: bottom right;
  transition: var(--transition);
}

.email-drawer.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.email-drawer-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--text-color);
  color: #FFFFFF;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.email-drawer-header h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.email-drawer-header button {
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 13px;
  opacity: 0.8;
}

.email-drawer-header button:hover {
  opacity: 1;
}

.email-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.email-item:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-light);
}

.email-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.email-item-subject {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-color);
  margin-bottom: 4px;
}

.email-item-to {
  font-size: 11px;
  color: var(--accent-color);
  font-weight: 500;
}

.email-item-body {
  font-size: 12px;
  color: #555;
  white-space: pre-wrap;
  background-color: #faf7f2;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px;
  margin-top: 8px;
  display: none;
  font-family: monospace;
  max-height: 150px;
  overflow-y: auto;
}

.email-item.expanded .email-item-body {
  display: block;
}

.email-empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 13px;
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 18px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--text-color);
  color: #FFFFFF;
  border-color: var(--text-color);
}

/* Checkout Form Layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 20px 0;
}

@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Hero Section Storefront */
.store-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 60px;
  box-shadow: var(--shadow-medium);
}

.store-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.store-hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10%;
  color: #FFFFFF;
  z-index: 10;
}

.store-hero-content h2 {
  font-size: 48px;
  font-weight: 700;
  max-width: 600px;
  line-height: 1.1;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.store-hero-content p {
  font-size: 18px;
  max-width: 500px;
  margin-bottom: 25px;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-weight: 300;
}

/* Order Confirmation Modal styling */
.success-checkmark {
  width: 80px;
  height: 80px;
  background-color: #ecfdf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #059669;
  font-size: 36px;
}

.order-confirm-box {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 15px;
  margin: 20px 0;
  text-align: center;
}

.order-id-display {
  font-family: monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 1px;
  background: #FFFFFF;
  padding: 8px 15px;
  border-radius: 6px;
  border: 1px dashed var(--accent-color);
  margin-top: 10px;
  display: inline-block;
}

/* TRACKING PAGE */
.track-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: var(--card-bg);
}

.search-box {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.search-box input {
  flex-grow: 1;
}

/* Timeline */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 50px 0 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 15px;
  left: 0;
  height: 4px;
  background-color: var(--accent-color);
  z-index: 2;
  transition: width 0.5s ease;
  width: 0%;
}

.timeline-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-node {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
}

.timeline-step.active .step-node {
  border-color: var(--accent-color);
  background-color: var(--card-bg);
  color: var(--accent-color);
  box-shadow: 0 0 0 5px rgba(212, 163, 115, 0.2);
}

.timeline-step.completed .step-node {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  color: #FFFFFF;
}

.step-label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--text-muted);
}

.timeline-step.active .step-label {
  color: var(--text-color);
}
.timeline-step.completed .step-label {
  color: var(--accent-color);
}

.track-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
}

.track-details-table th,
.track-details-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.track-details-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
}

/* ADMIN PANEL */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .admin-grid {
    grid-template-columns: 1fr 2.5fr;
  }
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.admin-nav-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background-color: var(--text-color);
  color: #FFFFFF;
  border-color: var(--text-color);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
}

.stat-val {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 600;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* Admin Table */
.admin-table-container {
  overflow-x: auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-top: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: var(--input-bg);
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background-color: rgba(253, 248, 242, 0.5);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-placed { background-color: #dbeafe; color: #1e40af; }
.status-processing { background-color: #fef3c7; color: #92400e; }
.status-shipped { background-color: #e0f2fe; color: #075985; }
.status-delivered { background-color: #dcfce7; color: #166534; }
.status-cancelled { background-color: #fee2e2; color: #991b1b; }

.action-btn-group {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-color);
}

.action-btn:hover {
  background-color: var(--text-color);
  color: #FFFFFF;
}

.admin-prod-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #F3EAE0;
}

/* Order Details expanded panel in admin */
.order-detail-expanded {
  background-color: var(--input-bg);
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Notification banner toast */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background-color: var(--text-color);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: var(--shadow-deep);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--accent-color);
}

.toast.active {
  transform: translateX(-50%) translateY(0);
}

.toast-success-icon {
  color: var(--accent-color);
}

/* Premium Image Upload Area */
.image-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-upload-container {
  width: 100%;
  height: 200px;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--input-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.image-upload-container:hover {
  border-color: var(--accent-color);
  background-color: #FFFFFF;
}

.image-upload-container.hover {
  border-color: var(--accent-color);
  background-color: rgba(212, 163, 115, 0.05);
}

.image-upload-container.has-image {
  border-style: solid;
  border-color: var(--border-color);
}

.image-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.image-upload-placeholder i {
  font-size: 32px;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.image-preview-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 55, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 13px;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

.image-upload-container:hover .image-upload-overlay {
  opacity: 1;
}

.image-upload-info {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Multi-Image Gallery Uploader in Admin */
.multi-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.gallery-thumb-box {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  background: #FFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gallery-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--primary-color);
  color: #FFF;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.gallery-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(163, 74, 62, 0.9);
  color: #FFF;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-thumb-remove:hover {
  background: #a34a3e;
  transform: scale(1.1);
}

.gallery-add-box {
  width: 100px;
  height: 100px;
  border: 2px dashed var(--accent-color);
  border-radius: var(--border-radius);
  background-color: rgba(212, 163, 115, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 6px;
}

.gallery-add-box:hover {
  background-color: rgba(212, 163, 115, 0.15);
  border-color: var(--primary-color);
}

/* Card Dots Indicator & Modal Thumbnails */
.card-img-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

.card-img-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.card-img-dots .dot.active {
  background: var(--accent-color);
  width: 14px;
  border-radius: 4px;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-thumb-item {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.6;
}

.modal-thumb-item:hover, .modal-thumb-item.active {
  border-color: var(--accent-color);
  opacity: 1;
}

.modal-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating WhatsApp & Instagram Buttons */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 24px;
  background-color: #25d366;
  color: #FFFFFF !important;
  border-radius: 50%;
  text-align: center;
  font-size: 26px;
  box-shadow: var(--shadow-deep);
  z-index: 150;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
  margin: 0;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
}

.instagram-float {
  position: fixed;
  bottom: 88px;
  left: 24px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #FFFFFF !important;
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  box-shadow: var(--shadow-deep);
  z-index: 150;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.instagram-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 20px rgba(220, 39, 67, 0.4);
}

.instagram-float i {
  margin: 0;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Mobile: Elevate buttons cleanly above bottom navigation bar */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
    left: 16px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 22px !important;
  }
  .instagram-float {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
    left: 16px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }
}

/* --- FRAGRANCE SELECTION STYLES (MATCHING REFERENCE IMAGE) --- */
.fragrance-selector-wrapper {
  margin: 18px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.fragrance-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--text-color);
  text-transform: uppercase;
}

.fragrance-title {
  color: var(--text-muted);
}

.fragrance-selected-name {
  color: var(--text-color);
  font-weight: 700;
}

.fragrance-options-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fragrance-pill {
  background: #ffffff;
  color: #111111;
  border: 1px solid #dcdcdc;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.fragrance-pill:hover {
  border-color: #111111;
  background: #f8f8f8;
}

.fragrance-pill.active {
  border: 2px solid #111111;
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.fragrance-clear-btn {
  background: transparent;
  border: none;
  color: #666666;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.fragrance-clear-btn:hover {
  color: #d9534f;
  text-decoration: underline;
}

/* Admin Fragrance Checkbox Pill Styling */
.admin-fragrance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.admin-fragrance-pill.selected {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

/* Category Filters Desktop / Mobile Responsive */
.category-desktop-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
}

.category-mobile-wrapper {
  display: none;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 25px auto;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mobile-cat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
  white-space: nowrap;
}

.category-mobile-select {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  outline: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .category-desktop-pills {
    display: none !important;
  }
  .category-mobile-wrapper {
    display: flex !important;
  }
}

/* ==========================================================
   SCROLLING ANNOUNCEMENT BAR
   ========================================================== */
.announcement-bar {
  background-color: var(--text-color);
  color: #FFFFFF;
  padding: 8px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.announcement-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: prasi-marquee 28s linear infinite;
}

.announcement-item {
  display: inline-block;
  padding: 0 40px;
}

.announcement-bar:hover .announcement-track {
  animation-play-state: paused;
}

@keyframes prasi-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-track { animation: none; }
}

/* ==========================================================
   HOME PAGE CAROUSEL
   ========================================================== */
.home-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  margin-bottom: 30px;
  background: #f3ece4;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  min-width: 100%;
}

.carousel-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.carousel-slide-img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 28px 26px;
  background: linear-gradient(to top, rgba(44, 32, 23, 0.85), rgba(44, 32, 23, 0));
  color: #FFF;
}

.carousel-caption h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  color: #FFF;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.carousel-caption p {
  font-size: 14px;
  margin: 0;
  opacity: 0.92;
  color: #FFF;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
  z-index: 2;
}

.carousel-nav:hover { background: #FFF; }
.carousel-nav.prev { left: 16px; }
.carousel-nav.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--accent-color);
  transform: scale(1.25);
}

/* Admin carousel manager */
.carousel-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.carousel-admin-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #FFF;
}

.carousel-admin-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.carousel-admin-card .cac-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.carousel-admin-card .cac-body input {
  font-size: 12px;
  padding: 6px 8px;
}

.carousel-add-box {
  border: 2px dashed var(--accent-color);
  border-radius: var(--border-radius);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 12px;
  transition: var(--transition);
}

.carousel-add-box:hover {
  background: #FDF8F2;
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .carousel-slide-img { height: 240px; }
  .carousel-caption h2 { font-size: 22px; }
  .carousel-caption p { font-size: 12px; }
  .carousel-nav { width: 34px; height: 34px; font-size: 12px; }
}

/* Carousel image-only slides rotate behind a constant text overlay */
.carousel-slide-image-only {
  flex: 0 0 100%;
  position: relative;
  min-width: 100%;
  min-height: 420px;
  background: #FDF8F2;
}

.carousel-slide-image-only .carousel-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Static overlay layer: text stays constant while images change */
.carousel-static-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.25) 0%, rgba(20, 15, 10, 0.65) 100%);
}

.carousel-static-overlay > .carousel-content-overlay {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: 100%;
  overflow-y: auto;
  pointer-events: auto;
  /* Transparent background so the image is fully visible through the text */
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 10px;
}

.carousel-content-slide {
  text-align: center;
  color: #FFFFFF;
}

.carousel-content-slide h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  margin-bottom: 10px;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.carousel-content-lead {
  font-size: 14px;
  color: #FDF8F2;
  max-width: 760px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-content-card {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 10px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-content-card h4 {
  font-size: 14px;
  color: #FFFFFF !important;
  margin-bottom: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.carousel-content-card p {
  font-size: 11px;
  color: #FDF8F2 !important;
  opacity: 0.9;
  margin: 0;
}

.carousel-content-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.carousel-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 6px;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.carousel-hero-sub {
  font-size: 14px;
  color: var(--accent-color);
  font-style: italic;
  margin: 0 auto 16px auto;
  max-width: 720px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .carousel-slide-image-only { min-height: auto; height: 320px; }
  .carousel-slide-img { height: 320px; }
  .carousel-static-overlay { padding: 14px; align-items: flex-start; }
  .carousel-static-overlay > .carousel-content-overlay { padding: 18px 14px; border-radius: 12px; }
  .carousel-content-slide h3 { font-size: 24px; }
  .carousel-content-lead { font-size: 13px; margin-bottom: 18px; }
  .carousel-content-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .carousel-content-card { padding: 14px 10px; }
  .carousel-hero-title { font-size: 26px; }
  .carousel-hero-sub { font-size: 12px; margin-bottom: 14px; }
}

/* Per-slide content overlay (slides 2 onwards) */
.carousel-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  z-index: 3;
}
.carousel-slide-overlay .carousel-content-slide {
  max-width: 820px;
}
.carousel-slide-overlay .carousel-hero-title,
.carousel-slide-overlay .carousel-hero-sub,
.carousel-slide-overlay p,
.carousel-slide-overlay h1,
.carousel-slide-overlay h2,
.carousel-slide-overlay h3,
.carousel-slide-overlay h4 {
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
