/*
Theme Name: Anantaya Luxe
Theme URI: https://example.com
Author: Custom Build
Author URI: https://example.com
Description: A premium, Elementor-first WooCommerce theme for luxury saree brands. The theme supplies structure, performance, WooCommerce integration, and design tokens — Elementor owns every visual layout, including the homepage, shop, and single product templates.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anantaya
Tags: e-commerce, custom-logo, custom-menu, featured-images, full-width-template, translation-ready, block-styles, wide-blocks
*/

/* -----------------------------------------------------------------------
   NOTE ON ARCHITECTURE
   WordPress requires this file to exist with the header above so the
   theme is recognized. Actual styles are split into assets/css/ and
   enqueued from inc/enqueue.php, so browser caching and conditional
   loading (e.g. WooCommerce-only styles on shop pages) work properly.
   The variables below are the single source of truth for brand design
   tokens, and are also mirrored into Elementor's Global Colors/Fonts
   in inc/elementor.php so page builders and PHP templates never drift
   out of sync.
----------------------------------------------------------------------- */

:root {
  /* Brand palette — deep indigo, aged zari gold, temple maroon, ivory */
  --anantaya-color-ink: #1F2645;
  --anantaya-color-ivory: #F7F1E6;
  --anantaya-color-gold: #B98B3E;
  --anantaya-color-maroon: #6E1F2A;
  --anantaya-color-sage: #6B7A4C;
  --anantaya-color-charcoal: #211D1D;
  --anantaya-color-muted: #8A8676;
  --anantaya-color-border: rgba(33, 29, 29, 0.12);

  /* Typography */
  --anantaya-font-display: "Cormorant Garamond", "Playfair Display", serif;
  --anantaya-font-body: "Manrope", "Inter", sans-serif;

  /* Spacing scale (used by PHP templates that fall outside Elementor,
     e.g. WooCommerce notices, admin-facing markup) */
  --anantaya-space-xs: 8px;
  --anantaya-space-sm: 16px;
  --anantaya-space-md: 24px;
  --anantaya-space-lg: 40px;
  --anantaya-space-xl: 64px;

  /* Motion */
  --anantaya-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --anantaya-speed: 320ms;

  /* Radius — kept small and consistent; luxury reads as restrained,
     not as maximally rounded corners */
  --anantaya-radius: 2px;
}

/* -----------------------------------------------------------------------
   MINIMAL BASE RESET
   Deliberately light-touch: Elementor and WooCommerce both ship their
   own resets, so this theme only normalizes what neither of them touches
   and avoids specificity fights with Elementor's inline widget styles.
----------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--anantaya-font-body);
  color: var(--anantaya-color-charcoal);
  background-color: var(--anantaya-color-ivory);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--anantaya-font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--anantaya-space-sm);
}

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

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

/* Visually hidden but available to assistive tech — the standard
   WordPress pattern, used throughout header.php/footer.php/
   inc/woocommerce.php for icon-only buttons. */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  clip: auto;
  display: block;
}

/* Skip link — accessibility requirement, not something Elementor provides */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999999;
  background: var(--anantaya-color-ink);
  color: var(--anantaya-color-ivory);
  padding: 12px 20px;
}
.skip-link:focus {
  left: var(--anantaya-space-sm);
  top: var(--anantaya-space-sm);
}

/* -----------------------------------------------------------------------
   WOOCOMMERCE BASE COMPONENTS
   These are components that appear inside Elementor's WooCommerce
   widgets (product grids, single product blocks) via shared markup,
   so they're themed once here rather than per-widget.
----------------------------------------------------------------------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  font-family: var(--anantaya-font-body);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background-color: var(--anantaya-color-maroon);
  color: var(--anantaya-color-ivory);
  border: none;
  border-radius: var(--anantaya-radius);
  padding: 12px 28px;
  cursor: pointer;
  transition: background-color var(--anantaya-speed) var(--anantaya-ease),
              transform var(--anantaya-speed) var(--anantaya-ease);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: var(--anantaya-color-ink);
  transform: translateY(-1px);
}

.woocommerce span.onsale {
  background-color: var(--anantaya-color-gold);
  color: var(--anantaya-color-charcoal);
  font-family: var(--anantaya-font-body);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--anantaya-radius);
  min-height: unset;
  min-width: unset;
  padding: 6px 12px;
  line-height: 1;
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  font-family: var(--anantaya-font-display);
}

/* Sticky add-to-cart bar (populated by inc/woocommerce.php) */
.anantaya-sticky-atc {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--anantaya-color-ivory);
  border-top: 1px solid var(--anantaya-color-border);
  padding: var(--anantaya-space-sm) var(--anantaya-space-md);
  transition: bottom var(--anantaya-speed) var(--anantaya-ease);
}
.anantaya-sticky-atc.is-visible {
  bottom: 0;
}

/* Quick View / Wishlist trigger icons on product cards */
.anantaya-product-actions {
  position: absolute;
  top: var(--anantaya-space-sm);
  right: var(--anantaya-space-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--anantaya-speed) var(--anantaya-ease),
              transform var(--anantaya-speed) var(--anantaya-ease);
}
.anantaya-product-card:hover .anantaya-product-actions {
  opacity: 1;
  transform: translateX(0);
}
.anantaya-product-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--anantaya-color-ivory);
  color: var(--anantaya-color-ink);
  cursor: pointer;
}
.anantaya-product-actions button[aria-pressed="true"] {
  color: var(--anantaya-color-maroon);
}
