/* Fonts loaded in HTML head for better performance */

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

body {
  background-color: #1a1a1a; /* Dark background for the whole PWA container */
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Base Screen wrapper */
.screen {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #fff;
  overflow-x: hidden;
}

/* --------- HOME SCREEN --------- */
#home-screen {
  background-color: #1a1a1a;
  color: #fff;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px 20px 20px;
}

.brand-header {
  text-align: center;
  margin-top: 0px;
  margin-bottom: 10px;
}
.brand-logo {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 0 auto;
}
.brand-header p {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 0px;
  margin-bottom: 0;
}

/* Features Section */
.features-container {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px 15px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 380px;
  display: flex;
  gap: 15px;
  overflow-x: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  scroll-snap-type: x mandatory;
}

.features-container::-webkit-scrollbar {
  display: none;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto;
  width: 110px;
  scroll-snap-align: start;
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #eef2ed; /* Match verdora soft green */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #435e4d; /* Match verdora dark green */
}

.feature-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.feature-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.2;
}

.feature-item p {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #777;
  line-height: 1.2;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.search-container {
  display: flex;
  gap: 10px;
  width: 90%;
  max-width: 800px;
  margin-bottom: 20px;
  height: 48px;
}
.search-container input {
  flex: 1;
  height: 100%;
  padding: 0 15px;
  border-radius: 8px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.search-container button {
  height: 100%;
  padding: 0 20px;
  border-radius: 8px;
  border: none;
  background-color: #fff;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}

.categories-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 95%;
  max-width: 1000px;
}

.category-card {
  position: relative;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
  transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:active {
  transform: scale(0.98);
}
.category-card span {
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.img-card {
  height: auto;
  border: none;
  background: transparent;
}
.img-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

/* --------- HERO CAROUSEL --------- */
.hero-carousel-wrapper {
  width: 100%;
  max-width: 380px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}
.hero-kid-container {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.hero-kid-img {
  width: 100%;
  height: auto;
  display: block;
}
.smartphone-screen {
  position: absolute;
  /* TO ADJUST THE CAROUSEL POSITION ON THE SMARTPHONE SCREEN: 
     Modify these values below (top, left, width, height) */
  top: 30%; 
  left: 20%;
  width: 48%;
  height: 40%;
  overflow: hidden;
  border-radius: 4px; /* Adjust to match the phone's screen corner radius */
  background: #000; /* Placeholder black screen if no products */
  transform: perspective(600px) rotateY(-5deg) rotateX(5deg); /* Optional 3D tilt if the phone is tilted */
}
.smartphone-carousel-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: scrollSmartphone 12s linear infinite;
}
.smartphone-card {
  width: 90px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #ddd;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}
.smartphone-card img {
  width: 100%;
  height: 60%;
  object-fit: cover;
}
.smartphone-card-info {
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}
.smartphone-card-title {
  font-size: 9px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.smartphone-card-price {
  font-size: 10px;
  font-weight: 800;
  color: #152542;
}

@keyframes scrollSmartphone {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------- PRODUCT SCREEN --------- */

/* Top Navigation Header */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 20;
}
.back-btn {
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #152542;
  cursor: pointer;
}
.counter {
  font-size: 14px;
  font-weight: 700;
  color: #888;
}
.share-btn {
  background: none;
  border: none;
  color: #152542;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery Section */
.gallery-section {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #9a9ca3; /* The grey studio background */
}

.main-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Thumbnail Strip */
.thumbnail-strip {
  display: flex;
  width: 100%;
  border-top: 2px solid #fff;
  background-color: #9a9ca3;
}

.thumb-item {
  flex: 1;
  border-right: 2px solid #fff;
  cursor: pointer;
  display: flex;
}
.thumb-item:last-child {
  border-right: none;
}
.thumb-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Swipe Hint */
.swipe-hint {
  text-align: center;
  padding: 10px;
  background-color: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Bottom Product Details Section */
.bottom-section {
  padding: 25px 25px 35px;
  background-color: #ffffff;
  flex: 1;
}

.product-info {
  width: 100%;
  margin-bottom: 25px;
  text-align: left;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-header strong {
  color: #111;
  font-size: 16px;
}

.mrp strong {
  font-size: 24px;
  color: #152542;
  letter-spacing: 0;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #222;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.sizes {
  display: flex;
  align-items: center;
  gap: 12px;
}

.size-label {
  font-size: 12px;
  font-weight: 700;
  color: #444;
  letter-spacing: 0.5px;
}

.size-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  width: 34px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #333;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  background: transparent;
}
