/* Main menu items */
.menu-item {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  color: #333; /* Base color */
  transition: color 0.3s ease-in-out;
}

/* Underline animation */
.menu-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #ff6600; /* Accent color */
  transition: width 0.3s ease-in-out;
}

.menu-item:hover::after {
  width: 100%; /* Animates the underline to full width */
}

.menu-item:hover {
  color: #ff69b4; /* Fun pink hover effect */
}

/* Hide all submenus by default */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  width: 600px;
  column-count: 3; /* Splits into 3 columns */
  column-gap: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

/* Show submenu when hovering over the parent item */
.menu-item:hover > .sub-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Submenu items */
.sub-menu li {
  display: list-item;
  margin-bottom: 1px;
  break-inside: avoid-column;
  transition: transform 0.3s ease-in-out;
}

/* Submenu links */
.sub-menu li a {
  text-decoration: none;
  font-weight: 500;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effects for submenu items */
.sub-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateX(5px);
}

/* Hide the page title on all pages except product pages */
body:not(.single-product) .entry-title {
  display: none !important;
}

/* Hide sidebar on homepage */
.home .sidebar,
.home .widget-area {
  display: none;
}

.home .content-area {
  /* Any specific homepage content styling */
}

.typewriter-container {
  text-align: center;
  width: 100%;
}

.typewriter {
  font-family: monospace;
  font-size: 2rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid black;
  width: 0;
  display: inline-block;
  margin: 0 auto;
}

.typewriter.animate {
  animation:
    typing 2s steps(2000) forwards,
    blink 0.7s step-end 100;
}

@keyframes typing {
  from { width: 0; }
  to { width: 39ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
  100% { border-color: black; }
}

/* Parallax Effect for Logos */
.parallax-logo-wrapper {
  overflow: hidden;
  white-space: nowrap;
  background: #ffff;
  padding: 0;
}

.parallax-logo-track {
  display: inline-block;
  animation: scroll-parallax 10s linear infinite;
}

.parallax-logo-track img {
  height: 60px;
  margin: 0 44px;
  display: inline-block;
  vertical-align: middle;
}

@keyframes scroll-parallax {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-1568px); }
}


/* Fixed header bar */
body::before {
  content: "🚨 UK! Free Shipping when you spend £200 🚨";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f01;
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 3px 0;
  z-index: 9999;
  font-size: 16px;
  font-family: sans-serif;
}

body {
  padding-top: 20px;
}

/* Wave Effect Enhanced */
.wave-effect {
  display: inline-block;
  perspective: 500px; /* adds depth for 3D rotation */
}

.wave-effect,
.wave-line {
  margin-bottom: 0; /* remove bottom margin */
  padding-bottom: 0; /* remove bottom padding */
}

.wave-effect span {
  display: inline-block;
  animation: wave 1.6s infinite ease-in-out;
  transform-origin: bottom center;
  color: #ff0066;
  /* Adding a subtle scale and rotation */
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, color;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.1));
}

.wave-effect span:nth-child(odd) {
  animation-name: waveOdd;
}

.wave-effect span:nth-child(even) {
  animation-name: waveEven;
}

/* Slightly different animations for odd/even letters */
@keyframes waveOdd {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); color: #ff0066; }
  50% { transform: translateY(-10px) rotate(8deg) scale(1.1); color: #ff3399; }
}

@keyframes waveEven {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); color: #ff0066; }
  50% { transform: translateY(-10px) rotate(-8deg) scale(1.1); color: #ff3399; }
}

/* Add staggered delays */
.wave-effect span:nth-child(1) { animation-delay: 0s; }
.wave-effect span:nth-child(2) { animation-delay: 0.1s; }
.wave-effect span:nth-child(3) { animation-delay: 0.2s; }
.wave-effect span:nth-child(4) { animation-delay: 0.3s; }
.wave-effect span:nth-child(5) { animation-delay: 0.4s; }
.wave-effect span:nth-child(6) { animation-delay: 0.5s; }
.wave-effect span:nth-child(7) { animation-delay: 0.6s; }
.wave-effect span:nth-child(8) { animation-delay: 0.7s; }

/* Wave-line style */
.wave-line {
  font-family: 'Arial', sans-serif;
  font-size: 72px;
  font-weight: 900;
  text-align: center;
  color: #ff0066;
  user-select: none;
  cursor: default;
}

/* Responsive: scale text on smaller screens instead of hiding */
@media only screen and (max-width: 890px) {
  .wave-line {
    font-size: 32px; /* smaller size to fit mobile screens */
    white-space: nowrap; /* keep it on one line */
    overflow: hidden;   /* hide overflow if still too long */
  }
}

@media only screen and (max-width: 480px) {
  .wave-line {
    font-size: 30px; /* further scale down for small phones */
  }
}


@media screen and (min-width: 1200px) {
  .storefront-primary-navigation {
    width: 100vw; /* full viewport width */
    max-width: 100%;
    margin: 0;
    left: 0;
    right: 0;
    position: relative;
  }

  .main-navigation ul.menu,
  .main-navigation ul.nav-menu {
    justify-content: center;
    width: 100%;
    max-width: none;
  }

  .main-navigation {
    padding: 0 2px; /* optional padding */
  }

  .site-header .col-full {
    max-width: 75%;
    padding: 0;
  }
}

/* Expand main content wrapper on shop & category pages */
.woocommerce.archive .site-main .col-full {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* Optional: Remove left/right padding from inside content blocks */
.woocommerce .site-main {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Fix dropdown menu on mobile */
@media screen and (max-width: 768px) {
  .main-navigation ul li ul {
    position: relative; /* keep dropdown aligned within menu */
    width: 100%; /* match parent width */
    max-width: 100vw; /* prevent overflow */
    left: 0;
    right: 0;
    overflow-x: hidden; /* hide horizontal overflow */
    overflow-y: auto; /* allow vertical scrolling */
    max-height: 70vh; /* keep dropdown within screen height */
    background: #fff; /* ensure background covers content */
    z-index: 9999;
  }

  /* Ensure dropdown items are readable and spaced */
  .main-navigation ul li ul li {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
  }
}


/* Apply only on screens wider than 768px */
@media (min-width: 768px) {

  /* --- GENERAL LAYOUT --- */
  .woocommerce ul.products li.product {
    background-color: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: rotate(-1deg);
    position: relative;
  }

  .woocommerce ul.products li.product:nth-child(even) {
    transform: rotate(1deg);
  }

  .woocommerce ul.products li.product:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    z-index: 2;
  }

  /* --- PRODUCT IMAGE --- */
  .woocommerce ul.products li.product img {
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
  }

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

  /* --- PRODUCT TITLE --- */
  .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 5px 0;
    box-shadow: none;
    transform: rotate(-1deg);
    transition: transform 0.3s ease, color 0.3s ease;
  }

  /* --- PRICE STYLE --- */
  .woocommerce ul.products li.product .price {
    font-size: 1rem;
    font-weight: 600;
    color: #ff0066;
    margin-bottom: 10px;
  }

  /* --- ADD TO CART BUTTON --- */
  .woocommerce ul.products li.product a.button {
    background-color: #ff0066;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  }

  .woocommerce ul.products li.product a.button:hover {
    background-color: #cc0052;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    text-decoration: none;
  }

  /* --- SALE BADGE --- */
  .woocommerce span.onsale {
    background-color: #000;
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 4px;
    position: absolute;
    top: 15px;
    left: 15px;
    transform: rotate(-5deg);
  }

  /* --- ORDERING SELECT --- */
  .woocommerce-ordering select {
    background-color: #000;
    color: #fff;
    border-radius: 25px;
    padding: 8px 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid #ff0066;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
  }

  .woocommerce-ordering select:hover {
    border-color: #cc0052;
    background-color: #111;
  }

  .woocommerce-ordering {
    position: relative;
  }

  .woocommerce-ordering::after {
    content: "▼";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
  }

} /* end desktop media query */

@media (max-width: 767px) {

  /* Make sure products always start in first grid cell */
  .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }

  /* Reset any floats, widths, margins causing placeholders */
  .woocommerce ul.products li.product {
    width: 100% !important;  /* make them fill the grid cell */
    float: none !important;
    margin: 0 !important;
  }

  /* Optional: remove theme placeholder first-child spacing */
  .woocommerce ul.products li.product:first-child {
    margin-left: 0 !important;
  }
}


/* Tablet + Desktop only */
@media (min-width: 768px) {

  /* Homepage text bubble */
  .home .homepage-text-bubble {
    background: #fff;
    border: 3px solid #000;
    border-radius: 25px;
    padding: 40px;
    margin: 80px auto;
    max-width: 800px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    box-shadow: 8px 8px 0 #ffcf56;
    position: relative;
    text-align: center;
    transform: rotate(-1.5deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /* Funky coloured border layers */
  .home .homepage-text-bubble::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px dashed #ff5ba5;
    border-radius: 30px;
    z-index: -1;
    transform: rotate(2deg);
  }

  /* Hover effect */
  .home .homepage-text-bubble:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 10px 10px 0 #ff5ba5;
    cursor: pointer;
  }

  /* Top & bottom breathing space for the section */
  .home .homepage-text-section {
    padding: 60px 0;
  }

  /* Category carousel heading */
  .category-carousel h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2a2a72;
  }

  /* Carousel wrapper */
  .carousel-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(42, 42, 114, 0.2);
    background: #ffffffcc; /* semi-transparent white */
    padding: 20px;
  }

  /* Carousel track */
  .carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 24px;
  }

}
/* ====== Mobile only: full-width, all text centered ====== */
@media (max-width: 767px) {

  .home .homepage-text-bubble {
    all: unset;                  /* remove previous styles */
    display: block;
    width: 100%;                 /* full width */
    margin: 0;                   /* remove extra spacing */
    padding: 0;                  /* no padding */
    background: none;            /* transparent */
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;           /* readable, compact */
    line-height: 1.2;            /* tighter spacing */
    color: #222;
    text-align: center !important; /* center all text */
  }

  /* Force all inner elements to center */
  .home .homepage-text-bubble * {
    text-align: center !important;
    margin: 0 auto;              /* optional: ensures proper centering */
  }

  .home .homepage-text-bubble img {
    max-width: 100%;             /* image scales to container */
    height: auto;
    display: block;
    margin: 0 auto 5px auto;     /* center image, small spacing below */
  }

  .home .homepage-text-section {
    padding: 0;                  /* remove section padding */
  }

  .category-carousel h2 {
    font-size: 1.4rem;
    margin: 5px 0;
    text-align: center;
  }

  .carousel-wrapper {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }

  .carousel-track {
    gap: 8px;
  }

}









.category-card {
  flex: 0 0 220px;
  background: white;
  border-radius: 16px;
  box-shadow:
    0 8px 16px rgba(42, 42, 114, 0.15),
    0 0 0 4px #f0f4ff;
  text-align: center;
  padding: 25px 20px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.category-card:hover {
  transform: translateY(-10px) scale(1.07);
  box-shadow:
    0 16px 32px rgba(42, 42, 114, 0.3),
    0 0 0 6px #c3cfe2;
}

.category-card img {
  width: 110px;
  height: auto;
}

.category-description,
.woocommerce-category-description,
.archive-description,
.term-description {
  max-height: 4.5em; /* show roughly 3 lines */
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

.category-description::after,
.woocommerce-category-description::after,
.archive-description::after,
.term-description::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.category-description.expanded,
.woocommerce-category-description.expanded,
.archive-description.expanded,
.term-description.expanded {
  max-height: none;
}

.category-description.expanded::after,
.woocommerce-category-description.expanded::after,
.archive-description.expanded::after,
.term-description.expanded::after {
  display: none;
}

.read-more-toggle {
  display: block;
  text-align: center;
  margin-top: 10px;
  cursor: pointer;
  color: #0073aa;
  text-decoration: underline;
}

.read-more-toggle:hover {
  color: #005177;
}
.pill-row {
  background-image: url('https://diabolicalgifts.com/wp-content/uploads/2025/05/ai-3b3c9cba-4f68-41f6-869a-addf44d8a8a3_.png');
  background-size: 100% auto; /* Keeps full image width and natural height */
  background-repeat: no-repeat;
  background-position: bottom;
  width: 100vw; /* Full viewport width */
  margin-left: calc(-50vw + 50%); /* Breaks out of page padding */
  padding: 50px 0;
  display: flex;
  justify-content: left;
}

.fun-pills-container {
  display: flex;
  align-items: flex-end;
  position: relative; /* Keeps it in the normal flow */
  z-index: 1;
}

.fun-pill {
  width: clamp(150px, 18vw, 400px); /* Makes the mints responsive */
  margin-left: -6vw; /* Keeps the overlap effect */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Prevents leftmost image from being cut off */
.fun-pill:first-child {
  margin-left: 0;
}

/* Hover effects */
.fun-pill:hover {
  transform: translateY(-20px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0);
  z-index: 3;
}

/* HIDE on tablet and phone */
@media screen and (max-width: 1024px) {
  .pill-row {
    display: none;
  }
}


@media screen and (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}
/* Hide the "Built with Storefront & WordPress.com" completely */
.site-info a[href*="wordpress.com"],
.site-info a[href*="storefront"] {
    display: none !important;
}
/* Default: show desktop banner, hide mobile */
.desktop-banner {
  display: block;
}
.mobile-banner {
  display: none;
}

/* On mobile (and smaller tablets) */
@media (max-width: 769px) {
  .desktop-banner {
    display: none !important; /* hide desktop banner */
  }
  .mobile-banner {
    display: block !important; /* show mobile banner */
  }
}

/* Hide on desktop (≥769px) */
@media (min-width: 769px) {
  .hide-on-desktop {
    display: none !important;
  }
}
@media only screen and (max-width: 768px) {
    /* Remove gap below header/logo on mobile */
    #masthead {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}