/* ============================================
   LORE MAREE BRAND IDENTITY - WEB FACE
   ============================================ */
:root {
  /* Brand Constants */
  --brand-gold: #D69C76; /* Tablar/Sekmeler */
  --brand-gold-light: #E6B17E; /* Favori */
  --brand-gold-dark: #784E17; /* Sepete Ekle */
  --brand-black: #1A1A1A;
  --brand-background: #F5EDE1; /* Zemin */
  --brand-secondary: #F2DBCB; /* Hoş/Ara */
  
  --color-discount: #A31905;
  --color-stock: #74A174;

  /* UI Colors */
  --primary-color: var(--brand-gold);
  --primary-hover: var(--brand-gold-dark);
  --primary-light: var(--brand-gold-light);
  --primary-dark: #784E17;

  --accent-color: var(--brand-black);
  --accent-hover: #333333;
  --accent-light: #F5F5F5;

  /* Backgrounds */
  --bg-primary: var(--brand-background);
  --bg-secondary: var(--brand-secondary);
  --bg-white: #FFFFFF;

  /* Cards & Sections */
  --card-bg: #FFFFFF;
  --card-border: rgba(214, 156, 118, 0.2);
  --section-bg: rgba(242, 219, 203, 0.5);

  /* Texts */
  --text-primary: #1F1B18;
  --text-secondary: #5C5854;
  --text-muted: #A19D98;

  /* Status */
  --success-color: var(--color-stock);
  --warning-color: var(--brand-gold-light);
  --danger-color: var(--color-discount);
  --info-color: #3498DB;
}

/* Bootstrap Overrides */
:root {
  --bs-primary: var(--brand-gold);
  --bs-secondary: var(--brand-black);
  --bs-success: var(--success-color);
  --bs-info: var(--info-color);
  --bs-warning: var(--warning-color);
  --bs-danger: var(--danger-color);
  --bs-body-bg: var(--bg-primary);
  --bs-body-color: var(--text-primary);
  --bs-font-sans-serif: 'Montserrat', sans-serif;
}

/* ============================================
   GENERAL STYLES
   ============================================ */
body {
  font-family: 'Lora', 'Montserrat', serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.page-title,
.brand-text {
  font-family: 'Lora', 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.0125em;
  text-transform: uppercase;
}

main {
  min-height: calc(100vh - 400px);
  padding: 1rem 0 3rem 0;
}

/* Global Transition */
* {
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ============================================
   NAVBAR & BRANDING
   ============================================ */
.navbar {
  background: white !important;
  padding: 0.8rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  letter-spacing: 0.2em;
  color: var(--brand-black) !important;
  text-transform: uppercase;
  font-weight: 900;
}

.header-logo {
  height: 70px;
  width: auto;
  transition: height 0.3s ease;
}

@media (max-width: 991px) {
  .header-logo {
    height: 35px;
  }
  .navbar {
    padding: 0.2rem 0;
  }
}

.navbar-actions .nav-link {
  color: var(--brand-black) !important;
  padding: 0.5rem;
  margin: 0;
}

.navbar-actions .nav-link::after {
  display: none;
}

.cart-icon-wrapper {
  background-color: #f8f9fa;
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cart-icon-wrapper:hover {
  background-color: var(--brand-gold);
  color: white !important;
}

.cart-badge {
  top: 5px;
  right: 5px;
  background-color: var(--brand-gold-dark) !important;
  font-size: 0.65rem;
  padding: 0.25em 0.5em;
}

.nav-link {
  color: var(--brand-black) !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0.5rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--brand-gold) !important;
}

/* Top Bar */
.top-bar {
  background-color: var(--brand-black) !important;
  color: var(--brand-gold) !important;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.top-bar a {
  color: #fff !important;
}

.top-bar a:hover {
  color: var(--brand-gold) !important;
}

/* ============================================
   PRODUCT CARDS - PREMIUM
   ============================================ */
.product-card {
  border: 1px solid var(--card-border);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.02);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.product-card .p-3,
.product-card .product-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .btn.w-100.mt-2,
.product-card .product-details .btn {
  margin-top: auto !important;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(206, 160, 71, 0.12);
  border-color: var(--brand-gold);
}

.product-image-container {
  overflow: hidden;
  position: relative;
  background: var(--brand-ivory);
}

.product-image {
  aspect-ratio: 1 / 1;
  height: auto !important;
  width: 100%;
  object-fit: contain;
  background-color: #fff;
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-img-container {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.product-details {
  padding: 2rem 1.5rem;
  text-align: center;
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--brand-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-price {
  color: var(--brand-gold-dark);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  border-radius: 0;
  padding: 1.2rem 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  transition: all 0.4s ease;
}

.btn-primary {
  background: var(--brand-black);
  border: none;
  color: var(--brand-gold);
}

.btn-primary:hover {
  background: var(--brand-gold);
  color: white;
}

.btn-add-to-cart {
  background: linear-gradient(135deg, #CEA047 0%, #E3BC6D 100%);
  border: none;
  color: white;
  width: 100%;
}

.btn-search:hover {
  background: var(--brand-black);
  color: var(--brand-gold);
}

.btn-soft {
  background-color: #F2DBCB !important;
  color: #1A1A1A !important;
  border: none !important;
}

.btn-soft:hover {
  background-color: #e6cbb7 !important;
  color: #000 !important;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--brand-black) !important;
  color: #fff;
  padding: 8rem 0 4rem;
  border-top: 5px solid var(--brand-gold);
}

footer h5 {
  color: var(--brand-gold);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.1em;
}

footer p,
footer li {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
  text-decoration: none;
}

footer a:hover {
  color: var(--brand-gold) !important;
  transform: translateX(5px);
}

/* Social icons */
.social-icons a {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(206, 160, 71, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--brand-gold);
}

.social-icons a:hover {
  background: var(--brand-gold);
  color: #fff;
  border-color: var(--brand-gold);
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Cart animation */
.cart-animation-icon {
  background: linear-gradient(135deg, #CEA047 0%, #E3BC6D 100%);
  color: #fff;
  box-shadow: 0 15px 35px rgba(206, 160, 71, 0.4);
}

/* Toast */
.toast-notification,
.cart-toast {
  background: #fff;
  border-radius: 0;
  border-left: 5px solid var(--brand-gold);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

#cartCount {
  background-color: var(--brand-gold) !important;
  color: #fff;
  font-weight: 700;
}

/* ============================================
   STICKY WHATSAPP BUTTON
   ============================================ */
.whatsapp-sticky {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-sticky:hover {
  transform: scale(1.1) rotate(15deg);
  color: white;
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
  .whatsapp-sticky {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 1.3rem;
  }
}

.whatsapp-greeting {
    position: fixed;
    bottom: 5rem;
    left: 2rem;
    background: white;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1039;
    display: none;
    max-width: 220px;
    animation: slideUp 0.5s ease forwards;
    border-left: 4px solid #25D366;
}

@media (max-width: 768px) {
  .whatsapp-greeting {
    bottom: 4.5rem;
    left: 1.5rem;
    max-width: 200px;
    padding: 8px 12px;
  }
}

.whatsapp-greeting::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

.whatsapp-greeting p {
    margin: 0;
    font-size: 0.9rem;
    color: #1A1A1A;
    font-weight: 500;
}

.whatsapp-greeting .close-greeting {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f1f1f1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    color: #999;
}

.whatsapp-greeting .close-greeting:hover {
    background: #e1e1e1;
    color: #333;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* KVKK Consent Banner */
.kvkk-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--brand-black);
  color: white;
  padding: 1.5rem 0;
  z-index: 9999;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  display: none;
}

.kvkk-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.kvkk-banner a {
  color: var(--brand-gold);
  text-decoration: underline;
}

.btn-kvkk-accept {
  background: var(--brand-gold);
  color: white;
  border: none;
  padding: 0.6rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.btn-kvkk-accept:hover {
  background: var(--brand-gold-dark);
}

/* ============================================
   GLASS SPLASH SCREEN
   ============================================ */
.glass-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: wait;
}

#shatter-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-splash-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 10001;
}

/* Hide body scroll while splash is active */
body.splash-active {
    overflow: hidden !important;
}

.glass-splash-overlay.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
    pointer-events: none;
}
/* Grid Toggle Styles */
.product-grid-item {
  transition: all 0.3s ease;
}

.grid-cols-1 .col-6 {
  width: 100% !important;
}

.grid-cols-2 .col-12 {
  width: 50% !important;
}

/* Discount Banner */
.discount-banner {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1060;
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
}
.product-badges .badge {
  font-size: 0.7rem;
  padding: 0.4em 0.8em;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-icon-circle {
  background-color: #f8f9fa;
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--brand-black) !important;
  text-decoration: none;
  margin: 0 4px;
  position: relative;
}

.nav-icon-circle:hover {
  background-color: var(--brand-gold);
  color: white !important;
}

.nav-icon-circle i {
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-icon-circle {
    width: 32px;
    height: 32px;
    margin: 0 1px;
  }
  .nav-icon-circle i {
    font-size: 1rem !important;
  }
}

@media (max-width: 400px) {
  .header-logo {
    height: 30px;
  }
  .navbar-brand {
    margin-right: 0.2rem !important;
  }
  .nav-icon-circle {
    width: 28px;
    height: 28px;
  }
  .navbar .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

/* Collapsible Filter Chevron Rotation */
[data-bs-toggle="collapse"] .bi-chevron-down {
  transition: transform 0.3s ease;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

/* ============================================
   MODERN AUTH CARD (LOGIN / REGISTER / ETC.)
   ============================================ */
.auth-card {
  border: 1px solid rgba(214, 156, 118, 0.25) !important;
  border-radius: 24px !important; /* Ecliptic/Modern rounded corner */
  box-shadow: 0 15px 40px rgba(214, 156, 118, 0.08), 0 5px 15px rgba(0, 0, 0, 0.03) !important;
  background-color: #FFFFFF !important;
  overflow: hidden;
  padding: 1.5rem !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.auth-card:hover {
  box-shadow: 0 25px 50px rgba(214, 156, 118, 0.15), 0 10px 20px rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(214, 156, 118, 0.4) !important;
}

.auth-card .card-body {
  padding: 1rem !important;
}

/* Auth Titles */
.auth-card h1, 
.auth-card h2 {
  font-family: 'Montserrat', 'Playfair Display', serif;
  font-weight: 700;
  color: var(--brand-black);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Modern inputs inside auth card */
.auth-card .form-control {
  border-radius: 12px !important; /* Elegant rounded/elliptic inputs */
  border: 1.5px solid rgba(214, 156, 118, 0.25);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  background-color: #FAFAFA;
  transition: all 0.25s ease;
}

.auth-card .form-control:focus {
  border-color: var(--brand-gold) !important;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(214, 156, 118, 0.15) !important;
  outline: none;
}

/* Labels */
.auth-card .form-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Buttons */
.auth-card .btn-primary {
  background: var(--brand-black) !important;
  color: var(--brand-gold) !important;
  border: 1px solid var(--brand-black) !important;
  border-radius: 30px !important; /* Oval/elliptic pill shape */
  padding: 0.8rem 2rem !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
}

.auth-card .btn-primary:hover {
  background: var(--brand-gold) !important;
  color: #FFFFFF !important;
  border-color: var(--brand-gold) !important;
  box-shadow: 0 10px 25px rgba(214, 156, 118, 0.3) !important;
  transform: translateY(-2px);
}

/* Links */
.auth-card a:not(.btn) {
  color: var(--brand-gold-dark) !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.auth-card a:not(.btn):hover {
  color: var(--brand-gold) !important;
  text-decoration: underline !important;
}

/* Form check input */
.auth-card .form-check-input {
  border-radius: 4px !important;
  border: 1.5px solid rgba(214, 156, 118, 0.4);
  cursor: pointer;
}

.auth-card .form-check-input:checked {
  background-color: var(--brand-gold) !important;
  border-color: var(--brand-gold) !important;
}

.auth-card .form-check-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

/* Divider styling */
.auth-card hr {
  border-color: rgba(214, 156, 118, 0.2) !important;
  opacity: 1;
}

/* CSS Fix for Validation Summary (Hiding if empty) */
.validation-summary-valid,
div[data-valmsg-summary="true"].validation-summary-valid {
  display: none !important;
}

.validation-summary-errors,
div[data-valmsg-summary="true"].validation-summary-errors {
  display: block !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.85rem !important;
  background-color: rgba(163, 25, 5, 0.05) !important;
  border: 1px solid rgba(163, 25, 5, 0.2) !important;
  color: var(--color-discount) !important;
}

.validation-summary-errors ul {
  margin: 0 !important;
  padding-left: 1.25rem !important;
}

