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

:root {
  --gold: #B8860B;
  --gold-light: #D4A843;
  --dark: #1a1a1a;
  --dark2: #2d2d2d;
  --text: #444;
  --text-light: #888;
  --border: #e8e8e8;
  --bg: #fff;
  --bg-light: #f9f9f9;
  --red: #c0392b;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--dark);
  font-weight: 500;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

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

/* TOP BAR */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  padding: 8px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

/* HEADER */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header .logo img { height: 60px; }
.header nav { display: flex; gap: 30px; align-items: center; }
.header nav a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dark);
  position: relative;
}
.header nav a:hover { color: var(--gold); }
.header-icons { display: flex; gap: 20px; align-items: center; }
.header-icons a { color: var(--dark); font-size: 18px; }
.cart-icon-wrapper { position: relative; display: inline-block; }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* BREADCRUMB BANNER */
.page-banner {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.page-banner h1 {
  font-size: 28px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-banner .breadcrumb {
  font-size: 13px;
  color: var(--text-light);
}
.page-banner .breadcrumb a { color: var(--text); }
.page-banner .breadcrumb span { color: var(--gold); }

/* PRODUCT DETAIL */
.product-detail {
  padding: 60px 0;
}
.product-detail .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-images .main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
  cursor: zoom-in;
  margin-bottom: 15px;
}
.product-images .thumbnails {
  display: flex;
  gap: 10px;
}
.product-images .thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s;
}
.product-images .thumbnails img:hover,
.product-images .thumbnails img.active {
  border-color: var(--gold);
}
.product-info h1 {
  font-size: 32px;
  margin-bottom: 15px;
  line-height: 1.2;
}
.product-info .price {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
}
.product-info .price .old-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 16px;
  font-weight: 400;
  margin-left: 10px;
}
.product-info .sale-badge {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 11px;
  padding: 3px 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.product-info .short-desc-label {
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  margin-bottom: 8px;
  color: var(--dark);
}
.product-info .short-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 25px;
}

/* SIZE SELECTOR */
.size-selector { margin-bottom: 25px; }
.size-selector label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-options span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}
.size-options span:hover,
.size-options span.active {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

/* QUANTITY & ADD TO CART */
.add-to-cart-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
}
.qty-selector button {
  width: 40px;
  height: 45px;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--dark);
}
.qty-selector input {
  width: 50px;
  height: 45px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
}
.btn-add-cart {
  background: var(--dark);
  color: white;
  border: none;
  padding: 0 35px;
  height: 45px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.3s;
}
.btn-add-cart:hover { background: var(--gold); }

/* WISHLIST */
.wishlist-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 0;
}
.wishlist-btn:hover { color: var(--gold); }

/* SHARE */
.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.share-row a { color: var(--text); font-size: 16px; }
.share-row a:hover { color: var(--gold); }

/* PRODUCT TABS */
.product-tabs {
  padding: 0 0 60px;
}
.tab-nav {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.tab-nav a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 15px 0;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.tab-nav a:hover, .tab-nav a.active {
  color: var(--dark);
  border-bottom-color: var(--dark);
}
.tab-content { line-height: 1.9; color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* RELATED PRODUCTS */
.related-products {
  padding: 60px 0;
  background: var(--bg-light);
}
.related-products .section-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 28px;
}
.related-products .section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 40px;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: white;
  font-size: 10px;
  padding: 3px 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}
.product-card .card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.product-card .card-body { padding: 18px; }
.product-card .card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 5px;
}
.product-card .card-title {
  font-size: 18px;
  margin-bottom: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}
.product-card .card-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}
.product-card .card-price .old {
  text-decoration: line-through;
  color: var(--text-light);
  font-weight: 400;
  margin-left: 8px;
  font-size: 13px;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}
.hero h1 { color: white; font-size: 48px; margin-bottom: 15px; }
.hero p { color: #ccc; font-size: 16px; max-width: 600px; margin: 0 auto 30px; }
.hero .btn-gold {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 14px 40px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.3s;
}
.hero .btn-gold:hover { background: var(--gold-light); color: white; }

/* SECTIONS */
.section { padding: 60px 0; }
.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}

/* CATEGORIES */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  text-align: center;
  border: 1px solid var(--border);
  padding: 20px;
  transition: all 0.3s;
}
.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.category-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 12px;
}
.category-card h3 {
  font-size: 16px;
  letter-spacing: 1px;
}

/* FEATURES */
.features {
  background: var(--bg-light);
  padding: 50px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.feature-item h4 { font-size: 16px; margin-bottom: 8px; }
.feature-item p { font-size: 13px; color: var(--text-light); }







/* Cart icon wrapper */
.cart-icon-wrapper {
  position: relative;
  display: inline-block;
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  animation: badgeBounce 0.5s ease;
}

/* Bounce animation */
@keyframes badgeBounce {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.4); }
  70%  { transform: scale(0.85); }
  100% { transform: scale(1); }
}















/* FOOTER */
.footer {
  background: var(--dark);
  color: #aaa;
  padding: 60px 0 30px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.footer h4 {
  color: white;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.footer a { color: #aaa; display: block; margin-bottom: 8px; font-size: 13px; }
.footer a:hover { color: var(--gold); }
.footer-logo img { height: 50px; margin-bottom: 15px; filter: brightness(0) invert(1); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #666;
  font-size: 12px;
}

/* CONTACT PAGE */
.contact-section { padding: 60px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 15px;
}
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form button {
  background: var(--dark);
  color: white;
  border: none;
  padding: 14px 40px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s;
}
.contact-form button:hover { background: var(--gold); }
.branch { margin-bottom: 25px; }
.branch h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 5px;
  text-transform: none;
  letter-spacing: 0;
}
.branch p { font-size: 13px; line-height: 1.8; }

/* SHOP PAGE */
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.shop-controls select {
  padding: 8px 15px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 13px;
}

/* CART */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 2px solid var(--border);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cart-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-table img { width: 80px; height: 80px; object-fit: cover; }
.cart-summary {
  max-width: 400px;
  margin-left: auto;
  border: 1px solid var(--border);
  padding: 25px;
}
.cart-summary h3 { margin-bottom: 15px; }
.cart-summary .total-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cart-summary .btn-checkout {
  display: block;
  width: 100%;
  margin-top: 20px;
  background: var(--gold);
  color: white;
  border: none;
  padding: 14px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .product-detail .container { grid-template-columns: 1fr; gap: 30px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .header nav { display: none; }
  .hero h1 { font-size: 32px; }
}

/* COMPACT CATEGORY GRID (used on home & shop) */
.category-grid-compact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.category-card-compact {
  text-align: center;
  padding: 10px 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.category-card-compact:hover,
.category-card-compact.active {
  border-color: var(--gold);
  background: rgba(184, 134, 11, 0.05);
}
.category-card-compact img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}
.category-card-compact span {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dark);
}
.cat-icon-all {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold);
}

/* FILTER DRAWER */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}
.filter-overlay.active { display: block; }
.filter-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--bg);
  z-index: 201;
  transition: right 0.3s;
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}
.filter-drawer.active { right: 0; }
.filter-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-drawer-header h3 {
  font-size: 16px;
  margin: 0;
}
.filter-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}
.filter-drawer-body { padding: 20px; }
.filter-drawer-body h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.filter-option {
  display: block;
  padding: 10px 15px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}
.filter-option:hover,
.filter-option.active {
  color: var(--gold);
  background: rgba(184, 134, 11, 0.05);
}

/* COMPACT FOOTER */
.footer-compact {
  background: var(--dark);
  color: #aaa;
  padding: 30px 0 15px;
  font-size: 13px;
}
.footer-grid-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}
.footer-compact h4 {
  color: white;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.footer-compact a {
  color: #aaa;
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}
.footer-compact a:hover { color: var(--gold); }
.footer-bottom-compact {
  border-top: 1px solid #333;
  padding-top: 12px;
  text-align: center;
  color: #666;
  font-size: 11px;
}

/* WISHLIST HEART ICON */
.wishlist-heart-btn {
  background: none;
  border: 1px solid var(--border);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  transition: all 0.3s;
}
.wishlist-heart-btn:hover {
  color: var(--red);
  border-color: var(--red);
}

/* MOBILE: 4 columns for categories */
@media (max-width: 768px) {
  .category-grid-compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .category-card-compact img {
    width: 45px;
    height: 45px;
  }
  .cat-icon-all {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
  .category-card-compact span {
    font-size: 9px;
  }
  .footer-grid-compact {
    grid-template-columns: 1fr 1fr;
  }
}

/* DESKTOP: Center categories & increase size */
@media (min-width: 769px) {
  .category-grid-compact {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  .category-card-compact {
    width: 130px;
  }
  .category-card-compact img {
    width: 90px;
    height: 90px;
  }
  .cat-icon-all {
    width: 90px;
    height: 90px;
    font-size: 28px;
  }
}

/* Wishlist heart on product image top-right */
.product-card .wishlist-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(255,255,255,0.85);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  transition: all 0.3s;
}
.product-card .wishlist-overlay:hover {
  color: var(--red);
  background: white;
}

/* Wishlist overlay on product detail page main image */
.product-images .wishlist-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  background: rgba(255,255,255,0.85);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.product-images .wishlist-overlay:hover {
  color: var(--red);
  background: white;
}
.detail-wishlist-form {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
}

/* RESPONSIVE CART TABLE */
@media (max-width: 768px) {
  .cart-table thead { display: none; }
  .cart-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .cart-table td {
    border-bottom: none;
    padding: 5px 10px;
  }
  /* Product image */
  .cart-table td:nth-child(1) {
    width: 70px;
    flex-shrink: 0;
  }
  .cart-table td:nth-child(1) img {
    width: 60px;
    height: 60px;
  }
  /* Name */
  .cart-table td:nth-child(2) {
    flex: 1;
    font-weight: 500;
  }
  /* Remove button */
  .cart-table td:nth-child(6) {
    position: absolute;
    top: 15px;
    right: 0;
    padding: 0;
  }
  /* Price, Qty, Total - show in a row below */
  .cart-table td:nth-child(3),
  .cart-table td:nth-child(4),
  .cart-table td:nth-child(5) {
    font-size: 12px;
    color: var(--text-light);
    padding: 2px 10px;
  }
  .cart-table td:nth-child(3)::before { content: 'Price: '; font-weight: 600; color: var(--text); }
  .cart-table td:nth-child(4)::before { content: 'Qty: '; font-weight: 600; color: var(--text); }
  .cart-table td:nth-child(5)::before { content: 'Total: '; font-weight: 600; color: var(--text); }
  .cart-table td:nth-child(5) { color: var(--dark); font-weight: 600; }

  .cart-summary {
    max-width: 100%;
    margin: 0;
  }
}
