/* ============================================================
   FORM FIELD NORMALISATION (SHARED COMPONENT)
   ============================================================ */

select,
input[type="number"] {
  width: 250px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  outline: none;
  height: 44px;
  line-height: 1.3;
  box-sizing: border-box;
  border-radius: 0.5rem;
  border: 2px solid rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  color: #09131f;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Custom select arrow */
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #09131f 50%),
    linear-gradient(135deg, #09131f 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

[data-theme='dark'] select,
[data-theme='dark'] input[type="number"] {
  background-color: #12327a;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme='dark'] select option {
  background-color: #12327a;
  color: #f0f8ff;
}

/* ============================================================
   TYPOGRAPHY (SHARED COMPONENTS)
   ============================================================ */

label {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.dress-title {
  font-size: var(--dress-title-size, 1.8rem);
}

/* ============================================================
   LAYOUT (BELOW THE FOLD)
   ============================================================ */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.product-inner > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.shop-page footer {
  position: relative !important;
}

/* ============================================================
   FOOTER (BELOW THE FOLD)
   ============================================================ */

footer {
  margin-top: 50px;
  text-align: center;
  position: relative !important;
  bottom: 0;
  width: 100%;
  padding: .5rem;
  font-size: 0.7rem;
  color: var(--text-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

footer a {
  transition: color 0.3s ease;
  text-decoration: none;
  color: var(--text-color);
  footer a:hover { opacity: 0.8; }


[data-theme='light'] footer a {
  color: #99003f;
}

[data-theme='dark'] footer a {
  color: var(--primary);
}

/* ============================================================
   SHARED COMPONENTS (MUST EXIST IN BOTH CRITICAL + EXTERNAL)
   ============================================================ */

.product-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0.75rem;
}

.product-variation,
.quantity {
  width: 100%;
  max-width: 260px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.display-price {
  display: block;
  margin: 1rem auto 0.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.purchase-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.unified-btn {
  display: inline-block;
  width: 250px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.unified-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ccc;
  background-size: cover;
  background-position: center;
}

.swatch[data-colour="Black"] { background-color: #000; }
.swatch[data-colour="Red"] { background-color: #c00; }
.swatch[data-colour="White"] { background-color: #fff; border: 2px solid #999; }
.swatch[data-colour="Yellow"] { background-color: #ff0; }
.swatch[data-colour="Green"] { background-color: #0a0; }

/* ============================================================
   PAGE-SPECIFIC COMPONENTS (BELOW THE FOLD)
   ============================================================ */

.product-description {
  margin-top: 1rem;
  font-style: italic;
}

.product-long-description {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 1rem;
  background: var(--section-bg-light);
  border-radius: 0.75rem;
  line-height: 1.6;
  font-size: 1rem;
}

.section-heading {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

#testimonials-section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 1rem;
  background: var(--section-bg);
  border-radius: 1rem;
}

#testimonials-section h2 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1.5rem;
}

#testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.testimonial-card {
 background: var(--section-bg);

border: .1px solid var(--section-bg-light);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, opacity 0.3s ease; opacity: 0; transform: translateY(10px); animation: fadeIn 0.5s forwards; }


.testimonial-card p {
  font-style: italic;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.testimonial-card strong {
  display: block;
  text-align: right;
 color: var(--text-color);
}
.testimonial .quote-icon { color: var(--accent); }

#load-more-testimonials {
  display: block;
  margin: 2rem auto 0;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: #006400;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer; 
  transition: 0.3s ease;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

#contact-us {
  background: var(--section-bg);
  padding: 2.5rem 1rem;
  border-top: 4px solid var(--primary);
  margin-top: 3rem;
}

/* ============================================================
   GDPR BANNER
   ============================================================ */

#gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px 20px;
  background: var(--section-bg);
  color: var(--text-color);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 -3px 8px rgba(0,0,0,0.15);
  border-top: 2px solid var(--primary);
  transition: background 0.3s ease, color 0.3s ease;
}

#gdpr-banner p {
  margin: 0 0 12px 0;
  max-width: 900px;
  line-height: 1.5;
  text-align: center;
}

#gdpr-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

#gdpr-buttons button {
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  transition: 0.3s ease;
  background: var(--btn-light-bg);
  color: var(--btn-light-text);
}

[data-theme="dark"] #gdpr-banner {
  background: var(--section-bg);
  color: var(--text-color);
  border-top-color: var(--primary);
}

[data-theme="dark"] #gdpr-buttons button {
  background: var(--btn-dark-bg-light);
  color: var(--btn-dark-text);
}


/* ============================================================
   VIDEO SECTION
   ============================================================ */

.video-header,
.header-video,
.top-video-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

#grabzies-video {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

#grabzies-video::-webkit-media-controls-enclosure {
  min-height: 32px;
}

/* ============================================================
   HEADER LOGO (BELOW THE FOLD)
   ============================================================ */

#header-logo {
  position: absolute;
  bottom: var(--header-logo-bottom);
  right: var(--header-logo-right);
  width: var(--header-logo-width);
  max-width: var(--header-logo-max-width);
  cursor: pointer;
  z-index: 20;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

#header-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

@media (max-width: 1024px) and (min-width: 769px) {
  :root {
    --header-logo-bottom: 4%;
    --header-logo-right: 4%;
    --header-logo-width: 18%;
    --header-logo-max-width: 110px;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  :root {
    --header-logo-bottom: 3.5%;
    --header-logo-right: 3.5%;
    --header-logo-width: 25%;
    --header-logo-max-width: 90px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-logo-bottom: 3%;
    --header-logo-right: 3%;
    --header-logo-width: 30%;
    --header-logo-max-width: 70px;
  }
}

body.index-page #header-logo {
  width: 10%;
  max-width: 75px;
  bottom: 25%;
  right: 5%;
  transition: transform 0.3s ease;
}

body.index-page #header-logo:hover {
  transform: scale(1.03);
}

/* ============================================================
   GLOBAL IMAGES
   ============================================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.responsive-image-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.grabzies-variant-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 1rem;
  display: block;
}

.grabzies-variant-image img {
  object-fit: contain;
  width: 100%;
  height: auto;
}

/* ============================================================
   ANIMATIONS + UTILITIES
   ============================================================ */

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1.page-title,
.main-title,
.shop-title {
  margin-top: 10px !important;
}

#dress-quantity {
  width: 25% !important;
  max-width: 80px;
  margin: 0 auto !important;
  display: block;
  text-align: center;
}
