@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --maroon: #7B2D3F;
  --maroon-dark: #5A1F2D;
  --gold: #D4A843;
  --gold-light: #E8C96A;
  --cream: #FAF3E8;
  --charcoal: #2A2A2A;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray: #999999;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 5px 25px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
  --radius: 8px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--cream);
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--maroon);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
  background: var(--maroon);
  color: var(--white);
}

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

.btn-gold:hover {
  background: var(--gold-light);
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  color: var(--maroon);
  margin-bottom: 10px;
}

.section-title .divider {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 15px;
}

.section-title p {
  color: var(--gray);
  font-size: 18px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--maroon);
}

.logo span {
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--charcoal);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

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

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-icon {
  position: relative;
  cursor: pointer;
  font-size: 20px;
}

.nav-icon .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--maroon);
  color: var(--white);
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 60px 0 30px;
}

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

.footer-brand .logo {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 15px;
}

.footer-brand p {
  color: var(--gray);
  line-height: 1.8;
}

.footer h4 {
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: var(--gray);
}

.footer ul a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  color: var(--gray);
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.product-card .image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-light);
}

.product-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .image .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--maroon);
  color: var(--white);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
}

.product-card .image .wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition);
}

.product-card:hover .wishlist-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-card .info {
  padding: 20px;
}

.product-card .info h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.product-card .info .price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.product-card .info .price .current {
  font-weight: 700;
  color: var(--maroon);
  font-size: 18px;
}

.product-card .info .price .original {
  text-decoration: line-through;
  color: var(--gray);
  font-size: 14px;
}

.product-card .info .add-to-cart {
  width: 100%;
  padding: 10px;
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.product-card .info .add-to-cart:hover {
  background: var(--maroon-dark);
}

/* Mughal Pattern Border */
.mughal-border {
  position: relative;
}

.mughal-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px,
    var(--gold) 20px,
    transparent 20px,
    transparent 25px,
    var(--maroon) 25px,
    var(--maroon) 45px,
    transparent 45px,
    transparent 50px
  );
}

/* Gold Divider */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--gold);
}

.gold-divider span {
  color: var(--gold);
  font-size: 24px;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  z-index: 2000;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar .cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--gray-light);
}

.cart-sidebar .cart-header h3 {
  color: var(--maroon);
}

.cart-sidebar .close-cart {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--charcoal);
}

.cart-sidebar .cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-sidebar .cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--gray-light);
}

.cart-sidebar .cart-item img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
}

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

.cart-sidebar .cart-item .item-details h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.cart-sidebar .cart-item .item-details .size {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 5px;
}

.cart-sidebar .cart-item .item-details .price {
  font-weight: 700;
  color: var(--maroon);
}

.cart-sidebar .cart-item .remove-item {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 18px;
}

.cart-sidebar .cart-footer {
  padding: 20px;
  border-top: 1px solid var(--gray-light);
}

.cart-sidebar .cart-footer .total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cart-sidebar .cart-footer .total span:last-child {
  color: var(--maroon);
}

.cart-sidebar .checkout-btn {
  width: 100%;
  padding: 15px;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.cart-sidebar .checkout-btn:hover {
  background: var(--gold-light);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Size Guide Modal */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal h3 {
  color: var(--maroon);
  margin-bottom: 20px;
  text-align: center;
}

.modal .close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.size-table th,
.size-table td {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--gray-light);
}

.size-table th {
  background: var(--maroon);
  color: var(--white);
  font-weight: 700;
}

.size-table tr:nth-child(even) {
  background: var(--gray-light);
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--charcoal);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state h3 {
  color: var(--gray);
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--gray);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}

/* Form Groups */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(123, 45, 63, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

/* Auth Modal */
.auth-modal {
  max-width: 440px;
  padding: 0;
  overflow: hidden;
}

.auth-modal-header {
  background: var(--maroon);
  padding: 30px 40px;
  text-align: center;
}

.auth-modal-header .auth-title {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.auth-modal-header .auth-subtitle {
  color: var(--gold-light);
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

.auth-modal-body {
  padding: 30px 40px 40px;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.auth-subtitle {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.auth-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-bottom: 12px;
  padding: 10px;
  background: #fff5f5;
  border-radius: var(--radius);
  display: none;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--gray);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--maroon);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--gray);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #eee;
}

.auth-divider::before {
  margin-right: 12px;
}

.auth-divider::after {
  margin-left: 12px;
}

/* Checkout Modal */
.checkout-modal {
  max-width: 500px;
  padding: 40px;
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.checkout-total {
  text-align: right;
  padding: 16px 0;
  font-size: 1.2rem;
  color: var(--maroon);
}

/* User Icon & Menu */
.user-icon {
  position: relative;
  cursor: pointer;
}

.user-name-nav {
  font-size: 0.85rem;
  font-weight: 600;
}

.user-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 200px;
  z-index: 1001;
}

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

.user-menu-content {
  padding: 16px;
}

.user-menu-name {
  font-weight: 700;
  color: var(--charcoal);
}

.user-menu-email {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.user-menu-content hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 8px 0;
}

.user-menu-content a {
  display: block;
  padding: 8px 0;
  color: var(--maroon);
  cursor: pointer;
  font-weight: 600;
}

.user-menu-content a:hover {
  text-decoration: underline;
}

.btn-block { display: block; width: 100%; text-align: center; }

@media (max-width: 768px) {
  .nav.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
  }
}
