/*
Theme Name: Eternalove by S
Theme URI: https://etrnlv.com
Description: Custom roze tema za Eternalove by S
Version: 1.0
Author: Eternalove by S
Text Domain: eternalove
*/

/* === RESET & OSNOVA === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #fff5f8;
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

a { color: #e91e63; text-decoration: none; }
a:hover { color: #c2185b; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 { color: #880e4f; font-weight: 700; line-height: 1.25; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* === NAVIGACIJA === */
.site-header {
  background: #fff;
  border-bottom: 2px solid #fcd5e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo img { height: 48px; width: auto; }
.site-logo .text-logo {
  font-size: 16px;
  font-weight: 700;
  color: #c2185b;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.primary-nav ul { list-style: none; display: flex; gap: 28px; }
.primary-nav ul li a {
  font-size: 14px;
  color: #888;
  font-weight: 500;
  transition: color 0.2s;
}
.primary-nav ul li a:hover { color: #e91e63; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.cart-link {
  background: #f48fb1;
  color: #fff;
  border-radius: 25px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.cart-link:hover { background: #e91e63; color: #fff; }
.cart-link .count {
  background: #fff;
  color: #e91e63;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #c2185b;
  border-radius: 2px;
  transition: all 0.3s;
}

/* === HERO SEKCIJA === */
.hero {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #fce4ec 100%);
  padding: 64px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-sparkles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  color: #f48fb1;
  font-size: 18px;
  opacity: 0.4;
}

.hero-badge {
  display: inline-block;
  background: #f48fb1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 42px;
  color: #880e4f;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 em {
  color: #e91e63;
  font-style: normal;
}

.hero p {
  font-size: 16px;
  color: #ad4d74;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: #e91e63;
  color: #fff;
  padding: 13px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: #c2185b; color: #fff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #e91e63;
  padding: 13px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #e91e63;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: #e91e63; color: #fff; }

.hero-tags {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-tag {
  background: #fff;
  border: 1px solid #f8bbd0;
  border-radius: 25px;
  padding: 6px 16px;
  font-size: 13px;
  color: #c2185b;
  font-weight: 500;
}

/* === SEKCIJA NASLOVI === */
.section-header {
  text-align: center;
  padding: 48px 24px 24px;
}
.section-header h2 { font-size: 28px; margin-bottom: 6px; }
.section-header p { font-size: 14px; color: #ad4d74; }
.section-divider {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #f48fb1, #e91e63);
  border-radius: 4px;
  margin: 12px auto 0;
}

/* === KATEGORIJE === */
.category-filter {
  display: flex;
  gap: 10px;
  padding: 0 24px 28px;
  overflow-x: auto;
  max-width: 1200px;
  margin: 0 auto;
}
.category-filter::-webkit-scrollbar { display: none; }
.cat-btn {
  background: #fff;
  border: 1.5px solid #f8bbd0;
  border-radius: 25px;
  padding: 9px 20px;
  white-space: nowrap;
  font-size: 13px;
  color: #c2185b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cat-btn:hover, .cat-btn.active {
  background: #e91e63;
  color: #fff;
  border-color: #e91e63;
}

/* === GRID PROIZVODA === */
.products-section { padding: 0 24px 48px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === KARTICA PROIZVODA === */
.product-card {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid #fce4ec;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(233,30,99,0.12);
}

.product-card .card-image {
  position: relative;
  overflow: hidden;
  background: #fce4ec;
  height: 260px !important;
  max-height: 260px !important;
}
.product-card .card-image img {
  width: 100% !important;
  height: 260px !important;
  max-height: 260px !important;
  object-fit: cover !important;
  object-position: center !important;
  aspect-ratio: unset !important;
  transition: transform 0.3s;
}
.product-card:hover .card-image img { transform: scale(1.04); }

.product-card .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e91e63;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card .card-badge.out-of-stock { background: #aaa; }
.product-card .card-badge.sale { background: #f48fb1; }

.product-card .card-body { padding: 14px 16px 16px; }
.product-card .card-body h3 {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-card .price {
  font-size: 16px;
  font-weight: 700;
  color: #e91e63;
}
.product-card .price del { color: #bbb; font-weight: 400; font-size: 13px; }
.product-card .card-btn {
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.product-card .card-btn:hover { background: #c2185b; }
.product-card .card-btn.select { background: #fce4ec; color: #c2185b; }
.product-card .card-btn.select:hover { background: #e91e63; color: #fff; }

/* === WOOCOMMERCE OVERRIDE === */
.woocommerce ul.products { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 0; padding: 0; }
.woocommerce ul.products li.product { background: #fff; border-radius: 20px; border: 1.5px solid #fce4ec; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; margin: 0; padding-bottom: 16px; }
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(233,30,99,0.12); }
.woocommerce ul.products li.product a img { border-radius: 0; width: 100% !important; height: 260px !important; max-height: 260px !important; object-fit: cover !important; object-position: center !important; aspect-ratio: unset !important; display: block !important; }
.woocommerce ul.products li.product a { display: block; overflow: hidden; height: 260px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; font-weight: 500; color: #333; padding: 12px 16px 6px; }
.woocommerce ul.products li.product .price { color: #e91e63; font-weight: 700; font-size: 15px; padding: 0 16px 8px; display: block; }
.woocommerce ul.products li.product .button { margin: 0 16px; display: block; text-align: center; background: #e91e63; color: #fff; border-radius: 25px; padding: 9px 16px; font-size: 13px; font-weight: 600; border: none; transition: background 0.2s; }
.woocommerce ul.products li.product .button:hover { background: #c2185b; color: #fff; }
.woocommerce ul.products li.product a.button.product_type_variable { background: #fce4ec; color: #c2185b; border: 1.5px solid #f8bbd0; }
.woocommerce ul.products li.product a.button.product_type_variable:hover { background: #e91e63; color: #fff; }
.woocommerce span.onsale { background: #f48fb1; border-radius: 20px; font-size: 11px; padding: 4px 10px; font-weight: 700; }

/* Shop stranica */
.woocommerce-products-header { text-align: center; padding: 40px 0 20px; }
.woocommerce-products-header__title { font-size: 32px; color: #880e4f; }
.woocommerce-ordering select { border: 1.5px solid #f8bbd0; border-radius: 20px; color: #c2185b; background: #fff; padding: 8px 16px; font-size: 13px; }
.woocommerce-result-count { color: #ad4d74; font-size: 13px; }

/* Paginacija */
.woocommerce nav.woocommerce-pagination ul { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 24px 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { border: 1.5px solid #f8bbd0; color: #c2185b; border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current { background: #e91e63; color: #fff; border-color: #e91e63; }

/* Pojedinačni proizvod */
.woocommerce div.product .product_title { font-size: 28px; color: #880e4f; margin-bottom: 12px; }
.woocommerce div.product p.price { color: #e91e63; font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.woocommerce div.product form.cart .button { background: #e91e63; border-radius: 30px; padding: 14px 32px; font-size: 16px; font-weight: 700; border: none; color: #fff; }
.woocommerce div.product form.cart .button:hover { background: #c2185b; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #e91e63; border-bottom: 2px solid #e91e63; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #888; }

/* Korpa */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { background: #e91e63; border-radius: 30px; font-size: 16px; font-weight: 700; padding: 14px 28px; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: #c2185b; }
.woocommerce-cart .cart_totals h2 { color: #880e4f; }

/* Notifikacije */
.woocommerce-message { border-top-color: #e91e63; background: #fce4ec; color: #880e4f; }
.woocommerce-message a.button { background: #e91e63; color: #fff; border-radius: 20px; }
.woocommerce-info { border-top-color: #f48fb1; }
.woocommerce-error { border-top-color: #e91e63; }

/* Checkout */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout h3 { color: #880e4f; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea { border: 1.5px solid #f8bbd0; border-radius: 10px; padding: 10px 14px; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { border-color: #e91e63; outline: none; }
#place_order { background: #e91e63 !important; border-radius: 30px !important; font-size: 16px !important; font-weight: 700 !important; padding: 14px 32px !important; }

/* === WORKSHOP BANER === */
.workshop-banner {
  background: #e91e63;
  margin: 0 24px 48px;
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
}
.workshop-banner .banner-text h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.workshop-banner .banner-text p { color: rgba(255,255,255,0.88); font-size: 14px; }
.workshop-banner .btn-white {
  background: #fff;
  color: #e91e63;
  padding: 11px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.2s;
  white-space: nowrap;
}
.workshop-banner .btn-white:hover { background: #fce4ec; }

/* === TRUST SEKCIJA === */
.trust-section {
  background: #fce4ec;
  padding: 40px 24px;
  text-align: center;
}
.trust-section p { font-size: 15px; color: #c2185b; line-height: 1.8; }
.trust-section strong { color: #880e4f; font-weight: 700; }
.trust-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.trust-chip {
  background: #fff;
  border-radius: 25px;
  padding: 8px 18px;
  font-size: 13px;
  color: #c2185b;
  font-weight: 600;
}

/* === FOOTER === */
.site-footer {
  background: #fff;
  border-top: 2px solid #fce4ec;
  padding: 40px 24px 24px;
  text-align: center;
}
.footer-logo {
  font-size: 14px;
  font-weight: 700;
  color: #c2185b;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-nav a { font-size: 13px; color: #888; transition: color 0.2s; }
.footer-nav a:hover { color: #e91e63; }
.footer-social { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.social-btn {
  background: #fce4ec;
  color: #c2185b;
  border-radius: 25px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.social-btn:hover { background: #e91e63; color: #fff; }
.footer-copy { font-size: 12px; color: #bbb; margin-top: 10px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .primary-nav { display: none; }
  .primary-nav.open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 2px solid #fce4ec; padding: 16px 24px; }
  .primary-nav.open ul { flex-direction: column; gap: 12px; }
  .nav-toggle { display: flex; }
  .products-grid, .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .workshop-banner { flex-direction: column; text-align: center; }
  .section-header h2 { font-size: 22px; }
}

@media (max-width: 480px) {
  .products-grid, .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 16px 32px; }
  .hero h1 { font-size: 24px; }
  .container { padding: 0 16px; }
}

/* === GRID FIX - DESKTOP === */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  max-width: 1200px !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border-radius: 20px !important;
  border: 1.5px solid #fce4ec !important;
  overflow: hidden !important;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 0 14px 0 !important;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  width: 100% !important;
  height: 220px !important;
  max-height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.woocommerce ul.products li.product > a:first-child,
.woocommerce-page ul.products li.product > a:first-child {
  display: block !important;
  height: 220px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

@media (max-width: 900px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}
