@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-main: #0c0608;
  --bg-card: rgba(26, 12, 16, 0.45);
  --bg-card-hover: rgba(43, 20, 26, 0.6);
  --primary: #8b152d;
  --primary-hover: #ab1834;
  --accent: #d4b28c;
  --accent-hover: #dfc19b;
  --text-main: #f5ecef;
  --text-muted: #bcaab0;
  --border-gold: rgba(212, 178, 140, 0.25);
  --border-burgundy: rgba(139, 21, 45, 0.4);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass: backdrop-filter: blur(12px);
}

/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #070304;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 15px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

/* Layout containers */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Announcement Bar */
.announcement-bar {
  background-color: #070304;
  border-bottom: 1px solid var(--border-burgundy);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 10px 0;
  z-index: 100;
  position: relative;
}

.announcement-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-bar-items {
  display: flex;
  gap: 30px;
}

.announcement-bar-right {
  display: flex;
  gap: 15px;
}

@media (max-width: 768px) {
  .announcement-bar-items {
    display: none;
  }
  .announcement-bar .container {
    justify-content: center;
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 6, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 21, 45, 0.15);
  transition: var(--transition);
}

.header-main {
  height: 85px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-sub {
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 35px;
  list-style: none;
}

.nav-link {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
}

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

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

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

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

/* Dropdown Menu styling */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(12, 6, 8, 0.98);
  border: 1px solid var(--border-burgundy);
  border-top: 2px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  list-style: none;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 15px 0;
  border-radius: 15px;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 10px 25px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.dropdown-item a:hover {
  color: var(--accent);
  background: rgba(139, 21, 45, 0.1);
  padding-left: 30px;
}

/* Utilities */
.header-utilities {
  display: flex;
  gap: 20px;
  align-items: center;
}

.utility-btn {
  color: var(--text-main);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.utility-btn:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-main);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 24px;
  color: var(--text-main);
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* Navigation Drawer (Mobile) */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: #0c0608;
  border-left: 1px solid var(--border-burgundy);
  z-index: 2000;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.nav-drawer.open {
  right: 0;
}

.nav-drawer-close {
  align-self: flex-end;
  font-size: 24px;
  color: var(--text-muted);
}

.nav-drawer-close:hover {
  color: var(--accent);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 25px;
  list-style: none;
}

.nav-drawer-link {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  display: block;
  padding: 5px 0;
}

.nav-drawer-link:hover,
.nav-drawer-link.active {
  color: var(--accent);
  padding-left: 10px;
}

.nav-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-drawer-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Reusable UI Components */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 15px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 21, 45, 0.4);
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--bg-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 178, 140, 0.2);
}

.btn-text {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-burgundy);
  border-radius: 15px;
  padding: 30px;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
}

/* Stars rating */
.stars {
  display: flex;
  gap: 4px;
  color: var(--accent);
  font-size: 12px;
}

/* Footer styling */
footer {
  background-color: #060304;
  border-top: 1px solid var(--border-burgundy);
  padding: 80px 0 30px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 2.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-newsletter {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-brand, .footer-newsletter {
    grid-column: span 1;
  }
}



.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(212, 178, 140, 0.05);
}

.footer-column h4 {
  color: var(--text-main);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 25px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-newsletter h4 {
  color: var(--text-main);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 15px;
}

.footer-newsletter p {
  font-size: 13px;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  height: 48px;
  position: relative;
  max-width: 360px;
}

.newsletter-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-burgundy);
  border-right: none;
  border-radius: 15px 0 0 15px;
  padding: 0 15px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.newsletter-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.newsletter-submit {
  background-color: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 0 15px 15px 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.newsletter-submit:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.footer-payment-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.payment-icon {
  height: 22px;
  opacity: 0.75;
  transition: var(--transition);
}

.payment-icon:hover {
  opacity: 1;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Quick popup alert */
.popup-alert {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 15px 25px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 500;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.popup-alert.show {
  transform: translateY(0);
  opacity: 1;
}

/* SVG icons styling inside site */
.svg-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  fill: currentColor;
}

/* ==========================================================================
   Utilities Modals & Cart Drawer (Added)
   ========================================================================== */

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 6, 8, 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-close {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
}

.search-close:hover {
  color: var(--accent);
}

.search-container {
  width: 90%;
  max-width: 600px;
}

.search-container form {
  display: flex;
  gap: 15px;
  border-bottom: 2px solid var(--border-burgundy);
  padding-bottom: 10px;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  font-family: var(--font-body);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Cart Drawer (Right side Off-Canvas) */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #0f080b;
  border-left: 1px solid var(--border-burgundy);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-drawer.open {
  transform: translateX(-400px);
}

.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

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

.cart-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
}

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

.cart-drawer-close:hover {
  color: var(--accent);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty-state span {
  margin-bottom: 15px;
}

.cart-drawer-footer {
  padding: 25px;
  border-top: 1px solid var(--border-burgundy);
  background: #0c0608;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* Cart Item Card */
.cart-item {
  display: flex;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid rgba(139, 21, 45, 0.1);
  padding-bottom: 15px;
  text-align: left;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid var(--border-burgundy);
}

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

.cart-item-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 12px;
  color: var(--accent);
}

.cart-item-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-burgundy);
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.cart-item-qty button {
  background: none;
  border: none;
  color: var(--text-main);
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.cart-item-qty span {
  width: 24px;
  text-align: center;
  font-size: 11px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--primary-hover);
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
}

/* Collapsible Footer & Left Align Updates (Added) */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
}

.footer-brand .logo {
  align-items: flex-start !important;
  text-align: left !important;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .footer-brand, .footer-newsletter {
    grid-column: span 1 !important;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(139, 21, 45, 0.1);
    margin-bottom: 25px;
  }
  .footer-column {
    border-bottom: 1px solid rgba(139, 21, 45, 0.1);
  }
  .footer-column h4 {
    margin-bottom: 0 !important;
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px !important;
  }
  .footer-column h4::after {
    content: '+';
    font-size: 16px;
    color: var(--accent);
    transition: transform 0.3s ease;
  }
  .footer-column.active h4::after {
    content: '−';
  }
  .footer-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1), padding 0.35s ease;
    padding: 0;
    gap: 10px !important;
  }
  .footer-column.active .footer-links {
    max-height: 250px;
    padding: 15px 0;
  }
}

/* Guaranteed Footer Logo Left-Alignment (Added) */
.footer-brand .logo {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  width: fit-content !important;
}

.footer-brand .logo-img {
  margin-left: 0 !important;
  margin-right: auto !important;
}
