/*
Theme Name: Dress-Lovers
Theme URI: https://dress-lovers.ro
Description: E-commerce theme for Dress-Lovers fashion store - Child theme for Storefront
Author: Dress-Lovers
Author URI: https://dress-lovers.ro
Template: storefront
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dress-lovers
Domain Path: /languages
*/

@import url('../storefront/style.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================
   ROOT VARIABLES & GLOBAL STYLES
   ============================================ */

:root {
  --primary-color: #c8006a;
  --primary-dark: #a00054;
  --secondary-color: #f5f5f5;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --white: #ffffff;
  --black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

body {
  background-color: var(--white);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

button, .button {
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */

.announcement-bar {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ============================================
   HEADER CUSTOMIZATION
   ============================================ */

.site-header {
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-branding img {
  max-width: 140px;
  height: auto;
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.main-navigation a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* ============================================
   HERO BANNER
   ============================================ */

.hero-banner {
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.hero-banner h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.hero-banner .subtitle {
  font-size: 24px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 40px;
}

.hero-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 300px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}

/* ============================================
   PROMO BANNER
   ============================================ */

.promo-banner {
  background-color: var(--secondary-color);
  padding: 40px 20px;
  margin-bottom: 40px;
}

.promo-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.promo-item {
  text-align: center;
  padding: 20px;
}

.promo-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.promo-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.promo-item p {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.categories-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.category-card:hover .category-overlay {
  transform: translateY(0);
}

.category-overlay h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-overlay p {
  font-size: 13px;
  opacity: 0.9;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
}

.product-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.product-image {
  position: relative;
  overflow: hidden;
  height: 250px;
  background-color: var(--secondary-color);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--danger-color);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 18px;
  color: var(--text-light);
}

.wishlist-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.wishlist-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.product-info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-category {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-price .original {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 400;
}

.add-to-cart-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  margin-top: auto;
}

.add-to-cart-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================================
   STOREFRONT CUSTOMIZATION
   ============================================ */

.storefront-primary-navigation {
  background-color: var(--white);
}

.storefront-primary-navigation a {
  color: var(--text-dark);
  font-weight: 500;
}

.storefront-primary-navigation a:hover {
  color: var(--primary-color);
}

.site-header-cart .widget_shopping_cart a {
  color: var(--primary-color);
}

.site-header-cart .widget_shopping_cart a:hover {
  color: var(--primary-dark);
}

.button, button, input[type="button"], input[type="reset"], input[type="submit"] {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
}

.button:hover, button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover {
  background-color: var(--primary-dark);
}

.woocommerce .star-rating span::before {
  color: #ffc107;
}

/* ============================================
   FOOTER CUSTOMIZATION
   ============================================ */

.site-footer {
  background-color: var(--text-dark);
  color: var(--white);
}

.site-footer a {
  color: #ccc;
}

.site-footer a:hover {
  color: var(--primary-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hero-banner h1 {
    font-size: 32px;
  }

  .hero-banner .subtitle {
    font-size: 18px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }

  .product-image {
    height: 200px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .category-card {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    padding: 40px 15px;
  }

  .hero-banner h1 {
    font-size: 24px;
  }

  .hero-images {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .product-image {
    height: 180px;
  }

  .product-title {
    font-size: 13px;
  }

  .product-price {
    font-size: 14px;
  }

  .add-to-cart-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    height: 250px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}
