@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root{
  --background: 0 0% 99%;
  --foreground: 220 20% 10%;
  --card: 0 0% 100%;
  --card-foreground: 220 20% 10%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 20% 10%;
  --primary: 330 78% 45%;
  --primary-foreground: 0 0% 100%;
  --secondary: 213 63% 42%;
  --secondary-foreground: 0 0% 100%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 10% 46%;
  --accent: 30 30% 96%;
  --accent-foreground: 220 20% 10%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 330 78% 45%;
  --radius: 0.5rem;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow-card: 0 1px 3px 0 hsl(220 20% 10% / 0.04), 0 1px 2px -1px hsl(220 20% 10% / 0.04);
  --shadow-card-hover: 0 10px 25px -5px hsl(220 20% 10% / 0.08), 0 8px 10px -6px hsl(220 20% 10% / 0.04);
  --shadow-elevated: 0 20px 40px -10px hsl(330 78% 45% / 0.15);
}

/* Optional dark mode (if you add `class="dark"` on html/body) */
.dark{
  --background: 222 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 330 78% 50%;
  --primary-foreground: 0 0% 100%;
  --secondary: 213 63% 50%;
  --secondary-foreground: 0 0% 100%;
  --muted: 217 33% 17%;
  --muted-foreground: 215 20% 65%;
  --accent: 217 33% 17%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 63% 31%;
  --destructive-foreground: 210 40% 98%;
  --border: 217 33% 17%;
  --input: 217 33% 17%;
  --ring: 330 78% 50%;
}
*, :before, :after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}
html, body{ height: 100%; }
body{
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  margin: 0px;
  padding: 0px;
}

h1,h2,h3,h4,h5,h6{ font-family: var(--font-display); }

.prose h1{ font-size: 3rem; line-height: 1.05; }
.prose h2{ font-size: 2.25rem; line-height: 1.1; }
.prose h3{ font-size: 1.875rem; line-height: 1.15; }
.prose h4{ font-size: 1.5rem; line-height: 1.2; }
.prose h5{ font-size: 1.25rem; line-height: 1.25; }
.prose h6{ font-size: 1rem; line-height: 1.4; }

/* Layout helpers used by the Lovable theme */
.container-main{ max-width: 80rem; margin-left: auto; margin-right: auto; }

.section-padding{ padding: 4rem 1rem; }
@media (min-width: 640px){ .section-padding{ padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px){ .section-padding{ padding-left: 2rem; padding-right: 2rem; padding-top: 6rem; padding-bottom: 6rem; } }

/* Product card hover feel */
.card-product{
  border-radius: 0.5rem;
  overflow: hidden;
  background: hsl(var(--card));
  box-shadow: var(--shadow-card);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.card-product:hover{ transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.product-url,
.product-url img {
  border-radius: 1rem;
  background: hsl(var(--muted));
}

.product-url img {
  object-fit: cover;
}

.product-image {
  background: hsl(var(--muted));
  border-radius: 1rem;
}

.product-image .no-image-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  width: 100%;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-image .website-image {
  object-fit: cover;
}

/* Simple fade-in (replaces tailwindcss-animate's `animate-fade-in`) */
@keyframes fade_in{ from{opacity:0; transform: translateY(8px);} to{opacity:1; transform: translateY(0);} }
.animate-fade-in{ animation: fade_in 600ms ease both; }
button, [role=button] {
    cursor: pointer;
}
/* Basic prose reset for Frappe containers */
.webshop-page a{ text-decoration: none; }
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6,
.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose blockquote,
.prose hr,
.prose figure {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.prose p {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.prose ul,
.prose ol {
    padding-left: 1.5rem;
}
.prose li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.text-secondary {
    color: hsl(var(--secondary));
}
.bg-primary {
    background-color: hsl(var(--primary));
}
.text-primary-foreground {
    color: hsl(var(--primary-foreground));
}
.bg-background {
    background-color: hsl(var(--background));
}

.btn-primary {
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--primary));
    padding: .75rem 2rem;
    font-weight: 500;
    letter-spacing: .025em;
    color: hsl(var(--primary-foreground));
    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .3s;
    animation-duration: .3s;
    cursor: pointer;
}
.text-primary {
    color: hsl(var(--primary));
}

/* =========================================
   Frappe-like modal + controls (default look)
   Target: your markup inside .modal-content
   ========================================= */

/* Modal shell */
.modal-content{
  border: 1px solid var(--border-color, #d1d8dd);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  background: var(--card-bg, #fff);
}

.modal-header{
  padding: 0px 0px 14px 0px;
  border-bottom: 1px solid var(--border-color, #d1d8dd);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: var(--card-bg, #fff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0px;
}

.modal-title{
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color, #1f272e);
  margin: 0;
}

.modal-body{
  padding: 14px 0px 0px;
}

.modal-footer{
  padding: 12px 16px;
  border-top: 1px solid var(--border-color, #d1d8dd);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: var(--card-bg, #fff);
  border: none;
  padding: 16px 0px 0px 0px;
}

/* Close button (svg) */
.modal-header .close{
  border: 0;
  background: transparent;
  padding: 6px;
  margin: -6px;
  border-radius: 8px;
  line-height: 0;
  cursor: pointer;
  color: var(--text-muted, #6b7280);
}
.modal-header .close:hover{
  background: rgba(0,0,0,.05);
  color: var(--text-color, #1f272e);
}
.modal-header .close:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.modal-header .close svg{
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

/* Form layout spacing */
.form-layout .form-section .section-body{
  padding: 0;
}
.form-layout .form-column{
  padding: 0;
}

/* Frappe control wrapper */
.frappe-control{
  margin-bottom: 12px;
}
.frappe-control .form-group.horizontal{
  margin-bottom: 0;
}

/* Label */
.frappe-control .control-label{
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  margin-bottom: 6px;
  display: inline-block;
}

/* Input wrapper */
.frappe-control .control-input-wrapper{
  width: 100%;
}

/* Control row */
.frappe-control .control-input{
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Select / input base (frappe-like) */
.frappe-control select.form-control,
.frappe-control .form-control{
  width: 100%;
  height: 36px;
  padding: 7px 34px 7px 10px; /* space for right icon */
  font-size: 13px;
  color: var(--text-color, #1f272e);
  background: var(--control-bg, #fff);
  border: 1px solid var(--border-color, #d1d8dd);
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none; /* hide native arrow */
}

.frappe-control select.form-control:hover{
  border-color: var(--border-color-strong, #b8c2cc);
}

.frappe-control select.form-control:focus{
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

/* Disabled look */
.frappe-control select.form-control:disabled,
.frappe-control .like-disabled-input{
  background: var(--disabled-bg, #f3f4f6);
  color: var(--text-muted, #6b7280);
  border-color: var(--border-color, #d1d8dd);
}

/* Right select icon */
.frappe-control .select-icon{
  position: absolute;
  right: 10px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #6b7280);
}
.frappe-control .select-icon .icon{
  width: 14px;
  height: 14px;
  opacity: .9;
}

/* Tooltip content hidden by default in frappe */
.frappe-control .tooltip-content{
  display: none;
}

/* Help/clear link style */
.frappe-control .help-box{
  margin-top: 6px;
  font-size: 12px;
}
.frappe-control .help-box a{
  color: var(--primary, #2563eb);
  text-decoration: none;
}
.frappe-control .help-box a:hover{
  text-decoration: underline;
}

/* Message container (optional) */
.form-message-container{
  margin-bottom: 10px;
  font-size: 13px;
}
.ui-collapse .collapse:not(.show) {
    display: none;
}
.ui-collapse .collapse.show {
    display: block;
    visibility: visible;
}

/* Responsive: keep modal padding neat */
@media (max-width: 576px){
  .modal-header, .modal-body, .modal-footer{
    padding-left: 12px;
    padding-right: 12px;
  }
}