/* Common Styles for Header, Footer, and Shared Components */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  /* Luxury Watch Store Color Palette */
  --background: 0 0% 100%;
  --foreground: 220 15% 15%;

  --card: 0 0% 100%;
  --card-foreground: 220 15% 15%;

  --popover: 0 0% 100%;
  --popover-foreground: 220 15% 15%;

  /* Deep charcoal - sophisticated primary */
  --primary: 220 15% 15%;
  --primary-foreground: 0 0% 100%;

  /* Light gray - clean secondary */
  --secondary: 220 10% 96%;
  --secondary-foreground: 220 15% 15%;

  /* Muted tones */
  --muted: 220 10% 96%;
  --muted-foreground: 220 10% 45%;

  /* Warm gold accent - luxury feel */
  --accent: 38 80% 55%;
  --accent-foreground: 220 15% 15%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 220 15% 90%;
  --input: 220 15% 90%;
  --ring: 38 80% 55%;

  --radius: 0.5rem;

  /* Custom tokens */
  --gold: 38 80% 55%;
  --gold-light: 38 80% 70%;
  --gold-dark: 38 80% 40%;
  --charcoal: 220 15% 15%;
  --charcoal-light: 220 15% 25%;
  --cream: 40 30% 97%;
  --warm-gray: 30 10% 60%;

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px hsl(220 15% 15% / 0.08);
  --shadow-md: 0 8px 24px -8px hsl(220 15% 15% / 0.12);
  --shadow-lg: 0 16px 48px -16px hsl(220 15% 15% / 0.16);
  --shadow-gold: 0 8px 24px -8px hsl(38 80% 55% / 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

/* Container */
.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.text-white {
  color: #fff !important;
}
@media (min-width: 640px) {
  .container-custom {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding: 0 2rem;
  }
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 1024px) {
  .header-content {
    height: 5rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: hsl(var(--foreground));
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(38 80% 55%) 0%, hsl(38 80% 40%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--accent-foreground));
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* Navigation */
nav.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  nav.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

nav.desktop-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding: 0.25rem 0;
}

nav.desktop-nav a:hover,
nav.desktop-nav a.active {
  color: hsl(var(--accent));
}

nav.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--accent));
  transition: width 0.3s;
}

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

/* Header Actions */
.header-actions {
  display: none;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.3s;
  position: relative;
  flex-shrink: 0;
}

.btn-icon:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--secondary));
}

.btn-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1;
  padding: 0;
}

.cart-badge:empty {
  display: none;
}

/* Cart Dropdown */
.cart-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.5rem;
}

.cart-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 350px;
  max-width: 400px;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: none;
  max-height: 500px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 1024px) {
  .cart-dropdown-menu {
    right: 0;
  }
}

.cart-dropdown-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Cart Dropdown */
.mobile-cart-dropdown-menu {
  position: fixed !important;
  top: 60px !important;
  right: 1rem !important;
  left: auto !important;
  min-width: 320px !important;
  max-width: calc(100vw - 2rem) !important;
  max-height: 400px !important;
}

@media (max-width: 767px) {
  .cart-dropdown-menu:not(.mobile-cart-dropdown-menu) {
    display: none !important;
  }
  
  .mobile-cart-dropdown-menu {
    position: fixed !important;
    top: 60px !important;
    right: 1rem !important;
    left: auto !important;
  }
}

@media (min-width: 768px) {
  .mobile-cart-dropdown-menu {
    display: none !important;
  }
}

.cart-dropdown-item {
  transition: background-color 0.2s ease;
  padding: 5px;
}
.p-2 {
  padding: 5px;
}
.cart-dropdown-item:hover {
  background-color: hsl(var(--secondary));
}
.remove-cart-item {
  position: absolute !important;
  top: 0px;
  right: 0px;
  width: 20px;
  /* height: 20px; */
  background: hsl(var(--primary)) !important;
  color: hsl(var(--destructive-foreground)) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  z-index: 10;
  pointer-events: auto;
}

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

.remove-cart-item:active {
  transform: scale(0.95);
}
.cart-item-row {
  gap: 0.75rem;
  display: flex;
  position: relative;
}

.cart-item-image-wrapper {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  overflow: hidden;
  background: hsl(var(--card));
}

.cart-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-content {
  min-width: 0;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  line-height: 1.3;
  word-break: break-word;
}

.cart-item-price-row {
  gap: 0.5rem;
  /* flex-wrap: wrap; */
  display: flex;
  flex-direction: row;
}

.cart-item-qty-price {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 140px;
}

.cart-inc-dec {
  width: fit-content;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.cart-inc-dec .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border: none;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-inc-dec .btn:hover {
  background: hsl(var(--muted));
}

.cart-inc-dec .form-control {
  border: none;
  border-left: 1px solid hsl(var(--border));
  border-right: 1px solid hsl(var(--border));
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  background: hsl(var(--background));
  max-width: 50px;
  height: 28px;
}

.cart-inc-dec .form-control:focus {
  box-shadow: none;
  outline: none;
}

.cart-item-unit-price {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.cart-item-unit-price .price-value {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.cart-item-subtotal {
  text-align: right;
}

.subtotal-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.subtotal-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.nav-cart-items {
  max-height: 350px;
  overflow-y: auto;
}

.cart-dropdown-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 1rem;
  background: hsl(var(--card));
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}

.cart-total-label {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.cart-total-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--accent));
}

.cart-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.cart-action-buttons .btn {
  flex: 1;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.cart-action-buttons .btn i {
  margin-right: 0.25rem;
}

.remove-cart-item {
  padding: 0.25rem;
  color: hsl(var(--destructive));
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  position: relative;
  pointer-events: auto;
}

.remove-cart-item:hover {
  color: hsl(var(--destructive));
  opacity: 0.8;
  transform: scale(1.1);
}

.remove-cart-item:active {
  transform: scale(0.95);
}

@media (max-width: 767px) {
  .cart-dropdown-menu {
    min-width: 320px;
    max-width: calc(100vw - 2rem);
  }
  
  .mobile-cart-dropdown-menu {
    position: fixed;
    top: 60px;
    right: 1rem;
    left: auto;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-family: inherit;
}

.btn-gold {
  background: linear-gradient(135deg, hsl(38 80% 55%) 0%, hsl(38 80% 40%) 100%);
  color: hsl(var(--accent-foreground));
}

.btn-gold:hover {
  box-shadow: 0 8px 24px -8px hsl(38 80% 55% / 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--secondary));
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn .cart-dropdown-wrapper {
  height: 2.5rem;
  display: flex;
  align-items: center;
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border));
  animation: slideDown 0.4s ease-out;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu nav a {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: all 0.3s;
}

.mobile-menu nav a:hover,
.mobile-menu nav a.active {
  background-color: hsl(var(--secondary));
  color: hsl(var(--accent));
}

/* Footer Styles */
footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand p {
  color: hsl(var(--primary-foreground) / 0.7);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: hsl(var(--primary-foreground) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground) / 0.7);
  text-decoration: none;
  transition: all 0.3s;
}

.social-link:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.footer-section h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: hsl(var(--accent));
}

.footer-contact-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--accent));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact-item span {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.7);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid hsl(var(--primary-foreground) / 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 0.5rem;
}

.footer-bottom-links a {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: hsl(var(--accent));
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.hover-lift {
  transition: all 0.3s ease-out;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

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

.bg-secondary {
  background-color: hsl(var(--secondary));
}

.border-border {
  border-color: hsl(var(--border));
}


.float-right {
  float: right;
}

/* Common Page Header Styles */
.page-header {
  background-color: hsl(var(--secondary));
  padding: 3rem 0;
  border-bottom: 1px solid hsl(var(--border));
  /* margin-bottom: 2rem; */
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }
}

.page-header p {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  margin: 0;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}

/* Common Section Styles */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

/* Card Header Modern */
.card-header-modern {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid hsl(var(--border));
}

.card-title-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}

.card-title-modern svg {
  color: hsl(var(--accent));
  flex-shrink: 0;
}

/* Text Utilities */
.text-danger {
  color: hsl(var(--destructive));
}

.small {
  font-size: 0.8125rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

/* Form Utilities */
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 1rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 4px hsl(var(--accent) / 0.1);
}

.form-control textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* Alert Styles */
.alert {
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.alert-danger {
  background-color: hsl(0 84% 60% / 0.1);
  border: 1px solid hsl(0 84% 60% / 0.3);
  color: hsl(0 84% 60%);
}

.alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.logo-img {
  max-width: 150px;
}