@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
  --primary: #d4a373; /* Soft Brown/Tan */
  --primary-dark: #bc8a5f;
  --secondary: #2b2d42; /* Soft Navy/Black */
  --bg: #fefae0; /* Cream */
  --white: #ffffff;
  --text: #4a4e69; /* Soft Muted Text */
  --text-light: #9a8c98;
  --shadow: 0 10px 30px rgba(74, 78, 105, 0.05);
  --radius: 12px;
  --font: 'Inter', sans-serif;
  --font-logo: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  touch-action: manipulation; /* Çift tıklama yakınlaştırmasını engeller */
}
body.modal-open { overflow: hidden; }

/* Header */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px); /* Cam efekti */
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000; /* Sepetin altında ama diğer her şeyin üstünde */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

@media (max-width: 600px) {
  header {
    padding: 1rem 20px;
  }
  .logo-text {
    font-size: 1.5rem; /* Mobilde logo küçülsün */
  }
  .logo-img {
    width: 45px;
    height: 45px;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: transform 0.2s;
}

.logo-img:active {
  transform: scale(0.95);
}

.logo-text {
  font-family: var(--font-logo);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 1px;
}

/* Product Details Modal */
.details-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 1000px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.3);
  z-index: 2100; /* Detay modalı */
  display: none;
  overflow: hidden;
}

.details-modal.active {
  display: flex;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.details-img-area {
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.details-img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 600px;
}

.details-info-area {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.details-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.details-title {
  font-family: var(--font-logo);
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.details-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 25px;
}

.details-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 30px;
  white-space: pre-line; /* Preserves line breaks */
}

.details-footer {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Admin Form Textarea */
.form-group textarea {
  padding: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  min-height: 120px;
  resize: vertical;
}

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

/* Product Details Layout - Desktop */
.details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.details-image-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.details-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    justify-content: flex-start;
}

.details-gallery .thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.details-gallery .thumb-item.active {
    border-color: #c5a059;
}

/* Premium Mobile Modal Experience */
@media (max-width: 600px) {
    .details-modal {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        transform: translateY(100%) !important;
        display: flex;
        flex-direction: column;
    }

    .details-modal.active {
        transform: translateY(0) !important;
    }

    .details-grid {
        display: flex !important;
        flex-direction: column !important;
        height: 100%;
        width: 100% !important;
        overflow-y: auto;
    }

    .details-image-side {
        width: 100% !important;
        display: flex;
        flex-direction: column;
    }

    .main-img-container {
        height: 50vh !important;
        width: 100% !important;
        border-radius: 0 !important;
    }

    .details-gallery {
        display: flex !important; /* Bring back thumbnails on mobile */
        gap: 12px;
        padding: 15px 20px;
        overflow-x: auto;
        background: white;
        border-bottom: 1px solid #f0f0f0;
    }

    .details-gallery .thumb-item {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        border: 2px solid transparent;
        flex-shrink: 0;
    }

    .details-gallery .thumb-item.active {
        border-color: var(--primary);
    }

    .details-info {
        padding: 40px 25px !important;
        width: 100% !important; /* Fix narrow box issue */
        background: white;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        margin-top: -30px;
        z-index: 10;
        box-shadow: 0 -15px 35px rgba(0,0,0,0.08);
        flex: 1;
    }

    .details-title {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
        width: 100%;
    }

    .details-price {
        font-size: 1.6rem !important;
        margin-bottom: 20px !important;
    }

    .details-desc {
        font-size: 1.05rem !important;
        margin-bottom: 30px !important;
        line-height: 1.6;
    }

    .details-close {
        top: 20px !important;
        right: 20px !important;
        background: rgba(255,255,255,0.9) !important;
        color: #333 !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem !important;
        z-index: 100;
    }

    .details-actions {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 40px; /* Extra space at bottom */
    }

    .add-to-cart-large {
        width: 100% !important;
        padding: 20px !important;
        font-size: 1.1rem !important;
        border-radius: 15px !important;
    }
    
    .qty-control {
        width: 100%;
        justify-content: center;
        gap: 30px !important;
        margin-bottom: 10px;
    }
}

@media (max-width: 900px) {
    .admin-grid-layout { grid-template-columns: 1fr; }
    .admin-sidebar { width: 60px; }
}

@media (max-width: 850px) {
  .details-grid {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .details-info-area {
    padding: 30px;
  }
}

.logo-text span {
  color: var(--primary);
  font-style: italic;
}

.cart-icon-btn {
  background: var(--secondary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: transform 0.2s;
}

.cart-icon-btn:hover {
  transform: scale(1.05);
}

/* Hero */
.hero {
  position: relative;
  height: 70vh; /* Masaüstünde daha görkemli */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 60px;
  border-radius: 0 0 50px 50px; /* Alttan oval geçiş */
}

@media (max-width: 768px) {
  .hero {
    height: 50vh;
    border-radius: 0 0 30px 30px;
    margin-bottom: 25px;
  }
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.8);
  transition: transform 10s ease; /* Yavaş zoom efekti */
}

.hero:hover img {
  transform: scale(1.1);
}

.hero-content {
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

/* Product Grid */
.container {
  max-width: 1600px; /* Geniş ekranlarda daha ferah */
  margin: 0 auto;
  padding: 0 40px 100px;
}

@media (max-width: 600px) {
  .container {
    padding: 0 8px 80px;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 35px;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .product-grid .product-card {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(74, 78, 105, 0.04);
  }

  .product-grid .product-img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .product-grid .product-info {
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .product-grid .product-code {
    font-size: 0.55rem;
    color: var(--text-light);
    opacity: 0.8;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-weight: 400;
    text-transform: uppercase;
  }

  .product-grid .product-name {
    font-size: 0.72rem;
    line-height: 1.3;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
    letter-spacing: 0.1px;
  }

  .product-grid .product-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    letter-spacing: 0.2px;
  }

  .product-grid .product-card .qty-control {
    display: none !important;
  }

  .product-grid .product-card .add-to-cart {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--secondary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    font-size: 0;
    z-index: 5;
    border: none;
    transition: all 0.2s ease;
  }

  .product-grid .product-card .add-to-cart::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: -2px;
  }

  .product-grid .product-card .add-to-cart:active {
    transform: scale(0.9) !important;
    background: var(--primary) !important;
    color: white !important;
  }
}

@media (min-width: 480px) and (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInCard 0.6s forwards ease-out;
}

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

.product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(74, 78, 105, 0.12);
}

.product-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  padding: 25px;
}

.product-code {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.product-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.qty-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
}

.qty-input {
  width: 40px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.add-to-cart {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius);
  border: none;
  background: var(--secondary);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.add-to-cart:hover {
  background: var(--primary);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  height: 100vh;
  background: var(--white);
  box-shadow: -10px 0 50px rgba(0,0,0,0.1);
  z-index: 2200; /* Sepet en üstte olmalı */
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.close-cart {
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f9f9f9;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.cart-item-info p {
  color: var(--primary);
  font-weight: 700;
}

.cart-footer {
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.whatsapp-btn {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius);
  border: none;
  background: #25d366;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s;
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  background: #20ba5a;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: none;
  z-index: 1500; /* Karartma katmanı orta seviyede */
}

.overlay.active {
  display: block;
}

@media (max-width: 450px) {
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}

/* Fixed Centered Admin Modal */
.admin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 95%;
  max-width: 900px;
  height: 85vh;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
  z-index: 2000; /* Admin modalı */
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal.active {
  display: flex;
  transform: translate(-50%, -50%) scale(1);
}

.admin-header {
  padding: 25px 40px;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.admin-header h2 {
  font-family: var(--font-logo);
  color: var(--secondary);
}

.admin-body {
  padding: 40px;
  overflow-y: auto;
  flex: 1;
  background: #fafafa;
}


.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #eee;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.form-group input, .form-group textarea {
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
}

.image-upload-wrapper {
  grid-column: span 2;
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fdfdfd;
  padding: 15px;
  border-radius: 10px;
  border: 2px dashed #eee;
}

#admin-img-preview {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  background: #eee;
}

.admin-actions {
  grid-column: span 2;
  display: flex;
  gap: 15px;
}

.admin-btn {
  flex: 1;
  padding: 15px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn.save { background: var(--primary); color: white; }
.admin-btn.cancel { background: #eee; color: var(--text); }

.admin-product-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.admin-product-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
}

.admin-item-thumb {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-item-info { flex: 1; }
.admin-item-info h4 { font-size: 1rem; margin-bottom: 2px; }
.admin-item-info span { font-size: 0.85rem; color: var(--text-light); }

.admin-item-btns { display: flex; gap: 10px; }
.admin-edit-btn { background: #f4f4f4; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.admin-delete-btn { background: #fff0f0; color: #ff4d4d; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-weight: 600; }

/* Version Footer */
.app-version-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0.6;
  font-family: var(--font);
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 20px;
}

/* Clean & Professional Admin Panel (Light Theme) */
.admin-modal {
    width: 95%;
    max-width: 1100px;
    height: 85vh;
    border-radius: 20px;
    background: #ffffff;
    color: #333;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    border: none;
}

.admin-header {
    background: #ffffff;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-logo-area img {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.admin-logo-area h2 {
    font-size: 1.2rem;
    color: #444;
    font-weight: 800;
    margin: 0;
}

.admin-body {
    display: flex;
    height: calc(85vh - 76px);
    background: #fcfcfc;
}

.admin-sidebar {
    width: 200px;
    background: #ffffff;
    padding: 20px 10px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-main-content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.admin-tab-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: transparent;
    color: #666;
    border: none;
    border-radius: 10px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.admin-tab-btn:hover {
    background: #f9f9f9;
}

.admin-tab-btn.active {
    background: #c5a059;
    color: #ffffff;
}

.admin-stats-card {
    margin-top: auto;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.admin-stats-card p {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 3px;
}

.admin-stats-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

/* Form & List Grid (Removed for single view layout) */
.admin-grid-layout {
    /* Kept for backwards compatibility if needed, but not used as grid anymore */
}

.admin-form-section, .admin-list-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.admin-form h3, .list-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #c5a059;
    border-bottom: 2px solid #fcfcfc;
    padding-bottom: 10px;
}

.admin-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fcfcfc;
    font-size: 0.85rem;
}

.admin-list-scroll {
    max-height: 500px;
    overflow-y: auto;
}

.admin-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f7f7f7;
    transition: background 0.2s;
}

.admin-item-thumb {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}

.admin-item-info {
    flex: 1;
}

.admin-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.admin-item-info span {
    font-size: 0.75rem;
    color: #999;
}

.admin-item-btns {
    display: flex;
    gap: 8px;
}

.admin-item-btns button {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Image Upload Light */
.image-upload-wrapper-pro {
    border: 2px dashed #eee;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.image-upload-wrapper-pro input {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.preview-item {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
}

.preview-item img {
    width: 100%; height: 100%; object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 0; right: 0;
    background: #ff4d4d;
    color: #fff;
    border: none;
    width: 18px; height: 18px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery Styles */
.main-img-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    scroll-snap-type: x mandatory;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.main-img-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.slider-img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: start;
    flex-shrink: 0;
    background: #ffffff;
}

.details-gallery {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
}

.thumb-item.active {
    border-color: #c5a059;
}

.thumb-item img {
    width: 100%; height: 100%; object-fit: cover;
}

/* Admin Tabs Logic */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Fix for Save Button visibility & styling */
.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.admin-btn {
    padding: 10px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s;
}

.admin-btn:active { transform: scale(0.95); }

.admin-btn.save {
    background: #c5a059;
    color: #fff;
}

.admin-btn.cancel {
    background: #eee;
    color: #666;
}

/* ===== Admin Password Modal ===== */
.password-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(20, 18, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.password-modal.active {
    display: flex;
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.password-modal-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 50px 45px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
    animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.password-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
    line-height: 1;
}

.password-modal-title {
    font-family: var(--font-logo);
    font-size: 1.9rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.password-modal-sub {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

.password-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.password-input-wrapper input {
    width: 100%;
    padding: 16px 52px 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    font-size: 1rem;
    font-family: var(--font);
    color: var(--secondary);
    background: #fafafa;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    letter-spacing: 3px;
}

.password-input-wrapper input::placeholder {
    letter-spacing: 0;
    color: #bbb;
}

.password-input-wrapper input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.15);
}

.password-input-wrapper input.input-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.12);
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 10;
}

.password-toggle:hover {
    opacity: 1;
}

.password-error {
    font-size: 0.88rem;
    color: #e74c3c;
    margin-bottom: 20px;
    animation: shakeError 0.4s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-8px); }
    75%       { transform: translateX(8px); }
}

.password-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.password-cancel-btn,
.password-submit-btn {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.password-cancel-btn {
    background: #f0f0f0;
    color: #888;
}

.password-cancel-btn:hover {
    background: #e4e4e4;
    color: #555;
}

.password-submit-btn {
    background: var(--secondary);
    color: #fff;
}

.password-submit-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.4);
}

.password-submit-btn:active,
.password-cancel-btn:active {
    transform: scale(0.97);
}

@media (max-width: 480px) {
    .password-modal-box {
        padding: 40px 25px 35px;
        border-radius: 22px;
    }
    .password-modal-title {
        font-size: 1.6rem;
    }
}

.no-products-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Catalog Header and Sorting styles */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(74, 78, 105, 0.08);
}

.catalog-title {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    color: var(--secondary);
    font-weight: 700;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.sort-select {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(74, 78, 105, 0.15);
    background-color: var(--white);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.sort-select:focus,
.sort-select:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.15);
}

/* Mobile responsive styles for sorting */
@media (max-width: 600px) {
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
        padding: 0 0 15px;
        width: 100%;
    }
    
    .catalog-title {
        font-size: 1.6rem;
        margin-bottom: 0;
    }

    .sort-wrapper {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(74, 78, 105, 0.03);
        padding: 8px 15px;
        border-radius: 15px;
        border: 1px solid rgba(74, 78, 105, 0.06);
    }
    
    .sort-select {
        padding: 0;
        border: none;
        background: transparent;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--secondary);
        box-shadow: none !important;
        outline: none;
        cursor: pointer;
    }
    
    .sort-label {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-light);
    }
}

/* Brand Values Section */
.brand-values {
    background-color: var(--white);
    padding: 60px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(74, 78, 105, 0.05);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.value-card {
    padding: 20px;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.value-card h3 {
    font-family: var(--font-logo);
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 700;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Premium Brand Footer styles */
.brand-footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 5% 30px;
    font-family: var(--font);
    border-top: 2px solid var(--primary);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section h3 {
    font-family: var(--font-logo);
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-logo span {
    color: var(--primary);
    font-style: italic;
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links li {
    margin-bottom: 12px;
}

.footer-section.links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-section.links a:hover {
    color: var(--primary);
}

.footer-section.contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section.contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-section.contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Floating WhatsApp Widget */
.whatsapp-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: waPulse 2s infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
    background-color: #20ba5a;
}

.wa-icon {
    width: 32px;
    height: 32px;
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #333;
}

.whatsapp-float-btn:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile responsive styling for brand values, footer, and float button */
@media (max-width: 768px) {
    .brand-values {
        padding: 25px 0;
        margin-top: 20px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .value-card {
        padding: 10px 5px;
    }

    .value-card .value-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .value-card h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .value-card p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
        padding-bottom: 30px;
    }

    .footer-section.contact p {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
    }

    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .wa-icon {
        width: 26px;
        height: 26px;
    }

    .wa-tooltip {
        display: none !important;
    }
}

/* Hide floating WhatsApp button when overlay, cart, details, or admin modal is active */
.overlay.active ~ .whatsapp-float-btn,
.cart-drawer.active ~ .whatsapp-float-btn,
.details-modal.active ~ .whatsapp-float-btn,
.admin-modal.active ~ .whatsapp-float-btn {
    opacity: 0;
    visibility: hidden;
    transform: scale(0) !important;
    pointer-events: none;
}


/* Discount Styling */
.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
    text-transform: uppercase;
}

.product-card {
    position: relative;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.product-price.strikethrough {
    font-size: 1.1rem;
    color: #9a8c98;
    text-decoration: line-through;
    font-weight: 600;
    margin-bottom: 0;
}

.product-price.discounted {
    font-size: 1.6rem;
    color: #e63946;
    font-weight: 800;
    margin-bottom: 0;
}

/* Adjust mobile layout for prices */
@media (max-width: 600px) {
    .product-grid .price-container {
        flex-direction: column;
        gap: 0px;
        margin-bottom: 4px;
    }
    .product-grid .product-price.strikethrough {
        font-size: 0.65rem;
    }
    .product-grid .product-price.discounted {
        font-size: 0.85rem;
    }
    .discount-badge {
        top: 6px;
        left: 6px;
        padding: 4px 8px;
        font-size: 0.6rem;
    }
}

/* Categories UI */
.category-stories-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-stories-wrapper::-webkit-scrollbar {
    display: none;
}
.category-stories {
    display: flex;
    gap: 15px;
    padding: 0 10px;
}
.category-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 76px;
    min-width: 76px;
}
.story-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: #e2e2e2;
    transition: all 0.3s ease;
}
.category-story.active .story-ring {
    background: linear-gradient(135deg, #c5a059, #e63946);
}
.story-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #f5f5f5;
}
.story-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4a4a4a;
    text-align: center;
    line-height: 1.2;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}
.category-story.active .story-name {
    color: #c5a059;
}

/* Admin Categories Checkboxes */
.admin-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 5px;
}
.admin-cat-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ========================================================
   APP UI OVERHAUL (MODERN E-COMMERCE THEME)
   ======================================================== */

body {
    background-color: #fcfbf8; /* Warm light beige background */
    padding-bottom: 70px; /* Space for bottom nav */
}

/* Header Redesign */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.menu-btn, .search-btn, .cart-icon-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}
.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #2c3e50;
    line-height: 1;
}
.logo-text span {
    color: #c5a059;
    font-weight: 300;
}
.logo-subtitle {
    font-size: 0.6rem;
    color: #666;
    margin-top: 2px;
}
.cart-icon-btn {
    position: relative;
}
.cart-icon-btn span {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Hero Card */
.hero-app {
    padding: 0 15px;
    margin-top: 10px;
    margin-bottom: 30px;
}
.hero-card {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-overlay h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-overlay p {
    color: #eee;
    font-size: 0.8rem;
    max-width: 70%;
    margin-bottom: 20px;
}
.hero-btn {
    align-self: flex-start;
    background: rgba(197, 160, 89, 0.9);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}
.hero-dots {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 5px;
}
.hero-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 1px solid #fff;
}
.hero-dots .dot.active {
    background: #fff;
}

/* Category Redesign (Shared) */
.category-story { gap: 5px; }
.story-ring { background: transparent !important; padding: 2px; }
.category-story.active .story-ring { background: transparent !important; }
.story-name { padding-bottom: 5px; border-bottom: 2px solid transparent; }
.category-story.active .story-name { color: #d35400 !important; border-bottom: 2px solid #d35400; }

/* Brand Values (Shared) */
.brand-values-app { background: #f4eee1; padding: 5px 0; margin-bottom: 15px; }
.brand-values-app .container { padding-bottom: 0 !important; }
.values-grid-app { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 10px; }
.value-card-app { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; gap: 4px; }
.value-icon-app { color: #1a1a1a; margin-bottom: 4px; display: flex; justify-content: center; align-items: center; }
.value-icon-app svg { flex-shrink: 0; min-width: 28px; min-height: 28px; }
.value-card-app h3 { font-size: 0.55rem; font-weight: 500; color: #555; line-height: 1.2; }

/* Product Section Header */
.catalog-header-app { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 5px; }
.catalog-title-app { font-size: 1.2rem; font-weight: 600; color: #333; }
.view-all-link { font-size: 0.8rem; color: #555; text-decoration: none; }

/* Favorite Icon (Heart) - Shared */
.fav-btn { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; background: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); border: none; cursor: pointer; z-index: 10; color: #999; }
.fav-btn.active { color: #e74c3c; }
.fav-btn svg { fill: currentColor; width: 14px; height: 14px; }

/* Bottom Nav - Hidden on desktop */
.bottom-nav { display: none; }

/* Desktop category alignment */
@media (min-width: 769px) {
    .category-stories-wrapper { display: flex; justify-content: center; }
}

/* Mobile Only Overrides */
@media (max-width: 768px) {
    /* Product Card Redesign (App-like 2 columns) */
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    .product-card { border: none !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; position: relative; }
    .product-img { border-radius: 16px !important; height: 180px !important; object-fit: cover !important; margin-bottom: 10px !important; }
    .product-info { text-align: left !important; padding: 0 5px !important; }
    .product-code { display: block; font-size: 0.65rem; color: #999; margin-bottom: 2px; }
    .product-name { font-size: 0.9rem !important; font-weight: 600 !important; color: #2c3e50 !important; margin-bottom: 5px !important; }
    .product-card .price-container { flex-direction: row !important; gap: 10px !important; justify-content: flex-start !important; align-items: baseline !important; margin-bottom: 10px !important; }
    .product-card .product-price { font-size: 0.9rem !important; color: #d35400 !important; font-weight: 700 !important; }
    .product-card .product-price.strikethrough { font-size: 0.75rem !important; color: #aaa !important; font-weight: 400 !important; }
    
    .add-to-cart {
        position: static !important; background: #c5a059 !important; color: #fff !important; width: 100% !important; height: auto !important; border-radius: 20px !important; padding: 8px !important; margin-top: 8px !important; font-size: 0.8rem !important; font-weight: 500 !important; display: flex !important; justify-content: center !important; align-items: center !important; gap: 5px !important;
    }
    .add-to-cart::after { content: none !important; }
    .qty-control { display: none !important; }

    /* Bottom Nav Visible */
    .bottom-nav {
        position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; display: flex; justify-content: space-around; padding: 10px 0; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 999;
    }
    .nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #888; gap: 4px; position: relative; }
    .nav-item.active { color: #d35400; }
    .nav-item span { font-size: 0.65rem; font-weight: 500; }
    .cart-badge-bottom {
        position: absolute;
        top: -5px;
        right: calc(50% - 20px);
        background: #1a1a1a;
        color: #fff !important;
        font-size: 0.55rem !important;
        padding: 2px 5px;
        border-radius: 10px;
        font-weight: bold;
    }
}

.spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Favorites Mode (Mobile Full Screen) */
@media (max-width: 768px) {
    body.favorites-mode .hero-app,
    body.favorites-mode .category-stories-wrapper,
    body.favorites-mode .brand-values-app,
    body.favorites-mode .brand-footer,
    body.favorites-mode .app-version-footer { display: none !important; }
}

/* Admin Grid Layout Tweaks for Dashboard */
.admin-modal { max-width: 1100px !important; height: 90vh !important; }
.admin-form { display: flex !important; flex-direction: column !important; gap: 15px !important; max-width: 800px; margin: 0 auto; }
.admin-form .image-upload-wrapper, .admin-form .admin-actions { grid-column: auto !important; }

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    margin: auto;
    min-height: 60vh;
}
/* Cart Tab Mode (Mobile Full Screen) */
@media (max-width: 768px) {
    body.cart-mode #cart-drawer,
    body.favorites-mode #favorites-drawer {
        position: static !important;
        display: flex;
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 0;
        padding-bottom: 100px;
        background: transparent;
    }
    body.cart-mode .close-cart, body.favorites-mode .close-cart { display: none !important; }
    body.cart-mode main, body.favorites-mode main { display: none !important; }
    body.cart-mode .brand-footer, body.cart-mode .app-version-footer,
    body.favorites-mode .brand-footer, body.favorites-mode .app-version-footer { display: none !important; }
    body.cart-mode .header, body.favorites-mode .header { border-bottom: 1px solid #eee; box-shadow: none; }
    body.cart-mode .cart-header, body.favorites-mode .cart-header { padding: 30px 20px 20px 20px; border-bottom: 1px solid #ddd; border-top: none; }
    body.cart-mode .cart-header h3, body.favorites-mode .cart-header h3 { margin: 0 !important; line-height: 1; }
    body.cart-mode .cart-items, body.favorites-mode .cart-items { padding: 0 20px; }
    body.cart-mode .cart-footer, body.favorites-mode .cart-footer { padding: 0 20px 20px 20px; }
}
.empty-icon-circle {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.empty-state p {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.empty-state-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.2);
    transition: background 0.3s;
}
.empty-state-btn:hover { background: #2ecc71; }

/* View Switching */
.admin-view {
    display: none;
    animation: fadeInModal 0.3s ease;
}
.admin-view.active {
    display: block;
}


/* Desktop Web Improvements */
.desktop-nav { display: none; }
@media (min-width: 768px) {
  .desktop-nav { display: flex; align-items: center; gap: 20px; margin-right: 15px; }
  .desktop-nav-icon { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-dark); font-size: 0.75rem; position: relative; transition: color 0.2s; }
  .desktop-nav-icon:hover { color: var(--accent); }
  .desktop-nav-icon span { margin-top: 3px; font-weight: 500; }
  .cart-badge-desktop { position: absolute; top: -5px; right: 0; background: var(--accent); color: var(--white); font-size: 0.6rem; font-weight: bold; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  body.cart-mode #cart-drawer, body.favorites-mode #favorites-drawer { right: 0; }
  .drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.4); z-index: 2199; opacity: 0; visibility: hidden; transition: all 0.3s ease;
  }
  body.cart-mode .drawer-overlay, body.favorites-mode .drawer-overlay { opacity: 1; visibility: visible; }
  body.favorites-mode .empty-state { min-height: 40vh; }
}

@media (min-width: 768px) { .hero-card { height: 450px; } }


/* Sort Dropdown UI */
.sort-wrapper-app { position: relative; display: inline-flex; align-items: center; }
.sort-select { appearance: none; -webkit-appearance: none; background: #fff; border: 1px solid #ddd; padding: 8px 30px 8px 15px; border-radius: 8px; font-family: inherit; font-size: 0.85rem; color: var(--text-dark); cursor: pointer; outline: none; transition: border-color 0.2s, box-shadow 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.sort-select:hover { border-color: var(--accent); }
.sort-select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(186,163,132,0.2); }
.sort-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #888; display: flex; }


/* Grid View Toggle UI */
.grid-view-toggle { display: flex; background: #fff; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.grid-toggle-btn { background: none; border: none; padding: 6px 10px; cursor: pointer; color: #888; border-right: 1px solid #eee; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.grid-toggle-btn:last-child { border-right: none; }
.grid-toggle-btn:hover { color: var(--accent); background: #fdfdfd; }
.grid-toggle-btn.active { color: var(--accent); background: #faf4ef; font-weight: bold; box-shadow: inset 0 0 5px rgba(0,0,0,0.02); }

/* Dynamic Grid Overrides */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .product-grid.grid-view-2 { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .product-grid.grid-view-3 { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
}
@media (min-width: 769px) {
    .mobile-only { display: none !important; }
    .product-grid.grid-view-4 { grid-template-columns: repeat(4, 1fr) !important; }
    .product-grid.grid-view-5 { grid-template-columns: repeat(5, 1fr) !important; }
    .product-grid.grid-view-6 { grid-template-columns: repeat(6, 1fr) !important; }
}

/* Sort Icon Button Overrides */
.sort-wrapper-app.responsive-sort { position: relative; display: inline-flex; align-items: center; }
.responsive-sort .sort-icon-btn { display: none; }

@media (max-width: 768px) {
    .sort-wrapper-app.responsive-sort { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #ddd; background: #fff; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
    .sort-wrapper-app.responsive-sort:hover { border-color: var(--accent); }
    .responsive-sort .sort-select { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; padding: 0; appearance: none; -webkit-appearance: none; border: none; box-shadow: none; }
    .responsive-sort .sort-icon-btn { color: var(--text-dark); display: flex; align-items: center; justify-content: center; z-index: 1; pointer-events: none; }
}
