/*
Theme Name: Norex Clothing International
Theme URI: https://norexclothing.com
Author: Norex Team
Author URI: https://norexclothing.com
Description: A luxury fashion eCommerce theme for Norex Clothing International - Our Creativity Makes You Gorgeous
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: norex-clothing
Tags: e-commerce, fashion, woocommerce, blog, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo, custom-background

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ==========================================================================
   Table of Contents
   ========================================================================== */

/*
 1. CSS Variables & Root Styles
 2. Reset & Base Styles
 3. Typography
 4. Layout & Grid
 5. Header & Navigation
 6. Hero Section
 7. Buttons & CTAs
 8. Product Grid & Cards
 9. Footer
 10. WooCommerce Overrides
 11. Responsive Media Queries
*/

/* ==========================================================================
   1. CSS Variables & Root Styles
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-primary: #FFFFFF;
  --color-secondary: #000000;
  --color-accent: #D4AF37;
  --color-gray-light: #F5F5F5;
  --color-gray-medium: #CCCCCC;
  --color-gray-dark: #333333;
  --color-text: #333333;
  --color-text-light: #666666;
  
  /* Typography */
  --font-heading: 'Montserrat', 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;
  
  /* Layout */
  --container-max: 1400px;
  --container-padding: 2rem;
  --border-radius: 4px;
  --transition: all 0.3s ease;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-light);
}

.small-text {
  font-size: 0.875rem;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

/* ==========================================================================
   4. Layout & Grid
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.container-narrow {
  max-width: 1000px;
}

.container-wide {
  max-width: 1600px;
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-sm {
  padding: var(--spacing-lg) 0;
}

.section-lg {
  padding: 8rem 0;
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}

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

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

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

.flex {
  display: flex;
  gap: var(--spacing-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */

.site-header {
  background: var(--color-primary);
  border-bottom: 1px solid var(--color-gray-medium);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  min-height: 80px;
}

.site-logo img {
  max-height: 50px;
  width: auto;
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  position: relative;
}

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

.main-navigation a:hover::after,
.main-navigation a.current-menu-item::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

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

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

.currency-switcher {
  position: relative;
}

.currency-switcher select {
  border: 1px solid var(--color-gray-medium);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  background: var(--color-primary);
  cursor: pointer;
  font-weight: 500;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-secondary);
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-gray-light);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-primary);
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  color: var(--color-primary);
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slogan {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--color-primary);
}

/* ==========================================================================
   7. Buttons & CTAs
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn-accent {
  background: var(--color-accent);
  color: var(--color-secondary);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

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

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   8. Product Grid & Cards
   ========================================================================== */

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

.product-card {
  position: relative;
  background: var(--color-primary);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-gray-light);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

.product-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-actions {
  opacity: 1;
}

.product-action-btn {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-action-btn:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.product-info {
  padding: 1.5rem 1rem;
}

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

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

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

.product-price del {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-right: 0.5rem;
  font-weight: 400;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.site-footer {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xxl);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-widget h3 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-widget a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

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

.footer-logo {
  max-height: 40px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   10. WooCommerce Overrides
   ========================================================================== */

.woocommerce-breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.woocommerce div.product .product-images {
  display: grid;
  gap: 1rem;
}

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

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  background: var(--color-accent);
}

/* ==========================================================================
   11. Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --container-padding: 1.5rem;
    --spacing-xxl: 4rem;
  }
  
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xxl: 3rem;
    --spacing-xl: 2rem;
  }
  
  .hero-section {
    min-height: 400px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .header-actions {
    gap: 1rem;
  }
  
  .currency-switcher select {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.no-scroll {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}
