/* ==========================================================
   GLIITY JEWELRIES - MAIN STYLESHEET (RESPONSIVE FRAMING)
   Sheffield, United Kingdom | +44 7429 131473
   ========================================================== */

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* Typography Defaults */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

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

/* Top Announcement Bar */
.announcement-bar {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-bottom: 1px solid var(--gold-border);
  font-size: 0.8125rem;
  padding: 8px 0;
  position: relative;
  z-index: 101;
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.announcement-bar .bar-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  letter-spacing: 0.03em;
  text-align: center;
}

.announcement-bar .highlight {
  color: var(--gold-light);
  font-weight: 600;
}

.announcement-bar .contact-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light-muted);
  flex-shrink: 0;
}

.announcement-bar .contact-quick:hover {
  color: var(--gold-primary);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(7, 31, 30, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background-color var(--transition-base), box-shadow var(--transition-base), height var(--transition-fast);
}

.site-header.scrolled {
  background-color: rgba(7, 31, 30, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(197, 168, 128, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Logo */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-title span {
  color: var(--gold-light);
}

.brand-location-tag {
  font-size: clamp(0.625rem, 1.5vw, 0.6875rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 500;
  white-space: nowrap;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 20px);
}

.nav-link {
  color: var(--text-light-muted);
  font-size: clamp(0.8125rem, 0.95vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--gold-primary);
  transition: width var(--transition-fast);
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-action-btn {
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(197, 168, 128, 0.2);
  background-color: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}

.header-action-btn:hover {
  background-color: var(--gold-subtle);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--gold-primary);
  color: var(--bg-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--gold-gradient);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: var(--shadow-gold);
  white-space: nowrap;
}

.header-cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 168, 128, 0.35);
}

.mobile-menu-toggle {
  display: none;
  color: var(--text-light);
  font-size: 1.5rem;
  padding: 6px;
  border-radius: 4px;
}

/* Sections Common Structure */
section {
  position: relative;
  width: 100%;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-green {
  background: radial-gradient(circle at 50% 10%, #104443 0%, #071f1e 100%);
  color: var(--text-light);
}

.section-cream {
  background-color: var(--bg-cream);
  color: var(--text-dark);
}

.section-soft {
  background-color: var(--bg-cream-soft);
  color: var(--text-dark);
}

.section-py {
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(48px, 7vw, 84px);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 52px) auto;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-kicker::before, .section-kicker::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: var(--gold-primary);
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  color: inherit;
  margin-bottom: 14px;
}

.section-desc {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  color: var(--text-dark-muted);
  line-height: 1.7;
}

.section-dark .section-desc, .section-green .section-desc {
  color: var(--text-light-muted);
}

/* Luxury Divider */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px auto;
  max-width: 200px;
}

.gold-divider::before, .gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.gold-diamond {
  width: 6px;
  height: 6px;
  background-color: var(--gold-primary);
  transform: rotate(45deg);
}

/* Section Spacing Utilities */
.section-py {
  padding: var(--section-py) 0;
}

.section-py-sm {
  padding: var(--section-py-sm) 0;
}

.section-cream {
  background-color: var(--bg-cream);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-white {
  background-color: var(--bg-white);
}

/* Buttons System - Unified Design System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-height, 44px);
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--btn-radius, 6px);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-primary,
.btn-gold {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  border: 1px solid var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-gold:hover {
  background: #d6b78d;
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary,
.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--gold-primary);
}

.btn-secondary:hover,
.btn-outline-gold:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--text-dark);
}

.btn-outline-dark:hover {
  background: var(--bg-dark);
  color: var(--gold-light);
  border-color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  border: 1px solid #20ba5a;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}

.btn-dark:hover {
  background-color: var(--bg-dark-accent);
  color: #ffffff;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: var(--btn-height-sm, 36px);
  padding: 7px 14px;
  font-size: 0.75rem;
}

.btn-lg {
  min-height: var(--btn-height-lg, 50px);
  padding: 14px 28px;
  font-size: 0.9375rem;
}

.btn-full {
  width: 100%;
}

/* Footer System */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-top: 1px solid var(--gold-border);
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: 30px;
}

.footer-top,
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3.5vw, 44px);
  margin-bottom: 44px;
  align-items: start;
}

.footer-brand,
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--gold-primary);
  flex-shrink: 0;
}

.footer-desc {
  color: var(--text-light-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 360px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-contact-item svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 1.5px;
  background-color: var(--gold-primary);
}

.footer-links,
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: var(--text-light-muted);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-newsletter p {
  color: var(--text-light-muted);
  font-size: 0.8125rem;
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 168, 128, 0.3);
  border-radius: 4px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 0.8125rem;
  min-width: 0;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px var(--gold-subtle);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8125rem;
  color: var(--text-light-subtle);
}

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

.admin-portal-link {
  color: var(--gold-primary);
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.admin-portal-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Mobile Bottom Action Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(7, 31, 30, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--gold-border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) 16px;
  z-index: 99;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}

.mobile-sticky-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-sticky-btn {
  flex: 1;
  padding: 12px;
  font-size: 0.875rem;
}

.mobile-sticky-cart {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  background-color: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

/* Payment Options in Checkout */
.checkout-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-payment-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dcd5c9;
  border-radius: 8px;
  cursor: pointer;
  background: #ffffff;
  transition: all var(--transition-fast);
}

.checkout-payment-card.selected {
  border-color: var(--gold-primary);
  background-color: var(--gold-subtle);
  box-shadow: 0 0 0 2px var(--gold-subtle);
}

.checkout-payment-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--gold-dark);
}

.payment-card-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.payment-card-desc {
  font-size: 0.6875rem;
  color: var(--text-dark-muted);
  line-height: 1.4;
}

/* ==========================================================
   BREAKPOINTS: LAPTOPS, TABLETS, PHONES (FRAMING FIXES)
   ========================================================== */

/* Laptops & Desktops (1025px to 1280px) */
@media (max-width: 1280px) {
  .main-nav {
    gap: clamp(10px, 1.4vw, 18px);
  }

  .nav-link {
    font-size: 0.8125rem;
  }

  .header-cta-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}

/* Tablets (Portrait & Landscape: 768px to 1120px) */
@media (max-width: 1120px) {
  .site-header {
    height: var(--header-height-mobile);
  }

  .announcement-bar .contact-quick {
    display: none;
  }
  
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-cta-btn {
    display: none;
  }

  .mobile-sticky-bar {
    display: block;
  }

  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }

  .footer-top,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Phones & Compact Screens (< 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .announcement-bar {
    font-size: 0.75rem;
    padding: 6px 0;
  }

  .announcement-bar .bar-content {
    justify-content: center;
    text-align: center;
    gap: 0;
  }

  .announcement-bar .bar-content span:nth-child(n+2) {
    display: none;
  }

  .header-inner {
    gap: 8px;
    justify-content: space-between;
  }

  .brand-logo-link {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  .brand-location-tag {
    display: none;
  }

  .brand-title {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .mobile-menu-toggle {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .header-action-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .footer-top,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* Small Phones (< 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .announcement-bar {
    font-size: 0.71875rem;
    padding: 5px 0;
  }

  .brand-title {
    font-size: 0.875rem;
    letter-spacing: 0.03em;
  }

  .btn-lg {
    padding: 12px 18px;
    font-size: 0.875rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .checkout-payment-grid {
    grid-template-columns: 1fr;
  }
}
