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

/* ============================================
   PREVENT HORIZONTAL SCROLLING (Like Amazon)
   ============================================ */
html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Prevent any child elements from breaking out */
body > * {
  max-width: 100%;
  overflow-x: hidden;
}

/* Container constraint */
.container,
header,
nav,
section,
footer {
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --primary: #2c4a5c;
  --accent: #e07856;
  --text: #333;
  --bg: #f8f9fa;
  --white: #ffffff;
}

.arabic-text {
  font-family: 'Almarai', sans-serif;
  direction: rtl;
  display: block;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 7.18px; /* 10.72px × 0.67 to match 67% zoom appearance */
}

/* Chrome font will be set to 15.41px via JavaScript at page load */
/* Edge stays at default 10.72px */


header {
  background: var(--white);
  box-shadow: 0 2px 5.36px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

nav {
  max-width: 1400px;
  margin: auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  width: 71.82px; /* 107.2px × 0.67 */
  height: 71.82px;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.34rem;
  z-index: 1001;
}

.hamburger span {
  width: 16.75px;
  height: 2.01px;
  background: var(--primary);
  margin: 2.01px 0;
  transition: 0.3s;
  border-radius: 2.01px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-3.35px, 4.02px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-3.35px, -4.02px);
}

.search-container {
  flex: 2;
  max-width: 550px;
  display: flex;
  margin: 0 2rem;
}

.search-input {
  flex: 1;
  padding: 0.67rem 1.01rem;
  border: 2px solid #ddd;
  border-radius: 18.76px 0 0 18.76px;
  font-size: 0.9rem; /* Increased for readability */
}

.search-btn {
  padding: 0.67rem 1.34rem;
  border-radius: 0 18.76px 18.76px 0;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.94rem;
}

.nav-links {
  flex: 1;
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
  justify-content: space-around;
}
  align-items: center;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.77rem; /* Increased from 0.74rem */
  text-align: center;
  line-height: 1.4;
}

.nav-links a .arabic-text {
  font-size: 0.64rem;
  color: #666;
  margin-top: 2px;
}

.nav-links a:hover,
.nav-links a:hover .arabic-text {
  color: var(--accent);
}

.cart-icon {
  position: relative;
  font-size: 1.5rem; /* Reduced from 2rem */
  cursor: pointer;
}

.mobile-cart-icon {
  display: none;
  position: relative;
  font-size: 1.3rem; /* Reduced from 1.8rem */
  cursor: pointer;
  order: 3;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: white;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.hero {
  background: linear-gradient(135deg, var(--primary), #3a5f75);
  color: #fff;
  padding: 1rem 1.34rem 1rem 1.34rem; /* Top reduced to 1rem (50% of 2rem) */
  text-align: center;
  transition: display 0.3s;
}

.hero.hidden {
  display: none;
}

.hero h1 {
  font-size: 1.84rem;
  margin-bottom: 0.1rem; /* Reduced from 0.2rem (50% reduction) */
  font-weight: 700;
  line-height: 1.2;
}

.hero-arabic {
  font-size: 1.84rem;
  margin-bottom: 1.3rem; /* Increased to match arabic-desc → badges spacing */
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 0.77rem;
  opacity: .95;
  max-width: 536.0px;
  margin: 0 auto 0.15rem; /* Small gap like trust badge internal spacing */
  line-height: 1.4;
}

.hero p.arabic-text {
  font-size: 0.74rem;
  margin-bottom: 0.15rem; /* Reduced to match other small gaps */
  line-height: 1.4;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 1rem auto 1.3rem; /* Bottom increased to match top spacing */
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  color: white;
  opacity: 0.95;
  font-size: 0.67rem; /* Reduced from 0.77rem */
  font-weight: 500;
}

.badge-icon {
  color: #4ade80;
  font-weight: bold;
  font-size: 0.94rem;
}

.badge-text {
  font-weight: 500;
}

.hero .btn {
  background: var(--accent);
  padding: 0.77rem 2.01rem;
  border-radius: 5.36px;
  color: white;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  font-size: 0.7rem;
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1.3;
}

.hero .btn .btn-arabic {
  font-size: 0.67rem; /* Reduced from 0.74rem */
  margin-top: 2.68px;
}

.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4.02px 13.4px rgba(224, 120, 86, 0.4);
}

.container {
  max-width: 1234px; /* Increased to fit 5 products per row */
  margin: auto;
  padding: 2.35rem 1.68rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1.68rem;
  color: var(--primary);
  font-size: 1.68rem;
  font-weight: 700;
  line-height: 1.4;
}

.section-arabic {
  font-size: 1.47rem;
  color: #555;
  margin-top: 0.34rem;
}

.arabic-inline {
  font-family: 'Almarai', sans-serif;
  font-size: 1.47rem;
  color: #555;
  margin-left: 1.01rem;
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 0.84rem;
  margin-bottom: 2.01rem;
  flex-wrap: wrap;
}

.category-btn {
  padding: 0.5rem 1.34rem;
  border-radius: 18.76px;
  border: 2px solid var(--primary);
  background: white;
  cursor: pointer;
  font-size: 0.74rem; /* Increased from 0.7rem */
  font-weight: 500;
  transition: all 0.3s;
}

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

.category-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.category-arabic {
  font-size: 0.6rem;
  margin-top: 2.01px;
  display: block;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214.4px, 214.4px)); /* Fixed box size */
  gap: 1.68rem;
  max-width: 1180px; /* Fits exactly 5 products + gaps */
  margin: 0 auto;
  justify-content: center;
}

.product-card {
  background: white;
  border-radius: 8.04px;
  box-shadow: 0 2.68px 8.04px rgba(0,0,0,.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-3.35px);
  box-shadow: 0 5.36px 13.4px rgba(0,0,0,.15);
}

.badge {
  position: absolute;
  top: 10.05px;
  right: 10.05px;
  background: var(--accent);
  color: white;
  padding: 0.34rem 0.84rem;
  border-radius: 13.4px;
  font-size: 0.6rem;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
}

.product-image {
  height: 174.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.02rem;
  background: #f5f5f5;
}

.product-info {
  padding: 1.34rem;
}

.product-info small {
  color: #888;
  font-size: 0.64rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-title {
  font-weight: 600;
  color: var(--primary);
  margin: 0.67rem 0 0.5rem;
  font-size: 1.01rem;
  height: 2.8rem; /* Fixed height for 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.product-info p {
  font-size: 0.77rem;
  color: #666;
  margin-bottom: 0.84rem;
  line-height: 1.5;
  height: 2.3rem; /* Fixed height for 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  color: var(--accent);
  font-weight: bold;
  margin: 0.67rem 0;
  font-size: 1.27rem; /* Increased from 1.17rem */
}

.add-to-cart {
  width: 100%;
  padding: 0.67rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4.02px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.77rem; /* Increased from 0.74rem */
  transition: background 0.3s;
}

.add-to-cart:hover {
  background: #1e3545;
}

.about-section {
  background: white;
  padding: 2.68rem 0;
}

.about-section p {
  text-align: center;
  max-width: 603.0px;
  margin: 0 auto 0.67rem;
  color: #555;
  font-size: 0.8rem;
  line-height: 1.8;
}

.about-section p.arabic-text {
  font-size: 0.77rem;
  color: #666;
  margin-bottom: 1.68rem;
  padding-top: 0.34rem;
  font-weight: 500;
}

.contact-section {
  background: var(--bg);
  padding: 0;
}

.contact-container {
  max-width: 1234px;
  margin: 2.35rem auto 1.18rem auto; /* Half of 2.35rem for bottom */
  padding: 0 1.68rem;
}

.contact-box {
  background: white;
  padding: 2.01rem;
  border-radius: 8.04px;
  box-shadow: 0 2.68px 8.04px rgba(0,0,0,.08);
  max-width: 1180px; /* Match products-grid width exactly */
  margin: 0 auto;
}

.contact-text-row {
  text-align: center;
  margin-bottom: 1.68rem;
  padding-bottom: 1.34rem;
  border-bottom: 2px solid #e0e0e0;
}

.contact-text-en {
  font-size: 0.84rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.67rem;
}

.contact-text-ar {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.7;
  font-family: 'Almarai', sans-serif;
  direction: rtl;
}

.contact-details-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.01rem;
  max-width: 804.0px;
  margin: 0 auto;
}

.contact-detail {
  text-align: center;
  font-size: 0.77rem;
}

.contact-detail strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.contact-detail a {
  color: #e07856;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.77rem;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.terms-section {
  background: #f8f9fa;
  padding: 1.17rem 0 2.68rem 0; /* Top 1.17rem + contact bottom 1.18rem = 2.35rem total */
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.01rem;
  margin-top: 1.68rem;
  max-width: 1180px; /* Match products-grid width */
  margin-left: auto;
  margin-right: auto;
}

.term-card {
  background: white;
  padding: 1.17rem;
  border-radius: 6.7px;
  box-shadow: 0 2.01px 6.7px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.term-card:hover {
  transform: translateY(-2.01px);
  box-shadow: 0 4.02px 13.4px rgba(0,0,0,.12);
}

.term-card h3 {
  margin-bottom: 0.34rem;
  line-height: 1.6;
}

.term-card h3 .term-title {
  color: var(--primary);
  font-size: 0.77rem;
  transition: color 0.3s;
}

.term-card h3 .term-title-ar {
  font-size: 0.7rem;
  color: #666;
  margin-top: 2.68px;
  transition: color 0.3s;
}

.term-card:hover h3 .term-title,
.term-card:hover h3 .term-title-ar {
  color: var(--accent);
}

.term-card p {
  color: #666;
  font-size: 0.64rem;
  line-height: 1.5;
  margin-bottom: 0.34rem;
}

.term-card p.arabic-text {
  font-size: 0.6rem;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100vh;
  background: white;
  z-index: 5000;
  box-shadow: -2px 0 13.4px rgba(0,0,0,.3);
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

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

.cart-header {
  background: var(--primary);
  color: white;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.2rem; /* Keep normal, not increased */
}

.close-cart {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 30.15px;
  height: 30.15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  padding-bottom: 0.5rem;
}

.cart-footer {
  border-top: 2px solid #eee;
  padding: 1rem;
  background: #f8f9fa;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.34rem;
  color: var(--primary);
}

.checkout-btn {
  width: 100%;
  padding: 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 5.36px;
  font-size: 0.77rem; /* Slightly smaller than before */
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 0.5rem;
}

.checkout-btn:last-child {
  margin-bottom: 0;
}

.checkout-btn:hover {
  background: #c96644;
}

.checkout-btn.stripe-btn {
  background: #635bff;
}

.checkout-btn.stripe-btn:hover {
  background: #5046e5;
}

.checkout-btn.whatsapp-btn {
  background: #25d366;
}

.checkout-btn.whatsapp-btn:hover {
  background: #1da851;
}

.checkout-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

#policyModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 6000;
  overflow-y: auto;
  padding: 1.34rem;
}

.policy-box {
  background: #fff;
  color: #000;
  max-width: 603.0px;
  margin: 5% auto;
  padding: 2.35rem;
  border-radius: 8.04px;
  box-shadow: 0 6.7px 33.5px rgba(0,0,0,.4);
}

.policy-box h2 {
  color: var(--primary);
  margin-bottom: 1.34rem;
  font-size: 1.51rem;
}

.policy-box h2.arabic-heading {
  font-family: 'Almarai', sans-serif;
  direction: rtl;
  text-align: right;
  font-size: 1.34rem;
  color: #555;
  margin-top: 0.34rem;
}

.policy-box p {
  margin-bottom: 1.01rem;
  line-height: 1.8;
  font-size: 0.74rem;
}

.policy-box p.arabic-text {
  font-family: 'Almarai', sans-serif;
  direction: rtl;
  text-align: right;
  font-size: 0.7rem;
  color: #666;
}

.policy-box ul {
  margin-left: 1.68rem;
  margin-bottom: 1.01rem;
}

.policy-box li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  font-size: 0.7rem;
}

.policy-box strong {
  color: var(--accent);
}

footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 1.34rem 1.34rem;
}

footer p {
  font-size: 0.7rem;
  margin: 0.17rem 0;
}

.footer-subtitle {
  font-size: 0.67rem;
  opacity: 0.85;
}

@media (max-width: 804.0px) {
  .terms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 686.08px) {
  .hero h1 {
    font-size: 1.68rem;
  }
  
  .hero-arabic {
    font-size: 1.68rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(187.6px, 1fr));
  }
}

@media (max-width: 514.56px) {
  nav {
    padding: 0.67rem 0.67rem;
    position: relative;
  }

  .logo-img {
    width: 53.6px;
    height: 53.6px;
  }

  .hamburger {
    display: flex;
    order: 2;
  }

  .mobile-cart-icon {
    display: flex;
    order: 3;
  }

  .search-container {
    width: 100%;
    order: 4;
    margin-top: 0.67rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 201.0px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 3.35rem 1.34rem 1.34rem;
    box-shadow: -2px 0 6.7px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 999;
    gap: 1.01rem;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 0.5rem 0;
    display: block;
  }

  .hero h1 {
    font-size: 1.34rem;
  }

  .hero-arabic {
    font-size: 1.34rem;
  }

  .hero p {
    font-size: 0.7rem;
  }

  .trust-badges {
    gap: 0.67rem;
    flex-direction: column;
    align-items: center;
  }
  
  .trust-badge {
    font-size: 0.6rem;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .cart-footer {
    padding: 1.5rem;
  }

  .terms-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.34rem;
  }

  .container {
    padding: 1.68rem 1.01rem;
  }

  .section-title {
    font-size: 1.17rem;
  }
  
  .section-arabic, .arabic-inline {
    font-size: 1.01rem;
  }

  .contact-container {
    margin: 1.68rem auto;
    padding: 0 1.01rem;
  }

  .contact-box {
    padding: 1.68rem 1.01rem;
  }

  .contact-details-row {
    grid-template-columns: 1fr;
    gap: 1.34rem;
  }

  .contact-text-en {
    font-size: 0.74rem;
  }

  .contact-text-ar {
    font-size: 0.7rem;
  }

  footer {
    padding: 1.01rem 0.67rem;
  }

  footer p {
    font-size: 0.64rem;
  }
}

/* Product Detail Page Styles */
.product-page-container {
  max-width: 1120px; /* 1400 * 0.8 */
  margin: 1.6rem auto; /* 2rem * 0.8 */
  padding: 0 1.6rem; /* 2rem * 0.8 */
}

.back-link {
  display: inline-block;
  margin-bottom: 1.2rem; /* 1.5rem * 0.8 */
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem; /* 1.1rem * 0.8 */
}

.back-link:hover {
  text-decoration: underline;
}

.product-page {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 2rem; /* 2.5rem * 0.8 */
  margin-bottom: 2.4rem; /* 3rem * 0.8 */
}

.product-gallery img {
  width: 100%;
  max-width: 320px; /* 400px * 0.8 */
  border: 1px solid #eee;
  border-radius: 6.4px; /* 8px * 0.8 */
  margin-bottom: 0.8rem; /* 1rem * 0.8 */
  padding: 1.6rem; /* 2rem * 0.8 */
  background: #f9f9f9;
}

.product-details h1 {
  font-size: 1.44rem; /* 1.8rem * 0.8 */
  color: var(--primary);
  margin-bottom: 0.4rem; /* 0.5rem * 0.8 */
}

.product-category {
  color: #666;
  font-size: 0.72rem; /* 0.9rem * 0.8 */
  margin-bottom: 1.2rem; /* 1.5rem * 0.8 */
  text-transform: uppercase;
  letter-spacing: 0.4px; /* 0.5px * 0.8 */
}

.product-details p {
  line-height: 1.6;
  color: #333;
  font-size: 0.8rem; /* 1rem * 0.8 */
}

.product-buybox {
  border: 1px solid #ddd;
  border-radius: 6.4px; /* 8px * 0.8 */
  padding: 1.6rem; /* 2rem * 0.8 */
  height: fit-content;
  position: sticky;
  top: 80px; /* 100px * 0.8 */
  background: white;
}

.product-buybox .price {
  font-size: 1.6rem; /* 2rem * 0.8 */
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.2rem; /* 1.5rem * 0.8 */
}

.add-to-cart-btn {
  width: 100%;
  padding: 0.8rem; /* 1rem * 0.8 */
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4.8px; /* 6px * 0.8 */
  font-size: 0.8rem; /* 1rem * 0.8 */
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 1.2rem; /* 1.5rem * 0.8 */
}

.add-to-cart-btn:hover {
  background: #1f3644;
}

.delivery-info {
  border-top: 1px solid #eee;
  padding-top: 0.8rem; /* 1rem * 0.8 */
}

.delivery-info p {
  font-size: 0.72rem; /* 0.9rem * 0.8 */
  color: #666;
  margin: 0.4rem 0; /* 0.5rem * 0.8 */
}

/* Mobile responsiveness */
@media (max-width: 968px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 1.2rem; /* 1.5rem * 0.8 */
  }
  
  .product-buybox {
    position: static;
  }
}

/* Amazon-Style Image Gallery */
.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.main-image-container {
  position: relative;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6.4px;
  padding: 1.6rem;
  text-align: center;
}

.main-product-image {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
  font-size: 64px;
  transition: transform 0.3s;
}

.main-product-image:hover {
  transform: scale(1.05);
}

.zoom-hint {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.32rem 0.64rem;
  border-radius: 3.2px;
  font-size: 0.56rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.main-image-container:hover .zoom-hint {
  opacity: 1;
}

.thumbnail-strip {
  display: flex;
  gap: 0.64rem;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnail {
  width: 56px;
  height: 56px;
  border: 2px solid #ddd;
  border-radius: 4px;
  padding: 0.4rem;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  background: #fff;
}

.thumbnail:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail.active {
  border-color: var(--accent);
  border-width: 2.4px;
  box-shadow: 0 0 8px rgba(224,120,86,0.3);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s;
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
  font-size: 160px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--accent);
}
