:root {
  --primary-color: #0a4b78;
  --secondary-color: #1e88e5;
  --accent-color: #ffcc00;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-color: #333333;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 300;
}

/* HEADER */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px 20px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#main-header.visible {
  opacity: 1;
  transform: translateY(0);
}

#main-header.animate-in {
  animation: slideDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#main-header h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
}

#main-header p {
  font-size: 0.9rem;
  margin: 5px 0 0;
  color: var(--text-color);
  font-weight: 300;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 10px;
  transition: var(--transition);
}

.hamburger:hover {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
}

.nav-menu.active {
  display: flex;
}

.brand h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.brand p {
  font-size: 0.9rem;
  margin: 5px 0 0;
  color: var(--text-color);
  font-weight: 300;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-color);
}

section {
  padding: 120px 20px;
  margin-bottom: 80px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#hero {
  background: linear-gradient(rgba(10, 75, 120, 0.7), rgba(10, 75, 120, 0.7)), url('assets/cover.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 120px 20px;
  border-radius: 0;
  margin-bottom: 100px;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#hero p {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 30px;
}

.cta-btn {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 15px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: width 0.6s, height 0.6s;
  transform: translate(-50%, -50%);
}

.cta-btn:active::before {
  width: 300px;
  height: 300px;
}

.cta-btn:hover {
  background: #1565c0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

/* CAROUSEL */
#carousel {
  padding: 100px 10;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.carousel-slide {
  position: relative;
  width: 100%;
  height: 800px;
}

.carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide img.active {
  opacity: 1;
}

.carousel-btn {
  display: none;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots .dot.active {
  background: var(--primary-color);
}

h2 {
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
}

#why-choose {
  text-align: center;
}

.benefits {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.benefits li {
  padding: 10px 0;
  font-size: 1.1rem;
  color: var(--text-color);
  border-bottom: 1px solid #eee;
}

.benefits li:last-child {
  border-bottom: none;
}

#testimonials {
  text-align: center;
  overflow: hidden;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  min-width: 100%;
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary-color);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 10px;
  color: var(--text-color);
}

.testimonial cite {
  font-weight: 700;
  color: var(--primary-color);
}


/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in li {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible li {
  opacity: 1;
  transform: translateX(0);
}

.fade-in li:nth-child(1) { transition-delay: 0.1s; }
.fade-in li:nth-child(2) { transition-delay: 0.2s; }
.fade-in li:nth-child(3) { transition-delay: 0.3s; }
.fade-in li:nth-child(4) { transition-delay: 0.4s; }


/* footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
  margin-top: 40px;
} */

footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  justify-content: center; /* center the content */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Columns */
.footer-left, .footer-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-left {
  align-items: flex-start;
}

.footer-left p {
  margin: 0;
  font-size: 1rem;
}

.footer-social {
  display: flex;
  align-items: center;
  margin-top: 4px;     /* space below text */
}

.footer-social a {
  color: var(--white);
  font-size: 1.5rem;
  transition: 0.3s ease;
  flex-shrink: 0;
}

.footer-social a:hover {
  transform: scale(1.2);
}

.footer-right {
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  margin: 5px 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.input-group {
  position: relative;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: 2px solid #e0e0e0;
  transition: var(--transition);
  background: transparent;
}

.input-group textarea {
  resize: vertical;
  min-height: 100px;
}

.input-group label {
  position: absolute;
  top: 15px;
  left: 15px;
  color: #999;
  transition: all 0.3s ease;
  pointer-events: none;
  background: var(--white);
  padding: 0 5px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group label.filled {
  top: -10px;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.input-group input:focus, .input-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(10, 75, 120, 0.1);
}

form button {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

form button:hover {
  background: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

form button.sending {
  pointer-events: none;
}

form button.sending::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* LOADING SCREEN */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading.hide {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-content p {
  margin: 0;
  font-weight: 300;
}

/* Floating Cart */
.floating-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 24px;
  z-index: 1001;
  transition: var(--transition);
}

.floating-cart:hover {
  transform: scale(1.1);
}

#cartBadge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

#checkout {
  padding: 120px 20px;
  margin-bottom: 80px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.delivery-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.order-summary, .delivery-form {
  background: var(--light-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.order-summary {
  text-align: left;
  font-family: 'Courier New', monospace;
  border: 2px solid #000;
  background: #fff;
  max-width: 300px;
}

.order-summary h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 1px solid #000;
  padding-bottom: 10px;
}

.order-summary p {
  margin: 10px 0;
}

.order-summary ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.order-summary li {
  padding: 5px 0;
  border-bottom: 1px dashed #000;
}

.delivery-form h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.delivery-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 1024px) {
  .delivery-layout {
    grid-template-columns: 400px 1fr;
    gap: 40px;
  }
}

#paymentInstructions {
  background: #f0f8ff;
  padding: 30px;
  border-radius: var(--border-radius);
  margin-top: 30px;
}

#paymentInstructions h3 {
  margin-top: 20px;
  color: var(--primary-color);
  font-weight: 700;
}

#paymentInstructions ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 10px;
}

#paymentInstructions ul li {
  margin-bottom: 10px;
  font-weight: 500;
}

#paymentInstructions input, #paymentInstructions button {
  margin-top: 15px;
  padding: 12px;
  font-size: 1rem;
  border-radius: var(--border-radius);
}

#paymentInstructions button {
  background: var(--secondary-color);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  color: var(--white);
}

#paymentInstructions button:hover {
  background: #1565c0;
  transform: translateY(-2px);
}

#retail {
  text-align: center;
}

.retail-content {
  display: flex;
  gap:30px;
  align-items: flex-start;
}

.products {
  flex: 2;
}

.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
}

.cart-summary {
  flex: 1;
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
  display: none;
}

.cart-summary h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 700;
}

#cartList {
  text-align: left;
  margin: 0;
  padding: 0;
  list-style: none;
}

#cartList li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

#emptyCart {
  text-align: center;
  color: #666;
  font-style: italic;
}

#cartTotal {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 20px 0;
  text-align: center;
}

#checkoutCart {
  display: none;

}

.product {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  max-width: 300px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.product::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.product:hover::before {
  left: 100%;
}

.product:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.product img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  background: var(--white);
}

.poncho-product img {
  height: 180px;
}

.product h3 {
  font-weight: 700;
  margin-bottom: 10px;
}

.product p {
  margin-bottom: 15px;
  font-weight: 500;
}

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.qty-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: #1565c0;
}

.product input {
  width: 60px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  text-align: center;
}

.product button {
  background: var(--secondary-color);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  color: var(--white);
}

.product button:hover {
  background: #1565c0;
  transform: translateY(-2px);
}

.size-selector, .color-selector, .print-selector {
  margin: 15px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.size-option, .color-option, .print-option {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 15px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.size-option:hover, .color-option:hover, .print-option:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.size-option input[type="radio"], .color-option input[type="radio"], .print-option input[type="radio"] {
  margin-right: 10px;
  accent-color: var(--primary-color);
}

.size-option span, .color-option span, .print-option span {
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.features {
  display: none;
  margin: 10px 0;
  font-size: 0.9rem;
}

.features-toggle {
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 600;
  margin: 10px 0;
  text-align: center;
}

.guide-toggle {
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 600;
  margin: 15px 0 10px;
  text-align: center;
}

.size-option input[type="radio"]:checked + span {
  font-weight: 700;
  color: var(--primary-color);
}

.price-display, .flag-price-display {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin: 15px 0;
  text-align: center;
  background: var(--light-bg);
  padding: 10px;
  border-radius: var(--border-radius);
  display: none;
}

.product .addToCart {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  font-size: 1.1rem;
}

.size-guide {
  margin-top: 20px;
  text-align: center;
}

.toggle-guide {
  background: var(--secondary-color);
  border: none;
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);

}


#cartList {
  text-align: left;
  max-width: 500px;
  margin: 20px auto;
}

#cartTotal {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 20px 0;
}

#checkoutCart {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 20px;
  display: none;
  margin-left: auto;
  margin-right: auto;
}

.remove-item {
  margin-left: 10px;
  background: none;
  color: #666;
  border: none;
  padding: 0;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.remove-item:hover {
  color: #333;
}

#checkoutCart:hover {
  background: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
  align-items: center;
  justify-content: center;
}

#checkout {
  display: none;
}

#gallery {
  text-align: center;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cap-item {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.cap-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cap-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  background: var(--white);
}

.cap-item h3 {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.cap-item p {
  font-size: 0.9rem;
  color: var(--primary-color);
}

#galleryModal .modal-content {
  max-width: 800px;
  text-align: center;
}

.modal-carousel {
  position: relative;
  display: inline-block;
}

#galleryModal img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  background: var(--white);
}

.modal-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.modal-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-dots .dot.active {
  background: var(--secondary-color);
}

#galleryModal h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

#galleryModal p {
  color: #666;
}

.quote-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.quote-info {
  text-align: center;
  max-width: 600px;
}

.quote-form {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 500px;
}

#contact {
  text-align: center;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info, .contact-form {
  text-align: left;
}

.contact-info h3, .contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-details p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.social-icon {
  font-size: 2em;
  margin: 0 10px;
  color: var(--primary-color);
  transition: var(--transition);
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.social-icon:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.social-links {
  margin-top: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input, .contact-form textarea {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(10, 75, 120, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover {
  background: #1565c0;
  transform: translateY(-2px);
}

.messenger-btn {
  display: inline-block;
  background: #0084ff;
  color: white;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 15px;
  transition: var(--transition);
  text-align: center;
}

.messenger-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* Modal */
.modal {
display: none;
position: fixed;
z-index: 10000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.7);
justify-content: center;
align-items: center;
}

.modal-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 400px;
  position: relative;
}

.modal-body {
  text-align: center;
}

.success-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.modal-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

#cartSummary {
  text-align: center;
  max-height: 400px;
  overflow-y: auto;
}

.close {
position: absolute;
top: 10px;
right: 15px;
font-size: 28px;
font-weight: bold;
cursor: pointer;
z-index: 10;
}

.close:hover {
color: var(--primary-color);
}

#cartList {
  text-align: center;
  max-width: 500px;
  margin: 20px auto;
}

#cartTotal {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 20px 0;
}

#checkoutCart {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 20px;
  display: none;
  margin-left: auto;
  margin-right: auto;
}

.remove-item {
  background: none !important;
  color: #666 !important;
}

.remove-item:hover {
  color: #333 !important;
}


/* Responsive */
@media (max-width: 768px) {
  #hero {
    padding: 100px 20px 60px;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  #hero p {
    font-size: 1.2rem;
  }

  section {
    padding: 30px 15px;
  }

  #carousel {
    padding: 20px;
  }

  .carousel-slide {
    height: 250px;
  }

  .carousel-slide img {
    height: 250px;
    object-fit: contain;
  }

  .product {
    width: 100%;
    margin: 10px 0;
  }

  .retail-content {
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
  }

  .cart-summary {
    position: static;
  }

  .carousel-slide {
    width: 100%;
  }

  .carousel-slide img {
    width: 100%;
  }

  .header-content {
    justify-content: space-between;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .nav-menu li {
    text-align: center;
    padding: 10px 0;
  }

  nav ul {
    gap: 20px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form, .quote-form {
    width: 100%;
    max-width: none;
  }

  .cta-btn {
    padding: 18px 35px;
    font-size: 1.2rem;
  }

  form button {
    padding: 16px;
    font-size: 1.1rem;
  }

  /* .product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-items: center;
    justify-content: center;
  } */
  .product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }


  .product {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
  }

  .modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
  }

  .modal-content p {
    margin-bottom: 20px;
    font-size: 1rem;
  }

  .modal-content button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
  }

  .modal-content button:hover {
    background: #1565c0;
    transform: translateY(-2px);
  }

  .remove-item {
    background: none !important;
    color: #666 !important;
  }

  .remove-item:hover {
    color: #333 !important;
  }

  footer div {
    flex-direction: column;
    align-items: center;
  }

.footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-left, .footer-right {
    align-items: center;
    text-align: center;
  }

  /* Make social icons wrap on one line if they fit */
  .footer-social {
    display: flex;
    flex-wrap: wrap;  /* allows them to wrap if needed */
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
  }

  .footer-social a {
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-item img {
    height: 200px;
    object-fit: cover;
    background: var(--white);
  }

  #galleryModal img {
    object-fit: cover;
  }

  .modal-dots .dot {
    width: 10px;
    height: 10px;
  }

  .carousel-btn {
    font-size: 1rem;
    padding: 8px;
  }

  #checkout {
    padding: 40px 25px;
  }

  #paymentInstructions {
    padding: 20px;
  }

  #paymentInstructions input[type="file"], #paymentInstructions button {
    width: 100%;
    box-sizing: border-box;
  }

  #paymentInstructions {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  #paymentInstructions input[type="file"] {
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: break-word;
  }

  #paymentInstructions ul li {
    word-break: break-word;
  }

  .product {
    padding: 15px;
  }

  .cap-item {
    padding: 15px;
  }

  .product img {
    height: 200px;
  }

  .cap-item img {
    height: 180px;
  }

  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .size-selector, .color-selector {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }

  .footer-social a {
    font-size: 0.8rem;
  }

  .footer-social {
    gap: 2px;
  }

  .footer-content {
    gap: 5px;
  }

  .footer-right p {
    font-size: 0.8rem;
  }

}

/* Extra small devices */
@media (max-width: 480px) {
  #checkout {
    padding: 30px 15px;
  }

  #hero h1 {
    font-size: 2rem;
  }

  #hero p {
    font-size: 1rem;
  }

  section {
    padding: 30px 20px;
  }

  #main-header h1 {
    font-size: 1.2rem;
  }

  #main-header p {
    font-size: 0.8rem;
  }

  nav ul {
    gap: 15px;
  }

  .carousel-slide {
    height: 200px;
  }

  .carousel-slide img {
    height: 200px;
    object-fit: contain;
  }

  form input, form textarea {
    padding: 10px;
    font-size: 0.9rem;
  }

  form button {
    padding: 12px;
    font-size: 1rem;
  }

  #paymentInstructions {
    padding: 10px;
  }

  #paymentInstructions h3 {
    font-size: 1.1rem;
  }

  #paymentInstructions ul li {
    font-size: 0.9rem;
  }

  .product img {
    height: 200px;
  }

  .cap-item img {
    height: 180px;
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }

}

/* Details styling */
details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  margin: 10px 0;
  text-align: center;
}

details summary::marker {
  content: "";
}

details p {
  font-style: italic;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.testimonial-dots .dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}
