
/* Product Item Card Styles (matching app-home.js) */
.product-item-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.product-item-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}

.product-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

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

.product-item-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-item-badge.best-seller {
  background: #9333ea;
  color: white;
}

.product-item-badge.price-drop {
  background: #dc2626;
  color: white;
}

.product-item-badge.new {
  background: #10b981;
  color: white;
}

.product-item-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-item-name {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  font-family: "Playfair Display", serif;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-item-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-item-price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.product-item-price-old {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Tablet: 3 columns */
@media (min-width: 600px) {
  .products-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
  .products-grid {
      grid-template-columns: repeat(4, 1fr);
  }
}

/* Product Category Chips */
.product-category-chip {
  --chip-bg: white;
  --chip-text: #64748b;
  --chip-border: #e2e8f0;
  --chip-active-bg: var(--primary);
  
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--chip-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.product-category-chip svg {
  width: 18px;
  height: 18px;
  transition: stroke 0.3s;
}

.product-category-chip:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.product-category-chip.active {
  background: var(--chip-active-bg);
  color: white;
  border-color: var(--chip-active-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: scale(1.05);
}

.product-category-chip.active svg {
    stroke: white;
}

.dark .product-category-chip {
  --chip-bg: rgba(255,255,255,0.05);
  --chip-border: rgba(255,255,255,0.1);
  --chip-text: #94a3b8;
}

.dark .product-category-chip:hover {
  background: rgba(255,255,255,0.1);
}

.dark .product-category-chip.active {
  background: var(--chip-active-bg);
  color: white;
  border-color: var(--chip-active-bg);
}

/* Gift Card Styling */
.gift-card {
    width: 100%;
    min-width: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-card-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gift-card:hover .gift-card-image {
    transform: scale(1.05);
}

.gift-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gift-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gift-card-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gift-card-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.gift-card:hover .gift-card-btn {
    opacity: 1;
    transform: scale(1);
}

.dark .gift-card {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.1);
}

/* Snack Card Styling */
.snack-card {
    min-width: 180px;
    width: 180px;
    background: #FFF8E1; /* Light Amber/Cream background */
    border-radius: 24px; /* More rounded */
    overflow: visible; /* For floating image effect */
    position: relative;
    margin-top: 30px; /* Space for floating image */
    padding: 0 12px 12px 12px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.snack-card-image-wrapper {
    width: 140px;
    height: 140px;
    margin: -40px auto 10px auto; /* Pull image up */
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border: 4px solid white;
    background: white;
    position: relative;
}

.snack-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.snack-card:hover .snack-card-image {
    transform: scale(1.1) rotate(5deg);
}

.snack-card-content {
    text-align: center;
}

.snack-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #78350f; /* Amber-900 */
    margin-bottom: 0.25rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.snack-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #d97706; /* Amber-600 */
    margin-top: 4px;
}

.snack-add-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: #fbbf24; /* Amber-400 */
    color: #78350f;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.3);
    transition: all 0.2s ease;
}

.snack-add-btn:active {
    transform: scale(0.9);
}

.dark .snack-card {
    background: #2a1c10; /* Dark Brown */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dark .snack-card-image-wrapper {
    border-color: #3f2e22;
}

.dark .snack-card-title {
    color: #fcd34d; /* Amber-300 */
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 200% 100%; 
    animation-duration: 1.5s;
    animation-fill-mode: forwards; 
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
}

.dark .shimmer {
    background: #2a2a2a;
    background-image: linear-gradient(to right, #2a2a2a 0%, #3a3a3a 20%, #2a2a2a 40%, #2a2a2a 100%);
}

.shimmer-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.pastry-filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.pastry-filter-btn.active[data-cat="chocalate"] {
    background: linear-gradient(135deg, #EE2B4B, #C2185B) !important;
    color: white !important;
    border-color: #EE2B4B !important;
    box-shadow: 0 4px 12px rgba(238, 43, 75, 0.4);
}

.pastry-filter-btn.active[data-cat="pastry"] {
    background: linear-gradient(135deg, #F06292, #E91E63) !important;
    color: white !important;
    border-color: #F06292 !important;
    box-shadow: 0 4px 12px rgba(240, 98, 146, 0.4);
}

.pastry-filter-btn.active[data-cat="both"] {
    background: linear-gradient(135deg, #795548, #4E342E) !important;
    color: white !important;
    border-color: #795548 !important;
    box-shadow: 0 4px 12px rgba(121, 85, 72, 0.4);
}

.savory-filter-btn.active[data-cat="cookies"] {
    background: linear-gradient(135deg, #8D6E63, #5D4037) !important;
    color: white !important;
    border-color: #8D6E63 !important;
    box-shadow: 0 4px 12px rgba(141, 110, 99, 0.4);
}

.savory-filter-btn.active[data-cat="khari"] {
    background: linear-gradient(135deg, #FFB74D, #F57C00) !important;
    color: white !important;
    border-color: #FFB74D !important;
    box-shadow: 0 4px 12px rgba(255, 183, 77, 0.4);
}

.savory-filter-btn.active[data-cat="snacks"] {
    background: linear-gradient(135deg, #4DB6AC, #00796B) !important;
    color: white !important;
    border-color: #4DB6AC !important;
    box-shadow: 0 4px 12px rgba(77, 182, 172, 0.4);
}

.savory-filter-btn.active[data-cat="all"] {
    background: linear-gradient(135deg, #FFA000, #E65100) !important;
    color: white !important;
    border-color: #FFA000 !important;
    box-shadow: 0 4px 12px rgba(255, 160, 0, 0.4);
}

.dessert-filter-btn.active[data-cat="brownie"] {
    background: linear-gradient(135deg, #5D4037, #3E2723) !important;
    color: white !important;
    border-color: #5D4037 !important;
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.4);
}

.dessert-filter-btn.active[data-cat="mousse"] {
    background: linear-gradient(135deg, #EC407A, #AD1457) !important;
    color: white !important;
    border-color: #EC407A !important;
    box-shadow: 0 4px 12px rgba(236, 64, 122, 0.4);
}

.dessert-filter-btn.active[data-cat="cupcake"] {
    background: linear-gradient(135deg, #F06292, #C2185B) !important;
    color: white !important;
    border-color: #F06292 !important;
    box-shadow: 0 4px 12px rgba(240, 98, 146, 0.4);
}

.dessert-filter-btn.active[data-cat="all"] {
    background: linear-gradient(135deg, #FF4081, #C51162) !important;
    color: white !important;
    border-color: #FF4081 !important;
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.4);
}


/* Quote Sheet Styles */
#quote-sheet {
    transition: all 0.3s ease;
}

#quote-backdrop {
    transition: opacity 0.3s ease;
}

#quote-content {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.quote-input:focus {
    border-color: #EE2B4B;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(238, 43, 75, 0.1);
}

.dark .quote-input {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: white;
}

.dark .quote-input:focus {
    background: rgba(255,255,255,0.1);
    border-color: #EE2B4B;
}

.dark .shimmer-card {
    background: rgba(255,255,255,0.05);
}




