/*
Theme Name: Pink Portal Bookstore
Theme URI: https://thepinkportalbookstore.co.uk
Author: Dream Lab One
Description: Custom Pink Portal theme for signed paperbacks + cosmic library.
Version: 1.0
*/

/* --------------------------------------------------------------
   1. FONT IMPORTS
-------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------
   2. CSS VARIABLES – PINK PORTAL PALETTE
-------------------------------------------------------------- */
:root {
  --pp-bg-top: #ffeaf5;
  --pp-bg-bottom: #f7a8c3;
  --pp-bg-soft: #ffeef7;
  --pp-primary: #c74474;
  --pp-primary-deep: #a9295b;
  --pp-primary-soft: #f18fb8;
  --pp-accent-rose: #d14c7e;
  --pp-accent-gold: #ffd8a6;
  --pp-nav-bg: #ffc0da;
  --pp-nav-text: #8b2452;
  --pp-heading: #b33763;
  --pp-body: #5b3450;
  --pp-muted: #9d6f8b;
  --pp-card-bg: #fff5fb;
  --pp-card-edge: rgba(255, 255, 255, 0.7);
  --pp-card-shadow: 0 18px 40px rgba(199, 68, 116, 0.35);
  --pp-radius-xl: 28px;
  --pp-radius-lg: 22px;
  --pp-radius-md: 16px;
  --pp-radius-pill: 999px;
  --pp-max-width: 1120px;
  --pp-gap-lg: 3rem;
  --pp-gap-md: 1.75rem;
  --pp-gap-sm: 1rem;
}

/* --------------------------------------------------------------
   3. GLOBAL RESET / BASE
-------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--pp-body);
  background: linear-gradient(to bottom, var(--pp-bg-top), var(--pp-bg-bottom));
  min-height: 100vh;
}

/* Remove default list + link noise */
ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--pp-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus {
  color: var(--pp-primary-deep);
}

/* --------------------------------------------------------------
   4. LAYOUT WRAPPER
-------------------------------------------------------------- */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pp-shell,
.site-main,
#content {
  width: 100%;
}

.pp-shell-inner,
.site-main > .page,
.site-main > .post,
.site-main > .woocommerce {
  max-width: var(--pp-max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

/* White-ish content card on pink background */
.pp-page-card {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.85), var(--pp-card-bg));
  border-radius: var(--pp-radius-xl);
  box-shadow: var(--pp-card-shadow);
  padding: 2.5rem clamp(1.75rem, 3vw, 3rem);
  border: 1px solid var(--pp-card-edge);
}

/* --------------------------------------------------------------
   5. TYPOGRAPHY
-------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: var(--pp-heading);
  margin: 0 0 0.75rem;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(2.3rem, 3.3vw, 3rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  text-transform: uppercase;
}

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

p {
  margin: 0 0 1.1rem;
  line-height: 1.7;
  font-weight: 400;
}

/* Subheading like “Browse All” */
.pp-subtitle {
  font-family: 'Playfair Display', serif;
  color: var(--pp-muted);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------
   6. HEADER + NAVIGATION
-------------------------------------------------------------- */

.site-header,
#masthead {
  background: linear-gradient(90deg, #ffcada, #ffcfe4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  max-width: var(--pp-max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.site-title,
.site-title a {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pp-nav-text);
}

.site-description {
  font-size: 0.8rem;
  color: var(--pp-muted);
}

/* Primary nav */
.main-navigation {
  font-size: 0.95rem;
}

.main-navigation ul,
.main-navigation .menu,
.main-navigation .menu > ul {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: var(--pp-nav-text);
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: rgba(255, 255, 255, 0.85);
  color: var(--pp-primary-deep);
}

/* Fallback page list (when WP outputs list of pages as nav) */
.site-header ul.page_item,
.pp-fallback-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* “Store coming soon” notice in admin bar */
.pp-store-tag {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Mobile nav – simple wrap */
@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------
   7. BUTTONS
-------------------------------------------------------------- */

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.pp-button,
.pp-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.7rem;
  border-radius: var(--pp-radius-pill);
  border: none;
  cursor: pointer;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--pp-primary), var(--pp-primary-deep));
  color: #fff;
  box-shadow: 0 12px 24px rgba(183, 51, 105, 0.38);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.pp-button:hover,
.pp-pill-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(171, 45, 97, 0.45);
}

button:disabled,
input[type="submit"]:disabled,
.woocommerce button.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Outline / ghost button */
.pp-button--ghost {
  background: transparent;
  color: var(--pp-primary);
  border: 1px solid rgba(199, 68, 116, 0.5);
  box-shadow: none;
}

.pp-button--ghost:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------
   8. GENERIC PAGE SECTIONS
-------------------------------------------------------------- */

.pp-hero {
  text-align: center;
  margin-bottom: var(--pp-gap-lg);
}

.pp-hero-title {
  font-size: clamp(2.1rem, 3.2vw, 2.9rem);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.pp-hero-kicker {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pp-muted);
  margin-bottom: 2.2rem;
}

.pp-section {
  margin-bottom: var(--pp-gap-lg);
}

.pp-section-heading {
  text-align: center;
  margin-bottom: 1.2rem;
}

.pp-section-heading h2 {
  margin-bottom: 0.1rem;
}

.pp-section-heading p {
  color: var(--pp-muted);
  max-width: 520px;
  margin: 0.2rem auto 0;
}

/* --------------------------------------------------------------
   9. “BROWSE ALL” BOOK GRID – LANDING STYLE
-------------------------------------------------------------- */

.pp-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 1.8rem;
}

.pp-book-card {
  background: radial-gradient(circle at top, rgba(255,255,255,0.5), #f195c0);
  border-radius: var(--pp-radius-xl);
  padding: 1.6rem 1.5rem 1.9rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(172, 38, 98, 0.35);
  color: #fff;
}

/* Variants: left / middle / right cards like the mockup */
.pp-book-card--aurora {
  background: radial-gradient(circle at top, #ffe8fb, #c0397b);
}

.pp-book-card--starlit {
  background: radial-gradient(circle at top, #f7d6ff, #12375c);
}

.pp-book-card--auric {
  background: radial-gradient(circle at top, #ffe9bb, #e66a8c);
}

.pp-book-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.7rem;
}

.pp-book-card .pp-pill-button {
  margin-top: 1.2rem;
}

/* Glow circle element for cards (optional, can be added via ::before) */
.pp-book-card::before {
  content: "";
  position: absolute;
  inset: 10% 12%;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.55), transparent 60%);
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
}

.pp-book-card-inner {
  position: relative;
  z-index: 1;
}

/* Responsive book grid */
@media (max-width: 960px) {
  .pp-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pp-book-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------
   10. CONTENT / ENTRY STYLING
-------------------------------------------------------------- */

.entry-title {
  margin-bottom: 1.5rem;
}

.entry-content {
  font-size: 0.98rem;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.entry-content ul,
.entry-content ol {
  margin-left: 1.3rem;
  margin-bottom: 1.1rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------
   11. WOO COMMERCE – SHOP / PRODUCT CARDS
-------------------------------------------------------------- */

.woocommerce .woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: var(--pp-muted);
  margin-bottom: 1.4rem;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.woocommerce ul.products li.product {
  background: var(--pp-card-bg);
  border-radius: var(--pp-radius-lg);
  padding: 1.4rem 1.3rem 1.6rem;
  text-align: center;
  box-shadow: 0 14px 26px rgba(187, 60, 110, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.woocommerce ul.products li.product a img {
  border-radius: var(--pp-radius-md);
  margin-bottom: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pp-heading);
  margin-bottom: 0.35rem;
}

.woocommerce ul.products li.product .price {
  color: var(--pp-primary-deep);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.woocommerce .star-rating span::before {
  color: var(--pp-accent-gold);
}

/* Single product */
.woocommerce div.product {
  background: var(--pp-card-bg);
  border-radius: var(--pp-radius-xl);
  padding: 2rem 1.8rem 2.4rem;
  box-shadow: var(--pp-card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.woocommerce div.product .product_title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--pp-primary-deep);
  font-size: 1.2rem;
  font-weight: 600;
}

.woocommerce div.product form.cart {
  margin-top: 1.2rem;
}

/* Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: var(--pp-radius-md);
  border-left: 4px solid var(--pp-primary);
}

/* --------------------------------------------------------------
   12. FORMS
-------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(189, 117, 150, 0.35);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
  border-radius: 18px;
  min-height: 130px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 3px rgba(201, 90, 140, 0.25);
}

/* --------------------------------------------------------------
   13. FOOTER
-------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  padding: 2rem 1.8rem 2.4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--pp-muted);
  background: linear-gradient(to top, rgba(190, 75, 120, 0.22), transparent);
}

.site-footer-inner {
  max-width: var(--pp-max-width);
  margin: 0 auto;
}

.site-footer a {
  color: var(--pp-nav-text);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--pp-primary-deep);
}

/* Small sparkle divider */
.pp-footer-divider {
  width: 70px;
  height: 1px;
  margin: 0.8rem auto 1rem;
  background: linear-gradient(90deg, transparent, var(--pp-accent-rose), transparent);
}

/* --------------------------------------------------------------
   14. UTILITIES
-------------------------------------------------------------- */

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

.pp-mt-lg { margin-top: 2.5rem; }
.pp-mb-lg { margin-bottom: 2.5rem; }
.pp-mt-md { margin-top: 1.6rem; }
.pp-mb-md { margin-bottom: 1.6rem; }

/* Make sure admin bar doesn’t hide sticky header */
.admin-bar .site-header,
.admin-bar #masthead {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar #masthead {
    top: 46px;
  }
}

/* HEADER LAYOUT */
.site-header {
    background: #f7a8c3;
    padding: 15px 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.site-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #8b2f4e; /* maroon-pink */
    text-decoration: none;
}

/* NAV MENU */
.site-nav .primary-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .primary-menu li a {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    color: #8b2f4e;
    text-decoration: none;
    transition: 0.2s ease;
}

.site-nav .primary-menu li a:hover {
    color: #6d0f33;
}


/* ============================================
   HEADER + PAGE TITLE + SPACING UPGRADES
   ============================================ */

/* LIGHTER HEADER BACKGROUND */
.site-header {
    background: #fbd5e6 !important; /* soft pastel pink */
    padding: 15px 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* PAGE TITLE STYLING + SPACING */
.entry-title {
    margin-top: 60px;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    color: #8b2f4e;
    text-align: center;
    font-size: 48px;
}

/* TOP CONTENT SPACING BELOW HEADER */
.site-content,
#content,
.entry-content {
    padding-top: 40px;
}

/* FIX PAGE TITLE POSITIONING */
.page-title {
    margin-top: 70px;      /* space below header */
    margin-bottom: 40px;   /* breathing room */
    padding-left: 40px;    /* move title away from left edge */
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: #8b2f4e;
}

/* ================================
   PINK PORTAL TYPOGRAPHY SYSTEM
   ================================ */

/* GLOBAL BODY TEXT */
body, p {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    color: #704054; /* soft rose-brown for readable paragraphs */
    line-height: 1.7;
    margin: 0 0 1.4em;
}

/* HEADINGS — PINK PORTAL STYLE */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #d4477c; /* ✨ Pink Pop heading color */
    letter-spacing: 0.5px;
    margin-top: 40px;
    margin-bottom: 15px;
}

/* H1 EXTRA STYLING – BIG MAGICAL PORTAL VIBE */
h1 {
    font-size: 48px;
    text-transform: uppercase;
}

/* H2 — SUB SECTIONS */
h2 {
    font-size: 34px;
}

/* PAGE TITLE BLOCK */
.page-title {
    font-size: 52px;
    text-transform: uppercase;
    text-align: left;
    padding-top: 40px;
    padding-left: 40px;   /* clean margin from left */
    padding-bottom: 20px;
}

/* LINKS */
a {
    color: #b43f6b;
    text-decoration: none;
}

a:hover {
    color: #8e3055;
}

/* OPTIONAL — SOFT PAGE CONTAINER (VERY CLEAN) */
.container, .page-content {
    padding: 20px 40px;
}

.site-logo a,
h1, h2, h3, h4, h5, h6 {
    color: #C64572 !important; /* Soft Rosy Magenta */
}

/* HEADER TYPOGRAPHY PINK SYSTEM */
h1 {
    color: #D84383 !important; /* Portal Pink Pop - Main Headings */
}

h2 {
    color: #CC5B85 !important; /* Vintage Rose - Section Titles */
}

h3 {
    color: #B63A66 !important; /* Deep Luxe Pink - Subheadings */
}

h4, h5, h6 {
    color: #C64572 !important; /* Soft Rosy Magenta - Supporting */
}

/* FIX WOO SHOP GRID */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* FIX PRODUCT THUMBNAILS */
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* PRODUCT CARD TITLE */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #b63a66;
    text-align: center;
    line-height: 1.3;
    margin-top: 15px;
}

/* PRICE */
.woocommerce ul.products li.product .price {
    text-align: center;
    font-size: 18px;
    color: #c64572;
}

/* ALIGN ADD-TO-CART BUTTON */
.woocommerce ul.products li.product .button {
    display: block;
    text-align: center;
    margin: 10px auto;
    background: #d84383;
    color: white;
    border-radius: 8px;
    padding: 8px 16px;
}

/* === PINK PORTAL — FINAL SHOP GRID FIX === */

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 34px !important;
    margin-top: 40px !important;
    padding: 20px 0;
}

.woocommerce ul.products li.product {
    background: var(--pp-card-bg);
    border-radius: 16px;
    padding: 20px 18px 24px;
    text-align: center;
    box-shadow: 0 14px 26px rgba(187, 60, 110, 0.22);
    border: 1px solid rgba(255,255,255,0.8);
}

/* PRODUCT IMAGES UNIFORM */
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.07);
}

/* TITLES */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    color: #b63a66;
    line-height: 1.3;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* PRICE */
.woocommerce ul.products li.product .price {
    font-size: 18px;
    font-weight: 600;
    color: #d84383;
    margin-bottom: 12px;
}

/* BUTTON */
.woocommerce ul.products li.product .button {
    background: #d84383 !important;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    color: #fff !important;
    margin-top: 10px;
    display: inline-block;
}

/* === PINK PORTAL – WOO SHOP GRID RESET === */

/* Grid container – 3 cards across on desktop */
.woocommerce ul.products,
.woocommerce-page ul.products {
    list-style: none;
    margin: 3rem auto 4rem;
    padding: 0;
    max-width: 1100px;

    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 2.4rem;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr;
    }
}

/* Individual product card */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none;             /* kill old float layout */
    width: auto;             /* let grid control width */
    margin: 0;

    background: #ffe6f0;     /* soft card pink */
    border-radius: 20px;
    padding: 1.8rem 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 14px 26px rgba(187, 60, 110, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Book cover image */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    display: block;
    margin: 0 auto 1.2rem;
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c64572;          /* Soft Rosy Magenta */
    margin: 0 0 0.6rem;
}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #b63a66;          /* Deep luxe pink */
    margin-bottom: 1rem;
}

/* Add to cart / select options button */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    background: #d84383;     /* Portal pink pop */
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
    background: #c64572;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(187, 60, 110, 0.25);
}


/* === FORCE CLEAN 3-COLUMN PRODUCT GRID === */

/* Grid wrapper */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 0;
    margin: 0 auto 3rem;
    list-style: none;
}

/* Product cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;              /* kill old float layout */
    margin: 0 !important;
    box-sizing: border-box;
    width: calc(33.333% - 2.5rem) !important;  /* 3 columns on desktop */
}

/* 2 columns on medium screens */
@media (max-width: 992px) {
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: calc(50% - 2.5rem) !important;
    }
}

/* 1 column on phones */
@media (max-width: 600px) {
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 100% !important;
    }
}


/* ================================
   WOO SHOP GRID – HARD RESET
   ================================ */

/* Reset any old float-based layout */
.woocommerce ul.products,
.woocommerce-page ul.products {
    margin: 40px auto;
    padding: 0;
    list-style: none;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    grid-gap: 32px;
    max-width: 1200px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
}

/* Card look (keep what’s working, just reinforcing) */
.woocommerce ul.products li.product .product-card,
.woocommerce-page ul.products li.product .product-card {
    /* only used if you wrap, but safe */
    border-radius: 28px;
    padding: 24px 24px 28px;
}

/* Book image – tall covers, centered */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    width: 180px;
    height: 270px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin: 0 auto 18px;
}

/* Title & price – keep centered and readable */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    color: #c64572;
    margin: 0 0 8px;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    text-align: center;
    margin-bottom: 12px;
}

/* ================================
   GLOBAL PAGE PADDING
   ================================ */

.container.page-content,
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 60px;
}

/* ================================
   MOBILE – HEADER + GRID + PADDING
   ================================ */

@media (max-width: 768px) {

    /* One column shop grid on mobile */
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr;
        grid-gap: 24px;
        padding: 20px 16px 40px;
        margin: 24px auto;
    }

    .container.page-content,
    .page-content {
        padding: 28px 16px 40px;
    }

    /* Header layout */
    .site-header {
        padding: 12px 16px;
    }

    .header-inner {
        max-width: 100%;
    }

    .site-logo a {
        font-size: 22px;
        line-height: 1.2;
    }

    /* Hide desktop nav, show burger */
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 32px;
        margin-left: auto;
        border: none;
        background: transparent;
        padding: 0;
        cursor: pointer;
    }

    .nav-toggle-bar {
        width: 24px;
        height: 2px;
        background: #c64572;
        margin: 3px 0;
        border-radius: 999px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    /* Closed by default on mobile */
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        padding: 16px 20px 20px;
        background: #ffd6e5;
        box-shadow: 0 14px 40px rgba(0,0,0,0.08);
        z-index: 99;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav .primary-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0;
        text-align: right;
    }

    .site-nav .primary-menu li a {
        font-size: 16px;
        padding: 6px 0;
    }

    /* Optional hamburger X animation */
    .nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }
    .nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }
}


/* === PINK PORTAL SHOP GRID – 3 COL DESKTOP, 1 COL MOBILE === */

/* Grid container */
.woocommerce ul.products,
.woocommerce-page ul.products {
    list-style: none;
    margin: 40px auto 60px;
    padding: 0;
}

.woocommerce ul.products.columns-3,
.woocommerce-page ul.products.columns-3,
.woocommerce ul.products.columns-4,
.woocommerce-page ul.products.columns-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

/* Product cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    flex: 0 1 calc(33.333% - 32px);   /* 3 per row */
    max-width: 320px;
    margin: 0;
    float: none !important;           /* kill Woo default floats */
    clear: none !important;
}

/* Remove Woo’s first/last hacks that break our rows */
.woocommerce ul.products li.first,
.woocommerce ul.products li.last {
    margin-right: 0 !important;
    clear: none !important;
}

/* Mobile: 1 column stacked */
@media (max-width: 780px) {
    .woocommerce ul.products.columns-3,
    .woocommerce-page ul.products.columns-3,
    .woocommerce ul.products.columns-4,
    .woocommerce-page ul.products.columns-4 {
        gap: 24px;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        flex: 0 1 100%;
        max-width: 420px;
    }
}


/* === NAV TOGGLE VISIBILITY === */

/* Hide hamburger / toggle by default (desktop) */
.nav-toggle {
    display: none;
}

/* Show it only on small screens */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 28px;
        border-radius: 999px;
        border: none;
        background: #d84383; /* portal pink */
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        margin-left: 12px;
    }

    .site-nav {
        display: none;
    }

    .site-nav.is-open {
        display: block;
        margin-top: 12px;
    }
}


/* === FINAL SHOP GRID LAYOUT === */

/* Grid container */
.woocommerce ul.products,
.woocommerce-page ul.products {
    list-style: none;
    margin: 40px auto 60px;
    padding: 0;
    max-width: 1200px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns */
    gap: 32px;
}

/* Product cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    clear: none !important;
}

/* Mobile: 1 column */
@media (max-width: 780px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px 40px;
    }
}

/* === MOBILE NAV TOGGLE === */

/* Desktop: hide toggle, show full nav */
.nav-toggle {
    display: none;
}

/* Mobile styles */
@media (max-width: 900px) {
    .header-inner {
        padding-right: 16px;
    }

    .site-nav {
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    .site-nav.is-open {
        display: block;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 64px;          /* twice as long */
        height: 32px;
        margin-left: auto;
        border: none;
        border-radius: 999px;
        background: #d84383;  /* pink pill */
        cursor: pointer;
        padding: 0;
    }

    .nav-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        border-radius: 999px;
        background: #fff;
        margin: 3px 0;
    }

    /* Stack menu items nicely on mobile */
    .primary-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px 0 0;
    }

    .primary-menu li a {
        display: block;
        padding: 4px 0;
    }
}


Add this to your CSS (after general typography):
/* === PAGE CONTENT PADDING === */
.page-content,
.woocommerce {
    padding: 0 24px 60px;
}

/* Wider padding on desktop */
@media (min-width: 900px) {
    .page-content,
    .woocommerce {
        padding: 0 40px 80px;
    }
}

.home-hero {
  padding: 100px 20px;
  text-align: center;
  background: radial-gradient(circle at center, #4a2b72 10%, #1a102b 60%, #0a0714 100%);
  color: #fff;
}

.cta-group .cta-button {
  display: inline-block;
  margin: 12px;
  padding: 12px 28px;
  background: #e399ff;
  color: #000;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.cta-group .secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.feature-strip {
  display: flex;
  justify-content: space-around;
  padding: 50px 20px;
  background: #fff;
}

.feature-item {
  max-width: 280px;
  text-align: center;
}

.about-blurb {
  padding: 80px 20px;
  text-align: center;
  background: #f3edf7;
  color: #333;
}

.cards-section {
  padding: 60px 20px;
  background: #fff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.book-card {
  background: #f9f4ff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.book-card h3 {
  margin-bottom: 12px;
}

.card-cta {
  color: #6b2fd1;
  font-weight: 600;
  text-decoration: none;
}

/* REMOVE PAGE TITLES (all pages including WooCommerce) */
.entry-title,
.woocommerce-products-header__title.page-title,
.woocommerce-page .page-title {
    display: none !important;
}

/* REMOVE BREADCRUMBS */
.woocommerce-breadcrumb,
.breadcrumb,
.woocommerce .woocommerce-breadcrumb {
    display: none !important;
}

/* Remove extra spacing left behind */
.woocommerce-products-header,
.entry-header {
    margin: 0 !important;
    padding: 0 !important;
}

/* Optional: tighten WooCommerce shop top spacing */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    margin-top: 10px !important;
}

/* REMOVE PAGE TITLES ON ALL NORMAL WORDPRESS PAGES */
.page .entry-title,
.page h1.entry-title,
.page .page-title {
    display: none !important;
}

/* REMOVE GENERIC PAGE HEADERS YOUR THEME MAY OUTPUT */
.page-header,
.page-header-title,
.page-title-wrapper,
header.page-title,
div.page-title {
    display: none !important;
}

/* REMOVE BREADCRUMBS ON NORMAL PAGES */
.page .breadcrumb,
.page .breadcrumbs,
.page .yoast-breadcrumb {
    display: none !important;
}

/* FIX SPACING ABOVE CONTENT AFTER REMOVING TITLES */
.page .entry-header,
.page .page-header,
.page .page-title-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.portal-coupon-card {
    background: linear-gradient(135deg, #f7a8c3, #f6c1d4);
    padding: 20px 25px;
    border-radius: 16px;
    margin: 20px 0 30px;
    text-align: center;
    color: #5a064f;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 2px solid #ffffffaa;
}

.portal-coupon-card strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b1005a;
}

.portal-coupon-card span {
    background: #ffffff;
    color: #b1005a;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 0 4px;
    font-weight: 900;
}

.portal-coupon-card p {
    margin-top: 8px;
    font-size: 1rem;
    opacity: 0.9;
}


/* BASE COUPON CARD */
.portal-coupon-card {
    background: linear-gradient(135deg, #f7a8c3, #f6c1d4);
    padding: 18px 20px;
    border-radius: 16px;
    margin: 10px 0 20px;
    text-align: center;
    color: #5a064f;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #ffffffcc;
    width: 100%;
    box-sizing: border-box;
}

/* Strong text */
.portal-coupon-card strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #b1005a;
    display: block;
    line-height: 1.3;
    margin-bottom: 6px;
}

/* Highlighted coupon code */
.portal-coupon-card span {
    background: #ffffff;
    color: #b1005a;
    padding: 4px 12px;
    border-radius: 8px;
    margin: 0 4px;
    font-weight: 800;
    display: inline-block;
}

/* Light description text */
.portal-coupon-card p {
    margin-top: 5px;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.35;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .portal-coupon-card {
        padding: 16px 15px; /* tighter sides */
        border-radius: 14px;
        margin: 12px 0 25px;
    }

    .portal-coupon-card strong {
        font-size: 1rem;
    }

    .portal-coupon-card p {
        font-size: 0.9rem;
    }

    .portal-coupon-card span {
        padding: 4px 10px;
        font-size: 0.95rem;
    }
}

/* FEATURE STRIP LAYOUT FIX */
.feature-strip {
    display: flex;
    justify-content: space-between;
    padding: 40px 20px;
    background: #ffffff;
    gap: 20px;
}

/* Each card */
.feature-item {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.4;
}


/* 🔥 MOBILE FIX: STACK NICELY */
@media (max-width: 768px) {

    .feature-strip {
        display: block;
        padding: 20px 16px;
    }

    .feature-item {
        margin-bottom: 30px;
        padding: 20px 15px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    }

    .feature-item h3 {
        font-size: 1.1rem;
        margin-top: 10px;
    }

    .feature-item p {
        font-size: 0.95rem;
    }
}

/* HEADER */
.contact-header {
    text-align: center;
    padding: 60px 20px 30px;
    background: linear-gradient(180deg, #f7a8c3, #f6c9dd, #ffe3f1);
}

.contact-header h1 {
    color: #b1005a;
    font-size: 2.2rem;
    margin: 0;
}

/* WRAPPER */
.contact-wrapper {
    padding: 40px 20px;
    background: #ffeaf5;
}

/* GRID */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* CARD */
.contact-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    color: #4a2c36;
    border: 1px solid #f7c1d9;
}

.contact-card h2 {
    font-size: 1.4rem;
    color: #b1005a;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 1.1rem;
    color: #6b2c4a;
    margin-top: 15px;
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 1rem;
    margin: 6px 0;
}

.contact-card ul {
    margin: 8px 0 12px;
    padding-left: 20px;
}

.contact-card ul li {
    margin-bottom: 4px;
}

/* MOBILE */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-header h1 {
        font-size: 1.8rem;
    }

    .contact-card {
        padding: 20px 18px;
    }

    .contact-card h2 {
        font-size: 1.2rem;
    }

    .contact-card p,
    .contact-card ul li {
        font-size: 0.95rem;
    }
}

/* CONTACT FORM SECTION */
.pp-contact-form {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #f7c1d9;
    text-align: center;
}

.pp-contact-form h2 {
    color: #b1005a;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.pp-contact-form p {
    color: #5a064f;
    font-size: 1rem;
    margin-bottom: 25px;
}

/* FORM */
.pp-form {
    width: 100%;
    text-align: left;
}

/* FIELD WRAPPER */
.pp-field {
    margin-bottom: 20px;
}

/* LABELS */
.pp-field label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #6b2c4a;
    font-weight: 600;
}

/* INPUTS & TEXTAREA */
.pp-field input,
.pp-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e9b3c7;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff7fb;
    color: #4a2c36;
    transition: all 0.2s ease-in-out;
}

/* FOCUS EFFECT */
.pp-field input:focus,
.pp-field textarea:focus {
    border-color: #b1005a;
    box-shadow: 0 0 0 3px rgba(177, 0, 90, 0.2);
    outline: none;
}

/* SUBMIT BUTTON */
.pp-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-top: 10px;
    background: linear-gradient(135deg, #f7a8c3, #b1005a);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
}

.pp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .pp-contact-form {
        padding: 30px 20px;
        margin: 20px 10px;
    }

    .pp-contact-form h2 {
        font-size: 1.5rem;
    }

    .pp-submit-btn {
        font-size: 1rem;
        padding: 12px 18px;
    }
}

/* WIDER FORM CARD ON DESKTOP */
.pp-contact-form {
    max-width: 900px;   /* was 700px — now wider */
    margin: 50px auto;
}

/* Even wider on very large screens (optional) */
@media (min-width: 1400px) {
    .pp-contact-form {
        max-width: 1000px;
    }
}

/* MOBILE FIX — STACK FEATURE ITEMS */
@media (max-width: 768px) {
    .feature-strip {
        flex-direction: column;
        gap: 25px;
        padding: 40px 20px;
    }
    .feature-item {
        max-width: 100%;
    }
}

/* MOBILE FIX — STACK BOOK CARDS */
@media (max-width: 768px) {
    .cards-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .book-card {
        width: 100%;
        max-width: 350px;
        padding: 25px;
    }
}

.site-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #b1005a;
}

.logo-image {
    height: 30px;
    width: auto;
    display: block;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .logo-text { font-size: 2rem; }
    .logo-image { height: 30px; }
}

/* Desktop default */
.logo-image {
    height: 55px;     /* perfect size for desktop */
    width: auto;
    display: block;
    object-fit: contain;
}

/* Align text + logo nicely */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Desktop header spacing */
.header-inner {
    padding: 20px 30px;
}

/* Mobile – shrink logo properly */
@media (max-width: 768px) {
    .logo-image {
        height: 32px !important;   /* fixes huge logo on mobile */
    }
    .logo-text {
        font-size: 2rem;
    }
}

/* Extra-small phones (optional) */
@media (max-width: 420px) {
    .logo-image {
        height: 28px !important;
    }
    .logo-text {
        font-size: 1.3rem;
    }
}

/* ===== HEADER LAYOUT ===== */

.site-header {
    background: #ffddea; /* keep your pink bar */
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand block */
.site-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

/* Text title */
.logo-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #b1005a;
    white-space: nowrap;
}

/* Image logo – DESKTOP SIZE + protect from WooCommerce */
.site-logo img.logo-image {
    width: 160px !important;      /* desktop size */
    max-width: 160px !important;
    height: auto !important;
    display: block;
    border-radius: 12px;
    object-fit: contain;
}

/* ===== MOBILE STACKING ===== */

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    /* Stack logo under title */
    .logo-link {
        flex-direction: column;
    }

    .logo-text {
        font-size: 2rem;
    }

    .site-logo img.logo-image {
        width: 130px !important;   /* mobile size */
        max-width: 130px !important;
    }

    /* Center hamburger and nav */
    .nav-toggle {
        align-self: center;
    }

    .site-nav {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
    }

    .site-logo img.logo-image {
        width: 110px !important;
        max-width: 110px !important;
    }
}

/* ===== HEADER BRAND AREA – FIX LOGO SIZE ON ALL PAGES ===== */

/* Layout */
.site-header {
    padding: 18px 20px;
}

.site-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand block: text + logo stacked nicely */
.site-header .site-logo .logo-link {
    display: flex;
    flex-direction: column;   /* stack title and logo */
    align-items: flex-start;
    text-decoration: none;
}

/* Site title text */
.site-header .logo-text {
    font-size: 24px;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

/* Logo image – GLOBAL CONTROL */
.site-header .logo-image {
    display: block;
    margin-top: 4px;
    max-height: 70px;   /* desktop size */
    width: auto;
    height: auto;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Hamburger stays on the right */
.site-header .nav-toggle {
    flex-shrink: 0;
}

/* ---------- Desktop tweaks ---------- */
@media (min-width: 1024px) {
    .site-header .logo-text {
        font-size: 26px;
    }
    .site-header .logo-image {
        max-height: 80px;   /* nice readable size on big screens */
    }
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 767px) {
    .site-header .header-inner {
        align-items: center;
    }

    /* Slightly smaller text so it doesn’t wrap weirdly */
    .site-header .logo-text {
        font-size: 20px;
    }

    /* Logo big enough to read, but not breaking layout */
    .site-header .logo-image {
        max-height: 70px;   /* bigger than before, but capped */
    }
}

/* Make sure Woo / other CSS can’t blow the logo up on Shop */
.woocommerce-shop .site-header .logo-image {
    max-height: 80px !important;
    width: auto !important;
}

/* === FINAL HEADER LOGO FIX – ALL PAGES, INCLUDING SHOP === */

/* Base size for the logo everywhere */
.site-header .logo-image {
    display: block;
    width: 150px;
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

/* Make sure WooCommerce can't blow it up on shop / product pages */
.woocommerce .site-header .logo-image,
.woocommerce-page .site-header .logo-image,
.woocommerce-shop .site-header .logo-image {
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
}

/* Desktop: slightly larger if you want */
@media (min-width: 1024px) {
    .site-header .logo-image,
    .woocommerce .site-header .logo-image,
    .woocommerce-page .site-header .logo-image,
    .woocommerce-shop .site-header .logo-image {
        width: 170px !important;
        max-width: 170px !important;
    }
}

/* Mobile: keep it clean and readable, but not huge */
@media (max-width: 768px) {
    .site-header .logo-image,
    .woocommerce .site-header .logo-image,
    .woocommerce-page .site-header .logo-image,
    .woocommerce-shop .site-header .logo-image {
        width: 130px !important;
        max-width: 130px !important;
    }
}

/* Page padding – leave WooCommerce full-width */
.page-content {
    padding: 0 24px 60px;
}

@media (min-width: 900px) {
    .page-content {
        padding: 0 40px 80px;
    }
}




.post-type-archive-product .content-area,
.post-type-archive-product .site-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


.woocommerce .widget-area,
.woocommerce .footer-widgets,
.woocommerce .widget {
    display: none !important;
}


/* Hide unwanted sidebar/footer widgets on WooCommerce Shop page */
.post-type-archive-product .widget-area,
.post-type-archive-product .footer-widgets,
.post-type-archive-product .widget {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide search + pages list junk on Woo Shop page only */
body.woocommerce-shop .wp-block-search,
body.woocommerce-shop .wp-block-page-list,
body.woocommerce-shop .widget_search,
body.woocommerce-shop .widget_pages,
body.woocommerce-shop .widget_archive,
body.woocommerce-shop .widget_categories {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}


body.post-type-archive-product .wp-block-search,
body.post-type-archive-product .wp-block-page-list,
body.post-type-archive-product .widget_search,
body.post-type-archive-product .widget_pages,
body.post-type-archive-product .widget_archive,
body.post-type-archive-product .widget_categories {
    display: none !important;
}

/* Hide entire footer menu + widgets on WooCommerce Shop page */
body.woocommerce-shop footer .footer-menu {
    display: none !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Completely hide old WordPress sidebar on WooCommerce Shop page */
body.woocommerce-shop #sidebar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}


/* ================================
   FORCE HEADER TO BE NON-FIXED
   (scrolls away naturally)
================================== */
.site-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    z-index: 50;
    background: #ffffff;
    box-shadow: none !important;
}

/* Ensure the inner header doesn't use fixed or sticky */
.header-inner {
    position: relative !important;
}

/* ================================
   RESET ANY BODY OFFSETS
================================== */
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ================================
   NAVIGATION BEHAVIOR CLEANUP
================================== */
.site-nav {
    position: static !important;
    z-index: 40;
}

.primary-menu {
    position: relative !important;
    z-index: 40;
}

.nav-toggle {
    position: relative !important;
    z-index: 1000;
}

/* Mobile dropdown should display below header, not over content */
.site-nav.open {
    display: block !important;
    position: relative !important;
    background: #fff;
}

/* Make sure dropdown items push content down */
.primary-menu li {
    position: relative !important;
}

/* === Top bar (coupon) – dark pink, white text === */
.pink-top-bar {
    background: #b01960;      /* dark pink */
    color: #ffffff;
    text-align: center;
    padding: 6px 12px;
    font-size: 13px;
}
.pink-top-bar strong {
    color: #ffeb3b;           /* soft yellow/gold accent */
}

/* === Main Pink header === */
.pink-header {
    background: #ffe2f0;
    padding: 18px 20px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    position: relative;
    z-index: 50;
}
.pink-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.pink-header .site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pink-header .logo-link {
    text-decoration: none;
}
.pink-header .logo-text {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 24px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b01960;
}
.pink-header .site-description {
    margin: 0;
    font-size: 12px;
    color: #c35a8f;
}

/* Desktop nav */
.pink-header .desktop-nav .primary-menu {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}
.pink-header .desktop-nav .primary-menu > li > a {
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b01960;
}
.pink-header .desktop-nav .primary-menu > li > a:hover {
    opacity: 0.75;
}

/* Base – hide hamburger on desktop */
.pink-menu-toggle {
    display: none;
}

/* === Mobile layout === */
@media (max-width: 768px) {

    .pink-header {
        padding: 16px 12px 8px;
    }

    .pink-header .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Hide desktop nav on mobile */
    .pink-header .desktop-nav {
        display: none;
    }

    /* Centered hamburger: no card, just 3 lines */
    .pink-menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 5px;
        width: 56px;
        height: 36px;
        margin: 12px auto 12px;      /* centers under header */
        padding: 0;
        border: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        cursor: pointer;
    }
    .pink-menu-toggle span {
        display: block;
        width: 34px;
        height: 4px;
        border-radius: 999px;
        background: #e11d74;        /* strong pink lines */
    }

    /* Overlay mobile menu */
    .pink-mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        display: none;
        z-index: 9999;
    }
    .pink-mobile-menu-overlay.open {
        display: flex;
    }

    .pink-mobile-menu-overlay .mobile-nav {
        background: #ffe4f0;
        margin: auto;
        width: 90%;
        max-width: 360px;
        border-radius: 24px;
        padding: 24px 20px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    }

    .pink-mobile-menu-overlay .mobile-nav .primary-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .pink-mobile-menu-overlay .mobile-nav .primary-menu a {
        text-decoration: none;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: #b01960;
    }

    .pink-mobile-menu-overlay .close-menu {
        position: absolute;
        top: 18px;
        right: 18px;
        border: none;
        background: transparent;
        font-size: 28px;
        color: #ffffff;
        cursor: pointer;
    }
}

/* Force coupon text to white on Pink top bar */
.pink-top-bar p {
    color: #ffffff !important;
    margin: 0;
}

.pink-top-bar strong {
    color: #ffffff !important;
    font-weight: 700;
}

/* === Top bar (coupon) – dark pink, white text === */
.pink-top-bar {
    background: #b01960;      /* dark pink */
    color: #ffffff;
    text-align: center;
    padding: 6px 12px;
    font-size: 13px;
}
.pink-top-bar p {
    color: #ffffff !important;
    margin: 0;
}
.pink-top-bar strong {
    color: #ffffff !important;
    font-weight: 700;
}

/* === Main Pink header === */
.pink-header {
    background: #ffe2f0;
    padding: 18px 20px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    position: relative;
    z-index: 50;
}
.pink-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.pink-header .site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pink-header .logo-link {
    text-decoration: none;
}
.pink-header .logo-text {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 24px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b01960;
}
.pink-header .site-description {
    margin: 0;
    font-size: 12px;
    color: #c35a8f;
}

/* Desktop nav */
.pink-header .desktop-nav .primary-menu {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}
.pink-header .desktop-nav .primary-menu > li > a {
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b01960;
}
.pink-header .desktop-nav .primary-menu > li > a:hover {
    opacity: 0.75;
}

/* Hide hamburger on desktop by default */
.pink-menu-toggle {
    display: none;
}

/* Lock scroll when menu open */
body.pink-menu-open {
    overflow: hidden;
}

/* Overlay base – on top & clickable */
.pink-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

/* === Mobile layout === */
@media (max-width: 768px) {

    .pink-header {
        padding: 16px 12px 8px;
    }

    .pink-header .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Hide desktop nav on mobile */
    .pink-header .desktop-nav {
        display: none;
    }

    /* Centered hamburger: no card, just 3 lines */
    .pink-menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 5px;
        width: 56px;
        height: 36px;
        margin: 12px auto 12px;
        padding: 0;
        border: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        cursor: pointer;
    }
    .pink-menu-toggle span {
        display: block;
        width: 34px;
        height: 4px;
        border-radius: 999px;
        background: #e11d74;        /* strong pink lines */
    }

    /* Overlay visible when open */
    .pink-mobile-menu-overlay.open {
        display: flex;
    }

    .pink-mobile-menu-overlay .mobile-nav {
        background: #ffe4f0;
        margin: auto;
        width: 90%;
        max-width: 360px;
        border-radius: 24px;
        padding: 24px 20px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    }

    /* Menu list styling */
    .pink-mobile-menu-overlay .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .pink-mobile-menu-overlay .mobile-nav a {
        display: block;
        text-decoration: none;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: #b01960;
    }

    .pink-mobile-menu-overlay .close-menu {
        position: absolute;
        top: 18px;
        right: 18px;
        border: none;
        background: transparent;
        font-size: 28px;
        color: #ffffff;
        cursor: pointer;
    }
}

/* Fix desktop nav layout (leave mobile alone) */
@media (min-width: 769px) {
  .pink-header .desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    align-items: center;
  }

  .pink-header .desktop-nav ul li {
    margin: 0;
  }

  .pink-header .desktop-nav ul li a {
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b01960;
  }

  .pink-header .desktop-nav ul li a:hover {
    opacity: 0.75;
  }
}

/* Desktop nav typography enhancement */
@media (min-width: 769px) {
  .pink-header .desktop-nav ul li a {
    font-size: 15px;        /* increase size slightly */
    font-weight: 600;       /* make thicker */
    letter-spacing: 0.14em; /* optional — adds more elegance */
    color: #b01960;
  }

  .pink-header .desktop-nav ul li a:hover {
    opacity: 0.7;
  }
}

/* Reduce hero height – tighter vertical spacing */
.home-hero {
  padding-top: 60px !important;   /* was 80px */
  padding-bottom: 40px !important; /* was 60px */
}

/* Desktop adjustments */
@media (min-width: 769px) {
  .pink-hero-inner {
    gap: 20px !important;  /* reduce empty middle space */
  }

  .pink-hero-graphic img {
    max-width: 320px !important;  /* slightly smaller image */
  }

  .pink-hero-text h1 {
    font-size: 40px !important;   /* keep strong presence */
    margin-bottom: 12px !important;
  }

  .tagline {
    margin-bottom: 22px !important;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .home-hero {
    padding-top: 40px !important;  /* was 60px */
    padding-bottom: 30px !important; 
  }

  .pink-hero-graphic img {
    max-width: 400px !important;  /* slightly smaller image */
    margin-bottom: 10px !important;
  }

  .pink-hero-text h1 {
    font-size: 30px !important;
  }

  .tagline {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
  }
}

/* === FULL-WIDTH HERO === */
.home-hero {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* === INNER PADDING === */
.pink-hero-inner {
  padding-left: 50px !important;
  padding-right: 50px !important;
  gap: 20px !important;
}

/* === BIGGER WINDOW ON DESKTOP === */
@media (min-width: 769px) {
  .pink-hero-graphic img {
    max-width: 440px !important;
  }
}

/* ---------------------------------------------
   HERO MASTER CONTROL PANEL — THE PINK PORTAL
   Adjust sizes easily for desktop & mobile
----------------------------------------------*/

/* DESKTOP CONTROLS */
@media (min-width: 769px) {

  /* Control hero padding (height) */
  .home-hero {
    padding-top: 50px;     /* adjust up/down */
    padding-bottom: 50px;  /* adjust up/down */
  }

  /* Control desktop image size */
  .pink-hero-graphic img {
    max-width: 1000px;   /* Increase/decrease image */
    width: 150%;
  }

  /* Control spacing between text + window */
  .pink-hero-inner {
    gap: 60px;          /* Increase to separate, decrease to bring closer */
  }

  /* Desktop title size */
  .pink-hero-text h1 {
    font-size: 48px;     /* adjust hero title size */
    letter-spacing: 0.18em;
  }

  /* Desktop tagline size */
  .pink-hero-text .tagline {
    font-size: 1.25rem;  /* adjust tagline */
  }

  /* Desktop button size */
  .cta-group .cta-button {
    padding: 14px 34px;  /* adjust button size */
    font-size: 16px;
  }
}


/* MOBILE CONTROLS */
@media (max-width: 768px) {

  /* Control hero height on mobile */
  .home-hero {
    padding-top: 20px;      /* reduce height */
    padding-bottom: 40px;
  }

  /* Control mobile image size */
  .pink-hero-graphic img {
    max-width: 400px;      /* scale up/down entire window image */
    margin: 0 auto;
  }

  /* Bring text + window closer together */
  .pink-hero-inner {
    gap: 10px;             /* reduce to bring image/text closer */
  }

  /* Mobile title size */
  .pink-hero-text h1 {
    font-size: 34px;       /* adjust hero title */
    letter-spacing: 0.15em;
  }

  /* Mobile tagline size */
  .pink-hero-text .tagline {
    font-size: 1.05rem;
  }

  /* Mobile button size */
  .cta-group .cta-button {
    padding: 12px 26px;
    font-size: 16px;
  }
}

/* ==== Header Cart + Account Icons ==== */
.menu-item.account-icon a,
.menu-item.cart-icon a {
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-weight:600;
    color:#B1005A; /* Pink Portal color */
}

.menu-item.cart-icon .ppb-count {
    background:#C81578;
    color:white;
    padding:2px 6px;
    border-radius:50px;
    font-size:10px;
    font-weight:600;
    margin-left:2px;
}

.menu-item.account-icon a:hover,
.menu-item.cart-icon a:hover {
    opacity:.7;
}

/* === PINK PORTAL – FORCE 4 COLUMNS ON DESKTOP === */
@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 32px;
  }
}

/* === FORCE 4-COLUMN PRODUCT GRID ON DESKTOP === */
@media (min-width: 1024px) {
  /* Make the product list a clean 4-col grid */
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce ul.products.columns-4,
  .woocommerce-page ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 40px !important;
  }

  /* Let each product fill its grid cell (no 420px cap) */
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    float: none !important;
  }
}

/* FIX: Prevents non-product elements (like result count or sorting) from taking a column slot in the grid */
.woocommerce ul.products > *:not(li.product) {
    display: none;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

@media (min-width: 1000px) { /* Adjust 1000px to your desired desktop size */
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* === PINK PORTAL – FORCE 4-COLUMN SHOP GRID ON DESKTOP === */
@media (min-width: 1024px) {

  /* grid wrapper: 4 equal columns */
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 32px !important;
    margin: 40px auto 60px;
    padding: 0;
    list-style: none;
  }

  /* let the grid control widths – kill old 33% rules */
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
}

/* keep your existing mobile grid as-is */
@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* FIX: Prevents non-product elements (like result count or sorting) from taking a column slot in the grid */
.woocommerce ul.products > *:not(li.product) {
    display: none !important; 
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* ENFORCE MOBILE STACK (1 COLUMN) */
@media (max-width: 599px) { 
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* ENFORCE DESKTOP GRID (4 COLUMNS) */
@media (min-width: 1024px) { 
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* === FINAL, ABSOLUTE GRID OVERRIDE: ADD TO THE END OF YOUR ORIGINAL CSS FILE === */

/* 1. Target the CONTAINER (ul.products) on desktop (1024px and up) */
@media (min-width: 1024px) { 
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        display: grid !important; 
        grid-template-columns: repeat(4, 1fr) !important; /* FORCES 4 EQUAL COLUMNS */
        grid-gap: 20px !important; /* Consistent spacing between items */
        
        /* Aggressive resets to prevent layout corruption from theme/plugin styles */
        margin: 0 !important; 
        padding: 0 !important;
        float: none !important; 
        width: 100% !important; 
    }

    /* 2. Target the ITEMS (li.product) to ensure they only take one column slot */
    .woocommerce ul.products li.product {
        grid-column: span 1 !important; /* CRUCIAL: Ensures every item takes exactly 1 column */
        
        /* Aggressive resets to ignore faulty WooCommerce classes like .first and .last */
        width: auto !important; /* Let the grid manage item width */
        margin: 0 !important; 
        float: none !important;
        clear: none !important; /* Ignores the faulty row-clearing */
    }
}

/* 3. Optional: Ensure Mobile Stack is 1 column (below 600px) */
@media (max-width: 599px) { 
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}



