/* assets/css/style.css — Стилі інтернет-магазину подарунків та студії Dizzy3d */
:root {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-yellow: #fbbf24;
  --accent-green: #10b981;
  --bg-gradient: linear-gradient(135deg, #fdf4ff 0%, #f0fdfa 50%, #eff6ff 100%);
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.06);
  --shadow-card: 0 10px 25px -5px rgba(124, 58, 237, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 30px -10px rgba(124, 58, 237, 0.25);
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ШАПКА САЙТУ */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #f1f5f9;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}
.logo:hover { transform: scale(1.04) rotate(-1deg); }
.logo span.tag {
  font-size: 11px;
  padding: 2px 7px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #db2777;
  border-radius: var(--radius-pill);
  -webkit-text-fill-color: #db2777;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-item { position: relative; }
.site-nav a, .nav-toggle-link {
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.site-nav a:hover, .nav-toggle-link:hover {
  background: #f5f3ff;
  color: var(--primary);
  transform: translateY(-1px);
}
.site-nav a.nav-highlight {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.site-nav a.nav-highlight:hover {
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.45);
  transform: translateY(-2px);
}

.cart-nav-btn {
  background: #fff0f5 !important;
  color: #be185d !important;
  border: 1.5px solid #fbcfe8 !important;
}
.cart-nav-btn:hover {
  background: #fce7f3 !important;
}
.cart-badge {
  background: #ec4899;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 8px 0;
  border: 1px solid #f1f5f9;
}
.nav-item:hover .dropdown { display: block; animation: dropdownFade 0.2s ease; }
@keyframes dropdownFade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.dropdown a {
  display: block;
  padding: 9px 16px;
  border-radius: 0;
  font-size: 13px;
  color: #475569;
}
.dropdown a:hover {
  background: #faf5ff;
  color: var(--primary);
  padding-left: 20px;
}

.mobile-nav-btn {
  display: none;
  background: #faf5ff;
  border: 1px solid #ddd6fe;
  color: var(--primary);
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* КОНТЕЙНЕР ТА ОСНОВНИЙ БЛОК */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  flex: 1;
  width: 100%;
}
.content-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ХЛІБНІ КРОШКИ */
.breadcrumbs {
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumbs li+li::before {
  content: "•";
  margin-right: 8px;
  color: #cbd5e1;
}
.breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span[aria-current] { color: var(--text-main); font-weight: 700; }

/* HERO-БАНЕР ДЛЯ ГОЛОВНОЇ */
.hero-dizzy {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 70%, #f97316 100%);
  border-radius: 20px;
  padding: 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 35px;
  box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.4);
  position: relative;
  overflow: hidden;
}
.hero-dizzy::after {
  content: "3D";
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 240px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}
.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 17px;
  opacity: 0.95;
  margin: 0 0 25px;
  max-width: 540px;
  line-height: 1.5;
}
.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-badge-item {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #ffffff;
  color: #7c3aed;
  font-size: 16px;
  font-weight: 900;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}
.hero-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
  background: #fff;
  color: #ec4899;
}

/* ВІТРИНА КАТЕГОРІЙ НА ГОЛОВНІЙ */
.cat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 25px 0 40px;
}
.cat-tile-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border: 2px solid #f1f5f9;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.cat-tile-card:hover {
  transform: translateY(-5px);
  border-color: #ddd6fe;
  box-shadow: var(--shadow-hover);
}
.cat-tile-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.2s ease;
}
.cat-tile-card:hover .cat-tile-icon { transform: scale(1.15) rotate(5deg); }
.cat-tile-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
}
.cat-tile-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}
.cat-tile-arrow {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* СІТКА ТОВАРІВ (SHOP GRID) */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 25px;
}
.product-card {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid #f1f5f9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #ddd6fe;
}
.product-thumb {
  aspect-ratio: 1/1;
  background: #faf5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.badge-popular {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
}
.product-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-title:hover { color: var(--primary); }
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.product-price {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}
.btn-buy {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  transition: all 0.2s ease;
}
.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
}
.btn-buy:active { transform: translateY(1px); }

/* КАРТОЧКА ОДНОГО ТОВАРУ */
.single-product-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.single-product-gallery {
  background: #faf5ff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-product-gallery img {
  width: 100%;
  height: auto;
  display: block;
}
.single-price-tag {
  font-size: 32px;
  font-weight: 900;
  color: #7c3aed;
  margin: 15px 0 20px;
}
.badge-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #a7f3d0;
}

/* БЛОК ПЕРЕВАГ */
.features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.feature-box {
  background: #fbfbfe;
  border: 1px solid #ede9fe;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  font-size: 28px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

/* ПЛАВАЮЧА КНОПКА (FAB) */
.fab-contact-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}
.fab-main-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
  border: none;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.fab-main-btn:hover { transform: scale(1.1) rotate(10deg); }
.fab-menu {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 10px;
  min-width: 220px;
  border: 1px solid #f1f5f9;
}
.fab-contact-wrap.active .fab-menu { display: flex; flex-direction: column; gap: 6px; }
.fab-menu a {
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s;
}
.fab-menu a:hover { background: #faf5ff; color: var(--primary); }

/* ПІДВАЛ (FOOTER) */
footer {
  background: #ffffff;
  border-top: 1.5px solid #f1f5f9;
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: auto;
}

/* МОБІЛЬНІСТЬ */
@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 2px solid #f1f5f9;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
  }
  .site-nav.active { display: flex; }
  .mobile-nav-btn { display: block; }
  .hero-dizzy { grid-template-columns: 1fr; padding: 26px; }
  .hero-title { font-size: 28px; }
  .single-product-wrap { grid-template-columns: 1fr; gap: 20px; }
}