/* ============================================
   SHOPGHANA - COMPLETE STYLES
   File: css/style.css
   ============================================ */

/* ===== MATERIAL ICONS ===== */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== ZOOM CONTAINER ===== */
.zoom-container:hover .main-image {
  transform: scale(1.5);
}

.main-image {
  transition: transform 0.4s ease;
}

/* ===== CUSTOM SCROLLBAR ===== */
.custom-scrollbar::-webkit-scrollbar {
  height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #dcc2af;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== PRODUCT CARD HOVER ===== */
.product-card-hover {
  transition: all 0.3s ease;
}

.product-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

/* ===== THUMBNAIL ITEMS ===== */
.thumbnail-item {
  transition: border-color 0.2s ease;
}

.thumbnail-item:hover {
  border-color: #914d00;
}

.thumbnail-item.active {
  border-color: #914d00;
  border-width: 2px;
}

/* ===== OPTION BUTTONS ===== */
.option-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}

.option-btn.selected {
  border-color: #914d00;
  border-width: 2px;
  background-color: #ffdcc3;
  color: #5e3000;
}

.option-btn:not(.selected):hover {
  border-color: #914d00;
}

/* ===== QUANTITY INPUT ===== */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input {
  -moz-appearance: textfield;
}

/* ===== TABS ===== */
.tab-btn {
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn.active {
  border-color: #914d00;
  color: #914d00;
  font-weight: 700;
}

.tab-btn:not(.active) {
  border-color: transparent;
  color: #554335;
}

.tab-btn:not(.active):hover {
  color: #914d00;
}

.tab-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== TOAST NOTIFICATION ===== */
.toast-notification {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background-color: #1a1c1c;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-50%) translateY(1rem);
  max-width: 90%;
  text-align: center;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== CART DRAWER ===== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background-color: white;
  z-index: 100;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 99;
  transition: opacity 0.3s ease;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  transition: all 0.2s ease;
}

.cart-item:hover {
  background-color: #f3f3f3;
}

/* ===== CART BADGE ===== */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ba1a1a;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  transition: all 0.7s ease;
  opacity: 0;
  transform: translateY(0.625rem);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BENTO GRID ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* ===== LINE CLAMP ===== */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .zoom-container:hover .main-image {
    transform: scale(1.2);
  }
  
  .bento-grid {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .zoom-container:hover .main-image {
    transform: scale(1.1);
  }
  
  .bento-grid {
    gap: 8px;
  }
  
  .cart-drawer {
    max-width: 100%;
  }
}