/*
Theme Name: E all Digital
Theme URI: https://example.com/
Author: ChatGPT
Author URI: https://example.com/
Description: A lightweight WooCommerce-ready theme for selling digital presentation content. Designed to match the E all brand.
Version: 1.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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eall-digital
Tags: e-commerce, woocommerce, custom-colors, custom-menu, featured-images, block-styles, wide-blocks
*/

:root {
  --paper: #F2E7E1;
  --peach: #F9A585;
  --rose: #E49195;
  --lav: #AD87B9;
  --plum: #AA609B;
  --text: #2b2430;
  --muted: #6b5e70;
  --white: #ffffff;
  --grad: linear-gradient(90deg, #F9A585 0%, #E49195 45%, #AD87B9 100%);
  --shadow: 0 14px 40px rgba(0, 0, 0, .08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  background-image: url('assets/paper-texture.png');
  background-size: cover;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: .9;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(242, 231, 225, .78);
  border-bottom: 1px solid rgba(170, 96, 155, .10);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(170, 96, 155, 0.14);
}

.brand .brand-name {
  font-size: 18px;
  line-height: 1;
}

.brand .brand-tag {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.primary-nav a {
  font-weight: 600;
  font-size: 14px;
  color: rgba(43, 36, 48, .92);
  padding: 10px 10px;
  border-radius: 12px;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, .55);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid rgba(170, 96, 155, .18);
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.btn--primary {
  border: 0;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px rgba(170, 96, 155, 0.18);
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border: 2px solid rgba(170, 96, 155, .55);
  color: var(--plum);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .40);
}

.hero {
  padding: 64px 0 34px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 22px;
  color: rgba(43, 36, 48, .78);
  font-size: 16px;
  line-height: 1.6;
}

.hero__card {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(170, 96, 155, .12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(170, 96, 155, .10);
  color: rgba(43, 36, 48, .82);
  font-weight: 650;
  font-size: 13px;
}

.section {
  padding: 34px 0;
}

.section h2 {
  font-size: 26px;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.section .sub {
  margin: 0 0 22px;
  color: rgba(43, 36, 48, .75);
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(170, 96, 155, .12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: rgba(43, 36, 48, .75);
  line-height: 1.6;
  font-size: 14px;
}

.products-wrap {
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(170, 96, 155, .10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* Woo product cards */
.woocommerce ul.products li.product,
.wc-block-grid__product {
  background: rgba(255, 255, 255, .60);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(170, 96, 155, 0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.woocommerce ul.products li.product .button {
  background: var(--grad);
  border: 0;
  color: #fff;
  border-radius: 14px;
  font-weight: 700;
}

.woocommerce div.product .single_add_to_cart_button {
  background: var(--grad);
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  padding: 12px 18px;
}

.woocommerce a.button {
  border-radius: 14px;
}

.site-footer {
  padding: 32px 0 46px;
  border-top: 1px solid rgba(170, 96, 155, .10);
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

.small {
  color: rgba(43, 36, 48, .72);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(170, 96, 155, .10);
  display: inline-block;
  font-weight: 650;
  font-size: 14px;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, .62);
}

.content-area {
  padding: 28px 0 38px;
}

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .primary-nav ul {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .header-actions {
    display: none;
  }

  .brand .brand-name {
    font-size: 16px;
  }
}

/* --- Pricing Tables --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
  border: 2px solid var(--plum);
  background: white;
  transform: scale(1.02);
  z-index: 2;
}

.badge-pop {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--plum);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header .price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-header .freq {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.pricing-features li:last-child {
  border-bottom: 0;
}

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-content h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.about-content p {
  line-height: 1.7;
  color: rgba(43, 36, 48, .8);
  margin-bottom: 18px;
}

@media (max-width: 800px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }
}

/* --- Single Product Layout --- */
.woocommerce div.product {
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(170, 96, 155, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 40px;
}

/* Product Gallery (Left) */
.woocommerce div.product div.images {
  margin-bottom: 2em;
}

.woocommerce div.product div.images img {
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Product Summary (Right) */
.woocommerce div.product .product_title {
  font-size: 32px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.woocommerce div.product .price {
  font-size: 24px;
  color: var(--plum);
  font-weight: 700;
  margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Add to Cart Area */
.woocommerce div.product form.cart {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  align-items: flex-end;
  /* Align bottom to match height with input usually */
  flex-wrap: wrap;
}

.woocommerce div.product form.cart .button {
  background: var(--grad);
  color: white;
  border-radius: 12px;
  padding: 0 28px;
  /* Remove vertical padding, rely on height/flex */
  height: 50px;
  /* Fixed height for consistency */
  line-height: 50px;
  font-weight: 700;
  border: 0;
  box-shadow: 0 10px 20px rgba(170, 96, 155, 0.25);
  white-space: nowrap;
  /* Prevent text wrapping */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.woocommerce div.product form.cart .quantity {
  margin-right: 0;
  /* Override default woo margin */
}

.woocommerce div.product form.cart .quantity .qty {
  border-radius: 12px;
  border: 1px solid rgba(170, 96, 155, 0.2);
  padding: 0 10px;
  height: 50px;
  /* Match button height */
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  width: 70px;
  text-align: center;
  margin: 0;
}

/* Variations dropdown fixes */
.woocommerce div.product form.cart .variations {
  width: 100%;
  margin-bottom: 20px;
  border: 0;
}

.woocommerce div.product form.cart .variations td {
  display: block;
  padding: 0 0 5px;
  text-align: left;
}

.woocommerce div.product form.cart .variations select {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(170, 96, 155, 0.2);
  background: rgba(255, 255, 255, 0.8);
}

.woocommerce div.product form.cart .variations label {
  font-weight: 700;
  color: var(--text);
  font-size: 18px;
  /* Match "Months" size from screenshot */
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 0;
  background: transparent;
  border-radius: 12px 12px 0 0;
  margin-right: 5px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 12px 20px;
  font-weight: 650;
  color: var(--muted);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: rgba(170, 96, 155, 0.08);
  border-bottom-color: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--text);
}

.woocommerce div.product .woocommerce-tabs .panel {
  padding: 24px 0;
}