/*
Theme Name: Libaaya 2.0
Theme URI: https://libaaya.pk
Author: Libaaya
Author URI: https://libaaya.pk
Description: Libaaya 2.0 — refreshed homepage with full WooCommerce catalog (39 published products auto-loaded), category showcase, and updated wine/rose color theme. All product, shop, cart, and checkout pages keep the original Libaaya WooCommerce styling.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
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: libaaya-2
Tags: e-commerce, woocommerce, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ============================================
   RESET + BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black: #1d1d1f;
  --gray-1: #f5f5f7;
  --gray-2: #86868b;
  --gray-3: #d2d2d7;
  --white: #ffffff;
  --blue: #0071e3;
  --blue-h: #0077ed;
  --red: #c8102e;
  --green: #34c759;
}
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.003em;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.headline-xl { font-size: clamp(48px, 8vw, 96px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.headline-lg { font-size: clamp(40px, 6vw, 72px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.07; }
.headline-md { font-size: clamp(32px, 4vw, 56px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.1; }
.headline-sm { font-size: clamp(24px, 2.5vw, 32px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.eyebrow { font-size: clamp(15px, 1.5vw, 21px); font-weight: 400; color: var(--black); margin-bottom: 8px; }
.body-lg { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--gray-2); font-weight: 400; }
.muted { color: var(--gray-2); }

/* ============================================
   BUTTONS — Apple pill style
   ============================================ */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  border-radius: 980px; border: none;
  font-size: 17px; font-weight: 400; letter-spacing: -0.01em;
  cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.1s;
  white-space: nowrap; text-decoration: none;
}
.btn-pill:active { transform: scale(0.98); }
.btn-blue, .button.alt, button.single_add_to_cart_button, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--blue) !important; color: white !important; border: none !important;
  border-radius: 980px !important; padding: 12px 22px !important;
  font-weight: 400 !important; font-size: 15px !important; letter-spacing: -0.01em !important;
}
.btn-blue:hover, .button.alt:hover, button.single_add_to_cart_button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--blue-h) !important;
}
.btn-light { background: var(--white); color: var(--black); border: 1px solid var(--gray-3); }
.btn-light:hover { background: var(--gray-1); }
.btn-dark { background: var(--black); color: white; }
.btn-dark:hover { background: #2d2d2f; }
.link-blue {
  color: var(--blue); cursor: pointer; font-size: 17px;
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 0;
}
.link-blue:hover { text-decoration: underline; }
.link-blue::after { content: "›"; font-size: 18px; transition: transform 0.2s; }
.link-blue:hover::after { transform: translateX(2px); }

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 22px; }
.container-sm { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(60px, 8vw, 100px) 22px; }
.section-gray { background: var(--gray-1); }
.section-dark { background: var(--black); color: white; }
.section-dark .eyebrow, .section-dark .muted { color: #a1a1a6; }

/* ============================================
   TOP ANNOUNCEMENT BAR
   ============================================ */
.top-bar {
  background: var(--gray-1); padding: 10px 20px;
  text-align: center; font-size: 12px; color: var(--gray-2);
}
.top-bar a { color: var(--blue); }
.top-bar a:hover { text-decoration: underline; }

/* ============================================
   NAVBAR — frosted glass
   ============================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 22px;
  height: 44px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  background: none; border: none; cursor: pointer;
  color: var(--black); font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
  padding: 8px;
}
.nav-menu { display: flex; gap: 0; align-items: center; list-style: none; }
.nav-menu li a, .nav-menu li button {
  background: none; border: none; cursor: pointer; color: var(--black);
  font-size: 12px; font-weight: 400; opacity: 0.85;
  padding: 8px 10px; transition: opacity 0.2s; text-decoration: none;
}
.nav-menu li a:hover, .nav-menu li button:hover { opacity: 1; }
.nav-actions { display: flex; gap: 0; align-items: center; }
.nav-actions button, .nav-actions a {
  background: none; border: none; cursor: pointer; color: var(--black);
  padding: 8px 10px; opacity: 0.85; position: relative; display: flex; align-items: center;
}
.cart-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: #fff; border-radius: 50%;
  width: 14px; height: 14px; font-size: 9px;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}

/* ============================================
   HERO — black showcase
   ============================================ */
.hero-showcase {
  background: #0a0a0a; color: white;
  padding: 60px 22px 0; text-align: center;
  overflow: hidden; position: relative;
}
.hero-showcase .hero-img-wrap {
  max-width: 1200px; margin: 0 auto; position: relative;
}
.hero-showcase img { width: 100%; max-height: 70vh; object-fit: contain; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 24px 0 48px; }

/* ============================================
   TILE GRID
   ============================================ */
.tile-grid { padding: 12px 12px 48px; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 12px; }
.tile-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  border-radius: 18px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 48px;
}
.tile.tile-big { min-height: clamp(560px, 90vh, 720px); padding-top: 60px; }
.tile.tile-sm { min-height: clamp(420px, 55vh, 560px); }
.tile-content { text-align: center; z-index: 2; padding: 0 24px; max-width: 600px; }
.tile-big .tile-content { max-width: 900px; }
.tile-title { font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 14px; }
.tile-sm .tile-title { font-size: clamp(40px, 5.2vw, 72px); }
.tile-big .tile-title { font-size: clamp(56px, 8.5vw, 108px); }
.tile-sub { font-weight: 400; opacity: 0.92; line-height: 1.2; margin-bottom: 20px; }
.tile-sm .tile-sub { font-size: clamp(17px, 1.6vw, 22px); }
.tile-big .tile-sub { font-size: clamp(20px, 2.2vw, 28px); }
.tile-img-wrap {
  flex: 1; width: 100%; position: relative; margin-top: 24px;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.tile-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; object-position: bottom; }

/* ============================================
   PRODUCT CARDS (WooCommerce override)
   ============================================ */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; gap: 32px !important; padding: 0 !important; margin: 0 !important; }
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; text-align: center; padding: 0 !important; float: none !important; }
.woocommerce ul.products li.product a img {
  aspect-ratio: 4/5; object-fit: cover; border-radius: 18px;
  margin-bottom: 20px !important; transition: transform 0.4s; background: var(--gray-1);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.02); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 22px !important; font-weight: 600 !important; letter-spacing: -0.015em !important;
  padding: 0 !important; margin-bottom: 4px !important; color: var(--black);
}
.woocommerce ul.products li.product .price {
  font-size: 15px !important; font-weight: 500 !important; color: var(--black) !important;
}
.woocommerce ul.products li.product .price del { color: var(--gray-2) !important; opacity: 0.7; }
.woocommerce ul.products li.product .button {
  margin-top: 14px !important; display: inline-flex !important;
}
.woocommerce span.onsale {
  background: var(--red) !important; color: white !important;
  border-radius: 980px !important; min-height: auto !important;
  min-width: auto !important; padding: 4px 12px !important;
  font-size: 11px !important; font-weight: 500 !important;
  top: 16px !important; left: 16px !important; line-height: 1 !important;
}

/* Single product page */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); padding: clamp(48px, 7vw, 96px) 22px; max-width: 1200px; margin: 0 auto; }
.woocommerce div.product div.images, .woocommerce div.product div.summary {
  float: none !important; width: 100% !important;
}
.woocommerce div.product div.images img { border-radius: 18px; }
.woocommerce div.product .product_title {
  font-size: clamp(40px, 5vw, 64px) !important; font-weight: 600 !important;
  letter-spacing: -0.02em !important; line-height: 1.07 !important; margin-bottom: 14px !important;
}
.woocommerce div.product p.price, .woocommerce div.product span.price {
  font-size: 22px !important; font-weight: 500 !important; color: var(--black) !important; margin-bottom: 20px !important;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 17px; line-height: 1.5; color: var(--gray-2); margin-bottom: 24px;
}
.woocommerce div.product form.cart { background: var(--gray-1); padding: 24px; border-radius: 18px; }
.woocommerce .quantity .qty {
  width: 64px !important; height: 44px !important; border-radius: 980px !important;
  border: 1px solid var(--gray-3) !important; background: white !important;
  padding: 0 12px !important; font-size: 15px !important;
}

/* Cart & Checkout */
.woocommerce-cart table.cart, .woocommerce-checkout table.shop_table {
  border: none !important; background: white; border-radius: 18px; overflow: hidden;
}
.woocommerce-cart table.cart th, .woocommerce-checkout table.shop_table th {
  background: var(--gray-1) !important; font-weight: 600 !important;
  font-size: 13px !important; padding: 16px 18px !important; border: none !important;
}
.woocommerce-cart table.cart td, .woocommerce-checkout table.shop_table td {
  padding: 16px 18px !important; border-top: 1px solid var(--gray-3) !important;
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
  padding: 14px 16px !important; border: 1px solid var(--gray-3) !important;
  border-radius: 12px !important; font-size: 16px !important; background: white !important;
}
.woocommerce-info, .woocommerce-message {
  background: var(--gray-1) !important; border-top: 3px solid var(--blue) !important;
  color: var(--black) !important; border-radius: 12px;
}

/* ============================================
   FEATURE GRID
   ============================================ */
.feature-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--gray-1); border-radius: 18px; padding: 32px 28px;
  text-align: left; overflow: hidden; display: flex; flex-direction: column;
}
.feature-card h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--gray-2); line-height: 1.5; margin-bottom: 24px; }
.feature-card .img { flex: 1; min-height: 200px; border-radius: 10px; overflow: hidden; background: #eee; }
.feature-card .img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   STATS
   ============================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.stat-card { background: white; border-radius: 18px; padding: 40px 20px; text-align: center; }
.stat-card .n { font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.stat-card .l { font-size: 15px; color: var(--gray-2); }

/* ============================================
   SIZE GUIDE TABLES
   ============================================ */
.size-table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--gray-3);
  margin-bottom: 48px;
}
.size-table th { background: var(--gray-1); padding: 14px 16px; text-align: left; font-weight: 600; font-size: 13px; }
.size-table td { padding: 14px 16px; border-top: 1px solid var(--gray-3); }

/* ============================================
   FORMS (Contact + checkout)
   ============================================ */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  padding: 14px 16px; border: 1px solid var(--gray-3); border-radius: 12px;
  font-size: 16px; font-family: inherit; outline: none; background: var(--gray-1);
  width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); background: white; }
textarea { resize: vertical; min-height: 120px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--gray-1); font-size: 12px; color: var(--gray-2); padding: 40px 22px 22px; }
.footer-inner { max-width: 1024px; margin: 0 auto; }
.footer-top { padding-bottom: 14px; border-bottom: 1px solid var(--gray-3); line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 32px 0; }
.footer-cols h4 { color: var(--black); font-weight: 600; font-size: 12px; margin-bottom: 10px; }
.footer-cols ul { list-style: none; }
.footer-cols li a {
  display: block; color: var(--gray-2); font-size: 12px;
  padding: 3px 0; text-decoration: none;
}
.footer-cols li a:hover { color: var(--black); text-decoration: underline; }
.footer-bottom {
  padding-top: 16px; border-top: 1px solid var(--gray-3);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}

/* ============================================
   PAGE STYLES
   ============================================ */
.page-hero {
  padding: clamp(60px, 9vw, 120px) 22px;
  text-align: center; background: var(--gray-1);
}
.page-content { padding: clamp(48px, 6vw, 80px) 22px; max-width: 900px; margin: 0 auto; }
.split-section {
  max-width: 1200px; margin: 0 auto; padding: clamp(60px, 8vw, 100px) 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.split-section img { border-radius: 18px; aspect-ratio: 4/5; object-fit: cover; }

/* ============================================
   CONTACT TILES
   ============================================ */
.contact-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 60px; }
.contact-tile { background: var(--gray-1); border-radius: 18px; padding: 32px 24px; text-align: center; }
.contact-tile h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.contact-tile p { font-size: 15px; color: var(--gray-2); margin-bottom: 18px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .tile-row-2 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-tiles { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WP CORE CLASSES
   ============================================ */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); height: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 6px; top: 6px; padding: 8px 14px; background: var(--blue); color: white; z-index: 9999; }
