/**
 * MEN'S FASHION - Master Stylesheet
 * Concept: Modern Indian Menswear – Contemporary Style Meets South Indian Tradition
 * Strict Native CSS3 (Zero frameworks)
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --charcoal: #202522;
  --charcoal-light: #343a37;
  --ivory: #F5F1E8;
  --ivory-dark: #ebe4d6;
  --maroon: #7B2938;
  --maroon-hover: #611e2a;
  --gold: #B78B50;
  --gold-light: #d8b482;
  --olive: #667565;
  --white: #FFFFFF;
  --border: #e2ddd3;
  --border-light: #ece8df;
  --text-muted: #6e7471;
  --shadow-sm: 0 2px 8px rgba(32, 37, 34, 0.05);
  --shadow-md: 0 6px 20px rgba(32, 37, 34, 0.08);
  --shadow-lg: 0 12px 36px rgba(32, 37, 34, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1320px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

h1 { font-size: 2.8rem; line-height: 1.15; }
h2 { font-size: 2.2rem; line-height: 1.25; }
h3 { font-size: 1.5rem; line-height: 1.3; }
h4 { font-size: 1.15rem; font-weight: 600; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px auto;
}
.section-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.section-title {
  margin-bottom: 12px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}
.btn-primary:hover {
  background-color: var(--maroon-hover);
  border-color: var(--maroon-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover {
  background-color: var(--charcoal);
  color: var(--white);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background-color: #9d743e;
  color: var(--white);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background-color: #1eb956;
  border-color: #1eb956;
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.78rem;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 0.92rem;
}
.btn-block {
  width: 100%;
}
.btn:disabled, .btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   ANNOUNCEMENT BAR & NAVIGATION
   ========================================================================== */
.announcement-bar {
  background-color: var(--charcoal);
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  text-align: center;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 101;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.main-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--maroon);
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.brand-logo img {
  max-height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover, .nav-link.active {
  color: var(--maroon);
}
.nav-link.sale-link {
  color: var(--maroon);
  font-weight: 700;
}

/* Category dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 110;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--charcoal);
}
.dropdown-item a:hover {
  background: var(--ivory);
  color: var(--maroon);
  padding-left: 24px;
}

/* Right Nav Icons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-action-btn {
  background: none;
  border: none;
  color: var(--charcoal);
  cursor: pointer;
  position: relative;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.nav-action-btn:hover {
  color: var(--maroon);
  background: var(--ivory);
}

.badge-count {
  position: absolute;
  top: 0;
  right: -2px;
  background: var(--maroon);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  text-align: center;
  padding: 0 4px;
}

/* Search Dropdown / Overlay */
.search-modal {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  box-shadow: var(--shadow-md);
  z-index: 99;
}
.search-modal.active {
  display: block;
}
.search-form {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  display: flex;
}
.search-input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  font-size: 1rem;
}
.search-input:focus {
  outline: none;
  border-color: var(--maroon);
  background: var(--white);
}
.search-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--maroon);
  cursor: pointer;
  padding: 8px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open {
  left: 0;
}
.drawer-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 37, 34, 0.4);
  z-index: 999;
}
.drawer-backdrop.active {
  display: block;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--charcoal);
}
.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  display: block;
}
.mobile-links a:hover {
  color: var(--maroon);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 560px;
  background-color: var(--charcoal);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: contrast(1.05);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(32, 37, 34, 0.85) 0%, rgba(32, 37, 34, 0.4) 60%, rgba(32, 37, 34, 0.1) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 60px 0;
}
.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-headline {
  color: var(--white);
  font-size: 3.4rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-subhead {
  font-size: 1.15rem;
  color: var(--ivory);
  margin-bottom: 32px;
  font-weight: 300;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CATEGORY GRID
   ========================================================================== */
.category-section {
  padding: 80px 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-image-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}
.category-card:hover .category-image {
  transform: scale(1.06);
}
.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 28px;
  background: linear-gradient(to top, rgba(32, 37, 34, 0.88) 0%, rgba(32, 37, 34, 0.4) 60%, transparent 100%);
  color: var(--white);
}
.category-title {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.category-shop-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.category-card:hover .category-shop-link {
  color: var(--white);
  padding-left: 4px;
}

/* ==========================================================================
   PRODUCT CARDS & GRIDS
   ========================================================================== */
.product-section {
  padding: 70px 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-thumb-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #f2eee8;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.5s ease;
}
.product-img-secondary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s ease;
}
.product-card:hover .product-img-secondary {
  opacity: 1;
}
.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-badge-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
.badge {
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.badge-new {
  background: var(--maroon);
  color: var(--white);
}
.badge-discount {
  background: var(--gold);
  color: var(--white);
}

.wishlist-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  color: var(--charcoal);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.wishlist-toggle:hover {
  background: var(--white);
  color: var(--maroon);
  transform: scale(1.1);
}
.wishlist-toggle.active {
  color: var(--maroon);
}
.wishlist-toggle.active svg {
  fill: var(--maroon);
}

.quick-view-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  gap: 8px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  z-index: 4;
}
.product-card:hover .quick-view-overlay {
  transform: translateY(0);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-category-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 4px;
}
.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.price-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
}
.price-mrp {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount-text {
  font-size: 0.8rem;
  color: var(--maroon);
  font-weight: 700;
}
.product-sizes-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.size-chip {
  font-size: 0.7rem;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
}

/* ==========================================================================
   PROMOTIONAL EDITORIAL BANNER
   ========================================================================== */
.promo-banner {
  background-color: #202522;
  color: var(--white);
  margin: 60px 0;
  padding: 80px 0;
  position: relative;
  background-size: cover;
  background-position: center;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32, 37, 34, 0.82);
}
.promo-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.promo-tag {
  color: var(--gold-light);
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.promo-title {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 16px;
}
.promo-desc {
  font-size: 1.1rem;
  color: var(--ivory);
  margin-bottom: 28px;
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section {
  background: var(--white);
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.newsletter-box {
  max-width: 580px;
  margin: 0 auto;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.newsletter-input {
  flex-grow: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--ivory);
}
.newsletter-input:focus {
  outline: none;
  border-color: var(--maroon);
  background: var(--white);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--charcoal);
  color: #c9ccc9;
  padding: 70px 0 24px 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.footer-brand p {
  color: #a4aaa5;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #a4aaa5;
}
.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  color: #a4aaa5;
}
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}
.demo-disclaimer-badge {
  background: rgba(183, 139, 80, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ==========================================================================
   SHOP / CATALOG LISTING LAYOUT
   ========================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 40px 0 80px 0;
}
.shop-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  height: fit-content;
}
.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.filter-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  color: #4a504d;
}
.filter-label input[type="checkbox"] {
  accent-color: var(--maroon);
}
.filter-size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.filter-size-btn {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 6px 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.filter-size-btn.active, .filter-size-btn:hover {
  border-color: var(--maroon);
  background: var(--maroon);
  color: var(--white);
}

.shop-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.product-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.sort-select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.pdp-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  padding: 40px 0 80px 0;
}
.pdp-gallery {
  display: flex;
  gap: 16px;
}
.pdp-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80px;
  flex-shrink: 0;
}
.pdp-thumb {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}
.pdp-thumb:hover, .pdp-thumb.active {
  opacity: 1;
  border-color: var(--maroon);
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp-main-image {
  flex-grow: 1;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f0ebe1;
}
.pdp-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-details {
  display: flex;
  flex-direction: column;
}
.pdp-brand {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--maroon);
  margin-bottom: 6px;
}
.pdp-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.pdp-selling-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--charcoal);
}
.pdp-mrp {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.pdp-discount-badge {
  background: rgba(123, 41, 56, 0.1);
  color: var(--maroon);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}
.pdp-tax-notice {
  font-size: 0.8rem;
  color: #888;
}

/* PDP Swatches & Sizes */
.pdp-option-section {
  margin-bottom: 24px;
}
.pdp-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pdp-option-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.size-guide-trigger {
  font-size: 0.82rem;
  color: var(--maroon);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
}

.swatches-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.color-swatch-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--white);
  outline: 1px solid var(--border);
  transition: var(--transition);
}
.color-swatch-item.active, .color-swatch-item:hover {
  outline: 2px solid var(--maroon);
  transform: scale(1.1);
}

.sizes-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.size-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.size-btn:hover {
  border-color: var(--charcoal);
}
.size-btn.active {
  border-color: var(--maroon);
  background: var(--maroon);
  color: var(--white);
}
.size-btn:disabled, .size-btn.out-of-stock {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

.pdp-actions-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.quantity-stepper {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.stepper-btn {
  width: 44px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}
.stepper-input {
  width: 48px;
  height: 48px;
  border: none;
  text-align: center;
  font-weight: 600;
}

/* Serviceable Pincode Checker */
.pincode-checker-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}
.pincode-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.pincode-input {
  flex-grow: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.pincode-result {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.9rem;
}
.specs-table tr {
  border-bottom: 1px solid var(--border-light);
}
.specs-table td {
  padding: 10px 0;
}
.specs-table td:first-child {
  color: var(--text-muted);
  width: 40%;
  font-weight: 500;
}
.specs-table td:last-child {
  color: var(--charcoal);
  font-weight: 600;
}

/* ==========================================================================
   CART & CHECKOUT
   ========================================================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  padding: 40px 0 80px 0;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cart-table th {
  background: var(--ivory);
  padding: 16px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.cart-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.cart-item-info {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cart-item-img {
  width: 72px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.cart-summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  height: fit-content;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.summary-total {
  font-size: 1.25rem;
  font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
  color: var(--charcoal);
}

/* ==========================================================================
   MODALS (Size Guide, Quick View, WhatsApp Form)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32, 37, 34, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--charcoal);
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.92rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--maroon);
}

/* Alert notifications */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.alert-error, .alert-danger { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.alert-warning { background: #FFF8E1; color: #F57F17; border: 1px solid #FFE082; }
.alert-info { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: block;
  }
  .nav-links {
    display: none;
  }
  .hero-headline {
    font-size: 2.4rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    display: none; /* Controlled via mobile filter drawer */
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pdp-gallery {
    flex-direction: column-reverse;
  }
  .pdp-thumbnails {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }
  .pdp-thumb {
    width: 60px;
  }
}
