:root {

--primary: #c97924;
--secondary: rgb(189, 133, 43);
--paper: #dcc5f5ff;
--magenta: #f1ebf1ff;
--purple: rgb(24, 4, 53);
}


/* second-site */
/* :root {

--primary: #8f87e0;
--secondary: rgb(116, 185, 119);
--paper: rgb(193, 170, 217);
--magenta: rgb(231, 207, 231);
--purple: rgb(8, 58, 79);
} */


.primary-color {
  color: var(--primary);
}

.secondary-color {
  color: var(--secondary);
}

.paper-color {
  color: var(--paper);
}

.magenta-color {
  color: var(--magenta);
}

.purple-color {
  color: var(--purple);
}


.primary-bg {
  background-color: var(--primary);
}

.secondary-bg {
  background-color: var(--secondary);
}

.paper-bg {
  background-color: var(--paper);
}

.magenta-bg {
  background-color: var(--magenta);
}

.purple-bg {
  background-color: var(--purple);
}


* {
  box-sizing: border-box;
}



/* for nav and general styles */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, #fdf2e9 0, #f4ecff 40%, #f1e7ff 100%);
    color: #1f2933;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--purple);
    font-weight: 600;
}

main.container,
main .container,
.container.my-4 {
    max-width: 1200px;
}

.card,
.modal-content {
    border-radius: 16px;
    border: 1px solid rgba(24, 4, 53, 0.06);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.table > :not(caption) > * > * {
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

.btn,
.btn-primary,
.btn-outline-primary {
    border-radius: 999px;
    font-weight: 500;
    padding-inline: 1.25rem;
}

.btn-primary {
    background: var(--purple);
    border-color: var(--purple);
}

.btn-primary:hover {
    background: #3b215f;
    border-color: #3b215f;
}

.btn-outline-primary {
    color: var(--purple);
    border-color: rgba(24, 4, 53, 0.3);
}

.btn-outline-primary:hover {
    background: rgba(24, 4, 53, 0.08);
    border-color: var(--purple);
}


.border-style-1 {
    border: 1.5px solid var(--purple);
    border-radius: 5px;

  }
.border-style-2 {
    border: 1.5px solid var(--primary);
    border-radius: 5px;
}

/* ================= Styles page produit (boutique) – design élégant ================= */
:root {
  --yc-primary-color: #1a365d;
  --yc-primary-light: #2c5282;
  --yc-secondary-color: #2d3748;
  --yc-accent: #ed8936;
  --yc-neutral-color: #2d3748;
  --yc-neutral-light-color: #e2e8f0;
  --yc-surface: #ffffff;
  --yc-bg: #f7fafc;
  --yc-font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  --yc-radius: 12px;
  --yc-radius-sm: 8px;
  --yc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --yc-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body.page-storefront {
  font-family: var(--yc-font-family);
  color: var(--yc-neutral-color);
  background: var(--yc-bg);
  -webkit-font-smoothing: antialiased;
}

.yc-header {
  background: var(--yc-surface);
  box-shadow: var(--yc-shadow);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.yc-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yc-navbar .logo img {
  max-width: 150px;
  height: auto;
  display: block;
}

.yc-navbar .corner {
  display: flex;
  align-items: center;
}

.commander-btn {
  background: var(--yc-primary-color);
  color: #fff;
  border: none;
  padding: 0.65rem 1.35rem;
  border-radius: var(--yc-radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.commander-btn:hover {
  background: var(--yc-primary-light);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "images details"
    "images description";
  gap: 2.5rem;
  padding: 2.5rem 0 3rem;
  align-items: start;
}

.product-images {
  grid-area: images;
  width: 100%;
}

@media (min-width: 768px) {
  .product-images {
    position: sticky;
    top: 5rem;
  }
}

.main-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
  background: var(--yc-neutral-light-color);
  border-radius: var(--yc-radius);
  overflow: hidden;
  box-shadow: var(--yc-shadow-lg);
}

.main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 64px;
  justify-content: start;
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.carousel-grid::-webkit-scrollbar {
  height: 6px;
}

.carousel-grid::-webkit-scrollbar-thumb {
  background: var(--yc-primary-color);
  border-radius: 3px;
}

.carousel-item {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.carousel-item img:hover {
  transform: scale(1.1);
}

.product-details {
  grid-area: details;
  background: var(--yc-surface);
  padding: 1.75rem;
  border-radius: var(--yc-radius);
  display: flex;
  flex-direction: column;
  box-shadow: var(--yc-shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yc-primary-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.product-price-block {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: var(--yc-radius-sm);
  border: 1px solid rgba(26, 54, 93, 0.08);
}

.product-price-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yc-secondary-color);
  margin-bottom: 0.35rem;
  opacity: 0.9;
}

.product-price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--yc-primary-color);
  margin: 0;
  letter-spacing: -0.02em;
}

.product-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--yc-secondary-color);
  opacity: 0.85;
  margin-left: 0.25rem;
}

.express-checkout-form {
  background: var(--yc-bg);
  padding: 1.5rem;
  border-radius: var(--yc-radius-sm);
  border: 1px solid var(--yc-neutral-light-color);
}

.express-checkout-fields {
  display: grid;
  gap: 1rem;
}

.form-control-custom {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--yc-neutral-light-color);
  border-radius: var(--yc-radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--yc-primary-color);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.12);
}

.form-control-custom::placeholder {
  color: #a0aec0;
}

.phone-input-wrapper {
  display: flex;
  gap: 0.5rem;
  min-width: 0;
  flex-wrap: wrap;
}

.form-control-country {
  min-width: 110px;
  padding: 0.75rem 1rem;
  border-radius: var(--yc-radius-sm);
  border: 1px solid var(--yc-neutral-light-color);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--yc-surface);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

@media (max-width: 600px) {
  .phone-input-wrapper {
    flex-direction: column;
  }
  .form-control-country {
    min-width: 0;
    width: 100%;
  }
}

.form-control-country:focus {
  outline: none;
  border-color: var(--yc-primary-color);
}

.page-storefront .form-hint {
  display: block;
  font-size: 0.8125rem;
  color: #718096;
  margin-top: -0.35rem;
  margin-bottom: 0.25rem;
}

.modal-footer-custom {
  margin-top: 1.25rem;
}

.btn-submit-order {
  width: 100%;
  margin-top: 0;
  background: var(--yc-primary-color);
  color: #fff;
  border: none;
  padding: 0.9rem 1.25rem;
  border-radius: var(--yc-radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}

.btn-submit-order:hover {
  background: var(--yc-primary-light);
}

.product-description {
  grid-area: description;
  background: var(--yc-surface);
  padding: 1.75rem;
  border-radius: var(--yc-radius);
  line-height: 1.75;
  box-shadow: var(--yc-shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-description p {
  margin-bottom: 0.75rem;
}

.main-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

body.page-storefront footer {
  background: var(--yc-surface);
  border-top: 1px solid var(--yc-neutral-light-color);
  padding-top: 2rem;
  margin-top: 3rem;
}

footer .columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

footer .column h1 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--yc-primary-color, #1a365d);
}

footer .column h5,
footer .column a {
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  color: inherit;
}

footer .copyright-wrapper {
  text-align: center;
  font-size: 0.8125rem;
  color: #718096;
  padding: 1rem 0;
}

@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "images"
      "details"
      "description";
  }

  .product-images,
  .product-details,
  .product-description {
    position: static;
  }
}

.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: auto;
  z-index: 1055;
  max-width: calc(100vw - 2rem);
}

@media (max-width: 480px) {
  .toast-container {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.75rem;
    max-width: none;
  }
}

.toast {
  display: flex;
  align-items: center;
  min-width: 250px;
  max-width: 350px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: sans-serif;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast .d-flex {
  display: flex;
  align-items: center;
  width: 100%;
}

.toast-body {
  flex: 1;
  padding: 0.25rem 0.5rem;
  color: #fff;
  font-size: 0.875rem;
}

.toast .btn-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
}

.bg-success {
  background-color: #198754;
}

.bg-danger {
  background-color: #dc3545;
}