/*
Theme Name: Luxe Fashion
Theme URI: https://example.com/luxe-fashion
Author: Your Name
Author URI: https://example.com
Description: A modern, luxury Elementor WooCommerce WordPress theme for fashion and apparel brands
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luxe-fashion
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ==============================================
   RESET & BASE STYLES
   ============================================== */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #d4af37;
  --accent-color: #f5f5f5;
  --text-color: #333;
  --light-gray: #f9f9f9;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Playfair Display', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--secondary-color);
}

/* ==============================================
   HEADER & NAVIGATION
   ============================================== */

.site-header {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.site-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
}

.site-logo a {
  color: inherit;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

.main-navigation a {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-navigation a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.main-navigation a:hover:after {
  width: 100%;
}

.header-icons {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-icon {
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==============================================
   HERO SECTION
   ============================================== */

.hero-section {
  height: 70vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="dots" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect fill="url(%23dots)" width="1200" height="600"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 4rem;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border-radius: 2px;
  font-size: 0.9rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: var(--primary-color);
}

/* ==============================================
   PRODUCTS GRID
   ============================================== */

.products-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

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

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

.product-card {
  background: #fff;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
  background-color: var(--light-gray);
  position: relative;
}

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

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

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--secondary-color);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-rating {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.product-price {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-original {
  text-decoration: line-through;
  color: #999;
}

.add-to-cart-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

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

.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget h4 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 0.75rem;
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-widget a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ==============================================
   WOOCOMMERCE STYLES
   ============================================== */

.woocommerce-message,
.woocommerce-info {
  background-color: #f5f5f5;
  border: 1px solid var(--border-color);
  padding: 1rem;
  margin-bottom: 1rem;
}

.woocommerce .product {
  margin-bottom: 2rem;
}

.star-rating {
  color: var(--secondary-color);
}

.woocommerce-loop-product__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.woocommerce .products.columns-3 li.product {
  width: 31.33%;
}

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

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
  }

  .main-navigation.active {
    display: flex;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }

  .header-content {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-section {
    height: 50vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  .product-image {
    height: 250px;
  }

  .products-section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
}
