/* =====================================================
   SAMIRA DIAMANTE - PROFESSIONAL STYLES
   ===================================================== */

/* ===================== BASE & RESET ===================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================== ACCESSIBILITY ===================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background: #1A3C34;
  color: white;
  z-index: 9999;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Focus States */
:focus-visible {
  outline: 2px solid #C9A227;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #C9A227;
  outline-offset: 2px;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Reveal on Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== TYPOGRAPHY ===================== */
.font-serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: #1A3C34;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
}

.btn-primary:hover {
  background-color: #122A24;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(26, 60, 52, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: transparent;
  color: #1A3C34;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  border: 1.5px solid #1A3C34;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  border-radius: 0.5rem;
}

.btn-outline:hover {
  background-color: #1A3C34;
  color: white;
  transform: translateY(-2px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: #C9A227;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
}

.btn-gold:hover {
  background-color: #A8871E;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(201, 162, 39, 0.3);
}

/* ===================== NAVIGATION ===================== */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1A3C34;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #C9A227;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #C9A227;
}

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

.mobile-nav-link {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1A3C34;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(26, 60, 52, 0.1);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
  color: #C9A227;
  padding-left: 0.5rem;
}

/* ===================== CART ===================== */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background-color: #C9A227;
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(26, 60, 52, 0.1);
}

.cart-item:last-child {
  border-bottom: none;
}

/* ===================== PRODUCT CARDS ===================== */
.product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(26, 60, 52, 0.15);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #F0EDE5 0%, #FAF8F3 100%);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  background: #C9A227;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
}

.product-add-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card:hover .product-add-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-add-btn:hover {
  background: #1A3C34;
  color: white;
}

.product-card-content {
  padding: 1.5rem;
}

/* Special Product Card (Pack) */
.product-card.special {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .product-card.special {
    grid-column: span 1;
  }
}

/* ===================== FAQ ACCORDION ===================== */
.faq-item {
  background: #FAF8F3;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: #F0EDE5;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #1A3C34;
}

.faq-question:hover {
  color: #C9A227;
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #C9A227;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: rgba(26, 60, 52, 0.7);
  line-height: 1.7;
}

/* ===================== IMAGE PLACEHOLDERS ===================== */
.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F0EDE5 0%, #E8E6E1 100%);
  color: #1A3C34;
  text-align: center;
  padding: 2rem;
}

.placeholder-image svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.placeholder-image .placeholder-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.placeholder-image .placeholder-size {
  font-size: 0.625rem;
  opacity: 0.3;
  margin-top: 0.25rem;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F0EDE5;
}

::-webkit-scrollbar-thumb {
  background: #C9A227;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A8871E;
}

/* ===================== SELECTION ===================== */
::selection {
  background: #C9A227;
  color: white;
}

/* ===================== UTILITIES ===================== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .btn-primary,
  .btn-outline,
  .btn-gold {
    padding: 0.875rem 1.5rem;
    font-size: 0.8125rem;
  }
}

/* ===================== LOADING STATES ===================== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===================== PRINT STYLES ===================== */
@media print {
  nav, footer, .cart-sidebar, .whatsapp-btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: black;
    background: white;
  }
}
