/*
Theme Name: Zenith Lifestyle
Description: A bold, dark, and stylish WooCommerce theme with an Indian touch for Zenith Lifestyle.
Author: Antigravity AI
Version: 1.0.0
Tags: dark, woocommerce, e-commerce, custom-theme, black, sleek
Text Domain: zenith-lifestyle
*/

:root {
  --color-bg: #0a0a0a;
  --color-surface: #181818;
  --color-surface-hover: #222222;
  --color-text: #f0f0f0;
  --color-text-muted: #999999;
  --color-accent: #b99e69; /* Soft Gold from logo */
  --color-accent-hover: #d2b57e;
  --color-accent-dark: #8c7344;
  --color-border: #2a2a2a;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle Indian Cultural Background Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
  /* A very faint repeating geometric pattern, hinting at traditional motifs */
  background-image: radial-gradient(circle at center, #ffffff 1px, transparent 1px),
                    radial-gradient(circle at center, #ffffff 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Header Navbar
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 4rem;
  max-width: 1800px;
  margin: 0 auto;
  gap: 2rem;
}

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

.site-logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem;
}

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

.main-navigation ul,
.main-navigation div > ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.main-navigation li {
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--color-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  position: relative;
  padding: 0.5rem 0;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

.header-actions .cart-customlocation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  padding: 0.6rem 1rem;
  transition: var(--transition-smooth);
  position: relative;
}

.header-actions .cart-customlocation:hover {
  color: var(--color-accent);
}

.header-actions .cart-icon-svg {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-actions .cart-customlocation:hover .cart-icon-svg {
  transform: translateY(-3px) scale(1.1);
}

.cart-badge {
  background-color: var(--color-accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 12px;
  position: absolute;
  top: 0px;
  right: 0px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; 
  background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
  overflow: hidden;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-title span {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.btn-primary, .btn-outline {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before, .btn-outline::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
  background-color: var(--color-accent) !important;
  color: #000 !important;
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(185, 158, 105, 0.3);
}

.btn-primary:hover::before, .btn-outline:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-text);
  color: var(--color-text) !important;
}

.btn-outline::before {
  background-color: var(--color-text);
}

.btn-outline:hover {
  color: #000 !important;
}

/* ==========================================================================
   Category Grids & Lists
   ========================================================================== */
body:not(.home) .site-main {
  padding-top: 150px; /* Restored to ensure the absolute header clears the content */
}

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

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw + 1rem, 2.5rem);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 1rem auto 0;
}

/* Custom WooCommerce Overrides */
.woocommerce-products-header {
  text-align: center;
  margin-bottom: 3rem;
}

.woocommerce-products-header__title {
  font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
}

/* Fix WooCommerce Grid Offset Bug */
ul.products::before,
ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

/* Custom Filter Container */
.zenith-shop-filters {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.zenith-shop-filters select {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  font-family: var(--font-main);
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 2rem;
}

ul.products li.product {
  background-color: var(--color-surface);
  border-radius: 12px;
  padding: 1.5rem !important;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

ul.products li.product:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 40px rgba(185, 158, 105, 0.15), 0 0 20px rgba(185, 158, 105, 0.1);
}

ul.products li.product img {
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  display: block;
}

ul.products li.product:hover img {
  transform: scale(1.05);
}

/* Bold Pricing */
ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--color-accent) !important;
  font-weight: 800 !important;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem) !important;
  display: block;
  margin: 1rem 0 !important;
}

/* ==========================================================================
   Single Product Custom Tabs (Accordions)
   ========================================================================== */
.zenith-product-accordions {
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.zenith-accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.zenith-accordion-header {
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  user-select: none;
}

.zenith-accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: var(--transition-smooth);
}

.zenith-accordion-item.active .zenith-accordion-header::after {
  content: '-';
  transform: rotate(180deg);
}

.zenith-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--color-text-muted);
}

.zenith-accordion-item.active .zenith-accordion-content {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* WooCommerce Buttons Override */
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button, 
.woocommerce #respond input#submit {
  background-color: var(--color-accent) !important;
  color: #000 !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  border-radius: 50px !important;
  padding: 1rem 2.5rem !important;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.woocommerce a.button::before, 
.woocommerce button.button::before, 
.woocommerce input.button::before, 
.woocommerce #respond input#submit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--color-accent-hover);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover, 
.woocommerce #respond input#submit:hover {
  color: #000 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(185, 158, 105, 0.3) !important;
}

.woocommerce a.button:hover::before, 
.woocommerce button.button:hover::before, 
.woocommerce input.button:hover::before, 
.woocommerce #respond input#submit:hover::before {
  transform: scaleY(1) !important;
  transform-origin: top !important;
}

/* Add to Cart Container */
.woocommerce div.product form.cart {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.woocommerce div.product form.cart div.quantity {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.woocommerce div.product form.cart div.quantity input.qty {
  background: transparent;
  color: var(--color-text);
  border: none;
  font-weight: 600;
}

/* Ensure single product image doesn't touch the edge */
.woocommerce div.product div.images,
.woocommerce-product-gallery {
  padding: 1rem;
  background-color: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.woocommerce div.product div.images img {
  border-radius: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #050505;
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

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

.footer-widget h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

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

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

.footer-widget ul li a {
  color: var(--color-text-muted);
}

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

.site-info {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Mobile Optimization & Responsiveness
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header .container {
    padding: 1.5rem 2rem;
  }
  
  .main-navigation ul {
    gap: 1.5rem;
  }

  /* Force 3 columns on tablets */
  ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  /* Header adjustments */
  .site-header {
    position: relative; /* Scrolls naturally with page */
    background: rgba(10, 10, 10, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .site-header .container {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
  }

  .site-branding {
    width: auto;
    order: 2;
  }

  .site-logo img {
    height: 60px;
  }
  
  .menu-toggle {
    display: block;
    order: 1;
  }

  .header-actions {
    position: relative;
    top: 0;
    right: 0;
    order: 3;
  }

  .header-actions .cart-customlocation {
    padding: 0.4rem;
  }

  .main-navigation {
    display: none; /* Hidden by default on mobile */
    width: 100%;
    order: 4;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .main-navigation.active {
    display: block;
  }

  .main-navigation ul, 
  .main-navigation div > ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  body:not(.home) .site-main {
    padding-top: 5px; /* Fixed: Removed strict clearance since header naturally scrolls */
  }

  /* Ensure text & breadcrumbs never touch mobile screen edges */
  .woocommerce-breadcrumb,
  .woocommerce div.product {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  /* Typography Scaling & Hero Section */
  .hero-section {
    padding-top: 120px;
    height: auto;
    min-height: 80vh;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-title {
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    margin-bottom: 2rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  /* WooCommerce & Layout adjustments */
  .container {
    padding: 2rem 1rem;
  }

  .woocommerce-products-header {
    margin-bottom: 2rem;
  }

  ul.products {
    grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns on mobile */
    gap: 0.8rem !important;
  }
  
  ul.products li.product {
    padding: 0.8rem !important;
  }
  
  /* Bold Pricing Scaled for Mobile */
  ul.products li.product .price,
  .woocommerce div.product p.price,
  .woocommerce div.product span.price {
    font-size: 1.1rem !important;
  }

  .woocommerce div.product form.cart {
    flex-direction: column;
  }

  .woocommerce a.button, 
  .woocommerce button.button, 
  .woocommerce input.button {
    width: 100%;
    text-align: center;
  }

  /* Footer adjustments */
  .footer-widgets {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ==========================================================================
   WooCommerce Reviews & Ratings
   ========================================================================== */
#reviews {
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

#reviews h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.woocommerce .star-rating {
  color: var(--color-accent); /* Make stars our accent gold */
  font-size: 1rem;
  margin: 0.5rem auto;
}

ul.products li.product .star-rating {
  margin: 0.5rem auto 1rem;
}

.woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.woocommerce-product-rating .woocommerce-review-link {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Review List Styling */
#reviews ol.commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

#reviews ol.commentlist li {
  margin-bottom: 2rem;
}

#reviews ol.commentlist li .comment_container {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  display: flex;
  gap: 1.5rem;
}

#reviews ol.commentlist li img.avatar {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  background: var(--color-bg);
  padding: 3px;
}

.comment-text {
  flex: 1;
}

.comment-text p.meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.comment-text p.meta strong {
  color: var(--color-text);
  font-size: 1rem;
}

/* Custom Uploaded Review Images */
.zenith-review-image-wrapper {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zenith-review-image {
  max-width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.zenith-review-image:hover {
  transform: scale(1.05);
  border-color: var(--color-accent);
}

/* Review Form Styling */
#review_form_wrapper {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
  border: 1px solid var(--color-border);
}

.comment-respond .comment-reply-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: block;
}

.comment-form p {
  margin-bottom: 1.5rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 4px;
  font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.comment-form-image input[type="file"] {
  background: var(--color-bg);
  padding: 0.5rem;
  border-radius: 4px;
  width: 100%;
  border: 1px dashed var(--color-border);
  color: var(--color-text-muted);
}
