@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@400;600;700&display=swap');

:root {
  /* Updated Palette */
  --bg-color: #EDF4ED;
  /* Warm cream with a bit more green */
  --text-color: #3B3A36;
  /* Soft charcoal */
  --primary-color: #2ED573;
  /* Brighter vivid green for text/headings */
  --primary-hover: #1EAB57;
  /* Darker vivid green for hover */

  --accent-color: #E8A87C;

  /* Orange and Purple for buttons */
  --btn-gradient: linear-gradient(135deg, #FF7E36, #9B59B6);
  --btn-hover: linear-gradient(135deg, #FF8C4B, #A569BD);

  --card-bg: #FFFFFF;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Header & Nav */
header {
  background-color: var(--bg-color);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(46, 213, 115, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(0.5rem, 2.5vw, 2rem);
}

nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: var(--text-color);
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.lang-switch {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: clamp(0.75rem, 2vw, 1rem);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.lang-switch button.active {
  opacity: 1;
  color: var(--primary-color);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-left: 1rem;
  color: var(--text-color);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-icon:hover {
  transform: scale(1.1);
  color: var(--primary-color);
}

.cart-icon svg {
  width: 24px;
  height: 24px;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Layout */
main {
  flex: 1;
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  animation: fadeIn 0.5s ease-out;
}

main h3 {
  margin-top: 2rem;
  font-size: 1.8rem;
}

main ul {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

main li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

main li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 900;
  font-size: 1.2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-4px); }
  30%, 70% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* Components */
.btn {
  display: inline-block;
  background-color: #2F3E2C;
  color: white !important;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(47, 62, 44, 0.3);
}

.btn:hover {
  background-color: #3D5038;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 62, 44, 0.4);
}

.btn.success {
  background-color: #2ED573 !important;
  transform: scale(1.05);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(46, 213, 115, 0.15);
}

.product-card-img {
  width: 100%;
  height: 250px;
  background-color: #f0f4f0;
  overflow: hidden;
  position: relative;
}

.card-image-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .card-image-el {
  transform: scale(1.1);
}

.product-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-top: 0;
}

/* Loader */
.loader {
  border: 4px solid var(--bg-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 3rem auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-color);
  margin: auto;
  padding: 2.5rem;
  border-radius: 24px;
  width: 90%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
  transform: scale(1);
}

.close-modal,
.close-cart {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s;
  line-height: 1;
}

.close-modal:hover,
.close-cart:hover {
  color: var(--text-color);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.modal-media {
  width: 100%;
  height: 400px;
  background-color: #f0f4f0;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info {
  display: flex;
  flex-direction: column;
}

.modal-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-info p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.modal-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.quantity-selector {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quantity-selector label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #888;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background-color: #f0f4f0;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  transition: background-color 0.2s;
}

.qty-btn:hover {
  background-color: #e0e8e0;
}

#product-qty {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 2px solid #f0f4f0;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

#product-qty::-webkit-outer-spin-button,
#product-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Cart Specific */
#cart-modal .modal-content {
  max-width: 500px;
}

#cart-items {
  margin: 2rem 0;
  max-height: 400px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info h4 {
  margin-bottom: 0.2rem;
  color: var(--text-color);
}

.cart-item-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
}

.remove-item {
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.cart-footer {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

#cart-total-price {
  color: var(--primary-color);
}

/* Responsive Modals */
@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    height: 300px;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

/* Loader Container */
.loader-container {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
}

.loader-container p {
  margin-top: 1rem;
  color: #888;
}

/* Color Selector */
.color-selector {
  margin-bottom: 2rem;
}

.color-selector label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.8rem;
}

.color-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.color-swatch::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  pointer-events: none;
}

/* External Designs Section */
.section-divider {
  border: none;
  border-top: 1px solid #d0d8d0;
  margin: 4rem 0;
}

.external-designs {
  padding: 0 5% 6rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.external-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 2.5rem;
}

.design-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.design-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: white;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  font-weight: 600;
  color: var(--text-color);
}

.design-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  color: var(--primary-color);
}

.design-link img {
  width: 20px;
  height: 20px;
}

.upload-area {
  margin-top: 4rem;
}

.upload-box {
  border: 2px dashed #b0c0b0;
  padding: 4rem 2rem;
  border-radius: 24px;
  cursor: pointer;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.upload-box:hover {
  border-color: var(--primary-color);
  background: rgba(46, 213, 115, 0.05);
  transform: scale(1.01);
}

.upload-box svg {
  color: var(--primary-color);
  opacity: 0.6;
}

.custom-print-form {
  max-width: 600px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-print-form .form-group input,
.custom-print-form .form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid #e0e8e0;
  background: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.custom-print-form .form-group input:focus,
.custom-print-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.custom-print-form .form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.custom-print-form .btn {
  align-self: center;
  margin-top: 1.5rem;
}

.file-info {
  font-size: 0.9rem;
  color: #888;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background-color: #2F3E2C; 
  color: white;
  margin-top: auto;
  width: 100%;
}

footer p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 4rem 5%;
  min-height: calc(100vh - 100px);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.hero-content {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  padding: 0.05em 0 0.1em;
  margin-bottom: 2rem;
  color: var(--text-color);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 3rem;
  max-width: 500px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-btns .btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out;
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  z-index: 2;
  position: relative;
}

.hero-blob {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(46, 213, 115, 0.1) 0%, rgba(46, 213, 115, 0) 70%);
  z-index: 1;
  border-radius: 50%;
  filter: blur(40px);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content p {
    margin: 0 auto 3rem;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-image img {
    max-width: 100%;
  }
}

/* Mobile header fit */
@media (max-width: 480px) {
  header {
    padding: 1rem 3%;
  }

  .lang-switch {
    gap: 0.25rem;
  }
}