/*!
Theme Name: Devil's Dreamworld
Description: Devil's Dreamworld WordPress Theme - WooCommerce Compatible
Version: 3.0
Author: Daniel Harrold
Text Domain: devils-dreamworld
Domain Path: /languages
*/

/* ========================================
   RESET & BASE STYLES
======================================== */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  overflow-y: auto;
  height: auto;
  min-height: 100%;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  background: #000;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   TYPOGRAPHY SYSTEM
======================================== */
h1, h2, h3, h4, h5, h6,
.page-title, .section-title, .product-title-main,
.woocommerce-loop-product__title {
  font-family: "IM Fell English", serif;
  font-weight: 400;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

h1, .page-title { font-size: 48px; }
h2, .section-title { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }

.page-hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title-dark {
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.hero-welcome {
  font-family: "IM Fell English", serif;
  font-size: 16px;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 3px;
  font-weight: 400;
  text-align: center;
}

.section-subtitle, .page-subtitle, .hero-subtitle-dark, .page-hero-subtitle {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 50px;
  color: #ccc;
  text-align: center;
}

.hero-subtitle-dark {
  font-size: 18px;
  color: #fff;
  margin-bottom: 40px;
}

.page-hero-subtitle {
  font-size: 18px;
  color: #fff;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

p {
  margin-bottom: 16px;
  color: #ccc;
}

a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #8b5cf6;
}

/* ========================================
   BUTTON SYSTEM
======================================== */
.btn-primary,
.horror-button,
.woocommerce .button,
.woocommerce input.button,
button {
  display: inline-block;
  padding: 12px 25px;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid #8b5cf6;
  background: transparent;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
  cursor: pointer;
  border-radius: 0;
  font-family: "IM Fell English", serif;
}

.btn-primary:hover,
.horror-button:hover,
.woocommerce .button:hover,
.woocommerce input.button:hover,
button:hover {
  background: #8b5cf6;
  color: #fff;
  text-decoration: none;
}

.btn-primary.primary,
.horror-button.primary,
.woocommerce .button.alt {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

.btn-primary.primary:hover,
.horror-button.primary:hover,
.woocommerce .button.alt:hover {
  background: #7c3aed;
  border-color: #7c3aed;
}

.btn-large {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
}

/* ========================================
   HEADER SYSTEM
======================================== */
.main-header {
  background: #000;
  padding: 15px 0;
  position: relative;
  border-bottom: 1px solid #333;
  z-index: 1000;
}

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

.header-logo .logo-link {
  font-family: "Creepster", cursive;
  font-size: 24px;
  color: #f44;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-logo .logo-link:hover {
  color: #f66;
}

.header-nav .header-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.header-nav .header-menu li a {
  color: #fff;
  font-weight: 400;
  padding: 8px 15px;
  transition: all 0.3s ease;
  font-size: 15px;
  text-decoration: none;
  font-family: "Open Sans", Arial, sans-serif;
  position: relative;
  display: block;
  border-radius: 4px;
}

.header-nav .header-menu li a:hover {
  color: #f44;
  background: rgba(255, 255, 255, 0.05);
}

.header-nav .header-menu li.current-menu-item > a,
.header-nav .header-menu li.current_page_item > a {
  color: #f44;
}

.header-nav .header-menu li.current-menu-item > a::after,
.header-nav .header-menu li.current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  height: 2px;
  background-color: #8b5cf6;
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.header-cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.header-cart-link:hover {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.cart-count {
  background: #8b5cf6;
  color: #fff;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  position: absolute;
  top: -2px;
  right: -2px;
  animation: cartPulse 0.3s ease;
}

@keyframes cartPulse {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.header-top-bar {
  background: #fff;
  padding: 10px 0;
  font-size: 13px;
  text-align: center;
  position: relative;
  z-index: 1001;
}

.top-bar-items {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.top-bar-item {
  color: #000;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

/* ========================================
   HERO SECTIONS
======================================== */
.hero-section-dark,
.page-hero-enhanced {
  position: relative;
  width: 100vw;
  height: 70vh;
  min-height: 800px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero-enhanced {
  height: 50vh;
  min-height: 400px;
}

.page-hero {
  padding: 40px 0;
  background: #000;
  text-align: center;
}

.hero-background,
.page-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-bg-image,
.page-hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.2);
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  width: 100%;
  padding: 0;
}

.hero-content-dark,
.page-hero-content-enhanced {
  text-align: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
  position: relative;
  z-index: 3;
}

.page-hero-content-enhanced {
  max-width: 800px;
}

.page-hero-breadcrumb {
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 20px;
  margin-bottom: 30px;
  display: inline-block;
  font-size: 14px;
  color: #ccc;
}

.page-hero-breadcrumb a {
  color: #8b5cf6;
  text-decoration: none;
}

.page-hero-breadcrumb a:hover {
  color: #fff;
}

.hero-buttons-dark,
.page-hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

/* Hero stats */
.hero-stats-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 30px 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  width: 100%;
}

.hero-stats {
  display: flex;
  justify-content: space-between;
  gap: 100px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

.stat-item {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
  padding: 15px;
}

.stat-icon {
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 1;
  text-indent: -9999px;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 0;
}

.stat-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  display: block;
  line-height: 1.2;
  font-family: "Open Sans", Arial, sans-serif;
}

.stat-label {
  font-size: 16px;
  color: #fff;
  font-weight: 400;
  display: block;
  line-height: 1;
  font-family: "Open Sans", Arial, sans-serif;
}

.trustpilot-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 80px;
  margin-top: 30px;
}

.trustmark-image {
  max-width: 330px;
  height: auto;
  filter: brightness(1);
}

/* ========================================
   SINGLE PRODUCT PAGE - WORKING LAYOUT
======================================== */

/* Main product container */
.product-main-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Product images container */
.product-images {
  flex: 1;
  max-width: 500px;
}

/* Product summary container */
.product-summary {
  flex: 1;
  max-width: 600px;
}

/* WooCommerce Gallery Fix */
.woocommerce-product-gallery {
  opacity: 1 !important;
  transition: none !important;
  position: relative;
}

/* Magnifying glass positioning - WORKING VERSION */
.woocommerce-product-gallery__trigger {
  position: absolute;
  bottom: 0;
  right: 21px;
  width: 36px;
  height: 36px;
  background: rgba(139, 92, 246, 0.9);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
  opacity: 0.9;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-indent: -9999px;
  top:20px;
}

.woocommerce-product-gallery__trigger:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(139, 92, 246, 1);
  border-color: rgba(255, 255, 255, 0.5);
}

.woocommerce-product-gallery__trigger::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  text-indent: 0;
}

/* Thumbnails - enhanced by JavaScript */
.flex-control-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.flex-control-thumbs li {
  width: 80px;
  height: 80px;
  margin: 0;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.flex-control-thumbs li:hover {
  border-color: #8b5cf6;
  transform: scale(1.05);
}

.flex-control-thumbs li.flex-active {
  border-color: #8b5cf6;
  border-width: 3px;
}

.flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 2px;
}

/* Main product image */
.woocommerce-product-gallery__wrapper {
  width: 100%;
  margin-bottom: 15px;
}

.woocommerce-product-gallery__image {
  width: 100%;
  margin: 0 0 15px 0;
}

.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1a1a;
}

.woocommerce-product-gallery__image a {
  display: block;
  text-decoration: none;
}

/* Product title */
.woocommerce div.product .product_title {
  font-family: "IM Fell English", serif;
  font-size: 2.2rem;
  color: #fff;
  text-align: left;
  margin-bottom: 20px;
}

/* Product price */
.woocommerce div.product p.price {
  font-size: 1.8rem;
  color: #8b5cf6;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Basic form styling */
.summary form.cart {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  align-items: flex-end;
}

.summary .quantity {
  display: flex;
  flex-direction: column;
}

.summary .quantity label {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 5px;
}

.summary .quantity input {
  width: 70px;
  padding: 10px;
  text-align: center;
  background: #222;
  border: 1px solid #333;
  color: #fff;
  border-radius: 4px;
}

.summary .single_add_to_cart_button {
  padding: 12px 25px;
  background: #8b5cf6;
  color: white;
  border: none;
  cursor: pointer;
  font-family: "IM Fell English", serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.summary .single_add_to_cart_button:hover {
  background: #7c3aed;
}

/* Product meta */
.woocommerce div.product .product_meta {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 14px;
  color: #999;
}

/* ========================================
   GRID SYSTEM - FIXED FOR RELATED PRODUCTS
======================================== */
.grid-base,
.products-grid,
.columns-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin: 20px auto;
  list-style: none;
  padding: 0;
  width: 100%;
}

/* Main WooCommerce product grids */
.woocommerce ul.products,
.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin: 20px auto;
  list-style: none;
  padding: 0;
  width: 100%;
}

/* FIXED: Related products container styling */
.related.products,
.upsells.products {
  margin-top: 60px;
  background: #000;
  padding: 40px 20px;
  display: block;
  clear: both;
  width: 100%;
}

/* FIXED: Related products heading - keep outside grid */
.related.products h2,
.upsells.products h2 {
  font-family: "IM Fell English", serif;
  font-size: 2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  display: block;
  width: 100%;
  grid-column: unset;
}

/* FIXED: Target only the products list within related products */
.related.products ul.products,
.related.products .products,
.upsells.products ul.products,
.upsells.products .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 1200px;
}

/* FIXED: Center related products within container */
.single-product-page .related.products .container,
.single-product-page .upsells.products .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 40px 0;
}

.shop-features-grid,
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

/* ========================================
   CARD SYSTEM
======================================== */
.card-enhanced,
.product-card,
.blog-card {
  background: #111;
  padding: 25px;
  border: 1px solid #333;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card-enhanced:hover,
.product-card:hover,
.blog-card:hover {
  transform: translateY(-8px);
  border-color: #8b5cf6;
}

/* ========================================
   WOOCOMMERCE SPECIFIC STYLES - FIXED
======================================== */

/* Product listings */
.woocommerce ul.products li.product,
.woocommerce .products li.product {
  text-align: center;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  position: relative;
  width: auto;
  float: none;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin: 0 0 15px;
  border-radius: 8px;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
  filter: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.title-base {
  font-family: "IM Fell English", serif;
  font-size: 24px;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 400;
  text-align: center;
  line-height: 1.3;
}

.woocommerce ul.products li.product .price,
.price {
  font-size: 16px;
  font-weight: 400;
  color: #8b5cf6;
  margin: 0 0 12px;
  text-align: center;
  display: block;
}

.woocommerce-Price-amount.amount {
  font-weight: bold;
  color: #8b5cf6;
  font-size: 25px;
  display: block;
  line-height: 24px;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  margin-top: 10px;
}

/* My Account Page - Hide all auto-generated titles (we use custom hero titles) */
body.woocommerce-account.logged-in .my-account-page.is-logged-in > .woocommerce-page-title,
body.woocommerce-account.logged-in .my-account-page.is-logged-in > h1,
body.woocommerce-account.logged-in .my-account-page.is-logged-in > h2,
body.woocommerce-account.logged-in .my-account-page.is-logged-in > .entry-title,
body.woocommerce-account.logged-in .my-account-page.is-logged-in > .page-title,
body.woocommerce-account.logged-in .entry-header,
body.woocommerce-account.logged-in .page-title,
body.woocommerce-account.logged-in .woocommerce-page-title {
  display: none !important;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .section-base {
  padding: 56px 0 70px;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .account-dashboard {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  margin-top: 0;
  align-items: start;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .account-navigation-wrapper {
  background: #111;
  border-radius: 12px;
  border: 1px solid #333;
  padding: 0;
  height: fit-content;
  position: sticky;
  top: 100px;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid #333;
  margin: 0;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 25px;
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-family: "Open Sans", Arial, sans-serif;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-navigation ul li a:hover,
body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-navigation ul li.is-active a {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  padding-left: 35px;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-navigation ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #8b5cf6;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-navigation ul li a:hover::before,
body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-navigation ul li.is-active a::before {
  transform: scaleY(1);
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .account-content-wrapper {
  background: #111;
  border-radius: 12px;
  border: 1px solid #333;
  padding: 32px;
  min-height: 500px;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-content > *:first-child {
  margin-top: 0;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-content > *:last-child {
  margin-bottom: 0;
}

body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-content p {
  margin: 0 0 16px;
  line-height: 1.65;
}

/* Hide WooCommerce's default endpoint titles - we use custom title in hero section */
body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-content > h1:first-child,
body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-content > h2:first-child,
body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-content > h3:first-child,
body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-content > h4:first-child,
body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-content > header:first-child,
body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-content > h1,
body.woocommerce-account.logged-in .my-account-page.is-logged-in .woocommerce-MyAccount-content > h2:not(.woocommerce-order-details__title) {
  display: none !important;
}

/* Edit account form spacing + remove default white fieldset border */
.my-account-page .woocommerce-EditAccountForm {
  margin: 0;
}

.my-account-page .woocommerce-EditAccountForm .woocommerce-form-row {
  margin-bottom: 18px;
}

.my-account-page .woocommerce-EditAccountForm fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0 0;
}

.my-account-page .woocommerce-EditAccountForm fieldset legend {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: #fff;
  font-family: "IM Fell English", serif;
  font-size: 1.25rem;
}

.my-account-page .woocommerce-EditAccountForm fieldset .woocommerce-form-row {
  margin-bottom: 16px;
}

.my-account-page .woocommerce-EditAccountForm .woocommerce-Button {
  margin-top: 8px;
}

.my-account-page .woocommerce-MyAccount-content h2,
.my-account-page .woocommerce-MyAccount-content h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

/* Form Elements */
.form-input,
.form-select,
.form-textarea,
.woocommerce .form-row input.input-text,
.woocommerce .form-row textarea,
.woocommerce .form-row select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-family: "Open Sans", Arial, sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
  margin: 0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.woocommerce .form-row input:focus,
.woocommerce .form-row textarea:focus,
.woocommerce .form-row select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  background: #2a2a2a;
}

.woocommerce .form-row label {
  display: block;
  color: #fff;
  font-weight: 500;
  margin-bottom: 8px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
}

.required {
  color: #f44;
  font-weight: 700;
}

/* Sections */
.section-base {
  padding: 40px 0;
  background: #000;
}

/* Footer */
.site-footer {
  background: #000;
  color: #ccc;
  padding: 60px 0 20px;
  position: relative;
  clear: both;
  border-top: 1px solid #333;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  color: #fff;
  margin-bottom: 20px;
  text-align: left;
}

.footer-menu {
  list-style: none;
}

.footer-menu a {
  color: #ccc;
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #666;
}

/* Mobile Menu */
.mobile-menu-checkbox {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1002;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Show mobile menu when checkbox is checked */
.mobile-menu-checkbox:checked ~ .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* Transform hamburger when menu is open */
.mobile-menu-checkbox:checked ~ .header-container .mobile-menu-toggle .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-checkbox:checked ~ .header-container .mobile-menu-toggle .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-checkbox:checked ~ .header-container .mobile-menu-toggle .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu wrapper */
.mobile-menu-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #111;
  border-left: 1px solid #333;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-checkbox:checked ~ .mobile-menu-overlay .mobile-menu-wrapper {
  transform: translateX(0);
}

/* Mobile menu header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #333;
  background: #000;
}

.mobile-menu-header .mobile-logo .logo-link {
  font-family: "Creepster", cursive;
  font-size: 18px;
  color: #f44;
  text-decoration: none;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.mobile-menu-close:hover {
  color: #8b5cf6;
}

/* Mobile navigation */
.mobile-navigation {
  flex: 1;
  padding: 0;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-list li {
  border-bottom: 1px solid #333;
}

.mobile-menu-list li:last-child {
  border-bottom: none;
}

.mobile-menu-list li a {
  display: block;
  padding: 20px 25px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-menu-list li a:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  padding-left: 35px;
}

/* Mobile cart section */
.mobile-cart-section {
  padding: 20px 25px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.mobile-cart-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-cart-link:hover {
  color: #8b5cf6;
}

/* Mobile contact info */
.mobile-contact-info {
  padding: 20px 25px;
  background: #0a0a0a;
}

.mobile-contact-info .contact-item {
  margin-bottom: 15px;
}

.mobile-contact-info .contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-size: 12px;
  color: #666;
  display: block;
  margin-bottom: 4px;
}

.mobile-contact-info a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.mobile-contact-info a:hover {
  color: #8b5cf6;
}

/* Mobile account menu toggle - hidden by default */
.mobile-account-menu-toggle {
  display: none;
  background: #8b5cf6;
  color: #fff;
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
  font-family: "IM Fell English", serif;
  font-size: 16px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.mobile-account-menu-toggle:hover {
  background: #7c3aed;
  transform: translateY(-2px);
}

.account-nav-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #333;
  background: #000;
}

.account-nav-header h3 {
  font-family: "IM Fell English", serif;
  color: #fff;
  margin: 0;
  font-size: 20px;
  text-align: left;
}

.close-account-menu {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.3s ease;
}

.close-account-menu:hover {
  color: #8b5cf6;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Single product mobile */
  .product-main-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }
  
  .product-images,
  .product-summary {
    max-width: 100%;
  }
  
  .summary form.cart {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .summary .quantity {
    width: 100px;
  }
  
  .flex-control-thumbs li {
    width: 60px;
    height: 60px;
  }
  
  .flex-control-thumbs li img {
    width: 60px;
    height: 60px;
  }

  /* Magnifying glass mobile */
  .woocommerce-product-gallery__trigger {
    bottom: 75px;
    right: 15px;
    width: 32px;
    height: 32px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 0 20px;
  }

  .stat-item {
    padding: 10px;
    gap: 10px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-icon {
    width: 20px;
    height: 20px;
  }

  .grid-base,
  .woocommerce ul.products,
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .blog-grid,
  .results-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .grid-2col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .shop-features-grid,
  .trust-indicators {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .hero-title-dark {
    font-size: 40px;
  }

  .page-hero-title {
    font-size: clamp(28px, 8vw, 48px);
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 28px;
  }

  .related.products h2,
  .upsells.products h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .container {
    padding: 0 15px;
  }

  /* Account page mobile */
  .my-account-page .section-base {
    padding: 28px 0 36px;
  }

  .my-account-page .account-dashboard {
    display: block;
    grid-template-columns: none;
    gap: 0;
    margin-top: 0;
  }

  .mobile-account-menu-toggle {
    display: flex;
  }
  
  .account-nav-header {
    display: flex;
  }
  
  .account-navigation-wrapper.mobile-closed {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    z-index: 9999;
    background: #111;
    border-left: 1px solid #333;
    border-radius: 0;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .account-navigation-wrapper.mobile-open {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    z-index: 9999;
    background: #111;
    border-left: 1px solid #333;
    border-radius: 0;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .account-content-wrapper {
    padding: 24px 18px;
  }

  .top-bar-items {
    gap: 4px;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .grid-base,
  .woocommerce ul.products,
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-features-grid,
  .trust-indicators {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-hero-title {
    font-size: clamp(24px, 8vw, 36px);
  }

  .section-title {
    font-size: 24px;
  }

  .related.products h2,
  .upsells.products h2 {
    font-size: 1.3rem;
    margin-bottom: 25px;
  }

  .related.products,
  .upsells.products {
    padding: 30px 15px;
  }

  .hero-content-dark {
    padding: 15px;
  }

  .btn-large {
    width: 100%;
  }

  /* Single product mobile fixes */
  .product-main-container {
    padding: 0 10px;
  }
  
  .flex-control-thumbs li {
    width: 50px;
    height: 50px;
  }
  
  .flex-control-thumbs li img {
    width: 50px;
    height: 50px;
  }

  /* Magnifying glass mobile */
  .woocommerce-product-gallery__trigger {
    bottom: 65px;
    right: 12px;
    width: 28px;
    height: 28px;
  }
}

/* ========================================
   UTILITIES
======================================== */
.text-center {
  text-align: center;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Feature icons for homepage */
.handcraft-icon {
  width: 50px;
  height: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%238b5cf6' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0 auto 25px;
  opacity: 0.9;
  font-size: 0;
}

.handcraft-description,
.custom-description {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  color: #fff;
  margin-bottom: 35px;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  text-align: center;
}

.custom-text {
  text-align: center;
  color: #ccc;
}

.custom-image {
  position: relative;
  height: 350px;
  background: #111;
}

.custom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0;
}

.custom-placeholder::before {
  content: '';
  width: 80px;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%238b5cf6' viewBox='0 0 24 24'%3E%3Cpath d='M9 11H7v3h2v-3zm4 0h-2v3h2v-3zm4 0h-2v3h2v-3zm2.5-7H18V2h-2v2H8V2H6v2H4.5C3.11 4 2 5.11 2 6.5v11C2 18.89 3.11 20 4.5 20h15c1.39 0 2.5-1.11 2.5-2.5v-11C22 5.11 20.89 4 19.5 4zm.5 13.5c0 .28-.22.5-.5.5h-15c-.28 0-.5-.22-.5-.5v-8h16v8z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
}

/* WooCommerce notice styling - Floating notifications */
.woocommerce-notices-wrapper {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
  pointer-events: none;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  background: #10b981;
  border: 1px solid #059669;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(16, 185, 129, 0.3);
  pointer-events: auto;
  animation: slideInDown 0.4s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.woocommerce-message::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

.woocommerce-error {
  background: #ef4444;
  border-color: #dc2626;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(239, 68, 68, 0.3);
}

.woocommerce-error::before {
  content: "✕";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

.woocommerce-info {
  background: #3b82f6;
  border-color: #2563eb;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(59, 130, 246, 0.3);
}

.woocommerce-info::before {
  content: "ℹ";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin-left: auto;
}

.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
.woocommerce-info .button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Loading states */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333;
  border-top: 3px solid #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Ensure proper spacing */
.form-row {
  margin-bottom: 20px;
}

/* PayPal and payment button compatibility */
.ppc-button-wrapper {
  width: 100%;
  display: block;
  margin-top: 18px;
}

/* Accessibility improvements */
.woocommerce .form-row input:focus,
.woocommerce .form-row textarea:focus,
.woocommerce .form-row select:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card-enhanced {
    border-width: 2px;
  }
  
  .btn-primary {
    border-width: 2px;
  }
}

img.attachment-medium_large.size-medium_large.wp-post-image {
    width: 100%;
    height: auto;
}

/* Hero stat icons */
.hero-stats .stat-item:nth-child(1) .stat-icon {
  background-image: url(https://devilsdreamworld.com/wp-content/uploads/2025/08/tools-icon.svg) !important;
}

.hero-stats .stat-item:nth-child(2) .stat-icon {
  background-image: url(https://devilsdreamworld.com/wp-content/uploads/2025/08/thumbs-up-icon.svg) !important;
}

.hero-stats .stat-item:nth-child(3) .stat-icon {
  background-image: url(https://devilsdreamworld.com/wp-content/uploads/2025/08/mask-icon.svg) !important;
}

a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-gap: 16px;
}

/* Make main product image fill its container */
.woocommerce-product-gallery__image img {
  width: 100% !important;
  height: 500px !important; /* Set a fixed height */
  max-height: none !important; /* Remove the max-height restriction */
  object-fit: cover !important; /* Fill the container, cropping if necessary */
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1a1a;
}

/* Alternative: If you want the image to fit without cropping */
/*
.woocommerce-product-gallery__image img {
  width: 100% !important;
  height: 500px !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1a1a;
}
*/

/* Ensure the container allows the image to fill */
.woocommerce-product-gallery__wrapper {
  width: 100%;
  margin-bottom: 15px;
}

.woocommerce-product-gallery__image {
  width: 100%;
  margin: 0 0 15px 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .woocommerce-product-gallery__image img {
    height: 400px !important;
  }
}

@media (max-width: 480px) {
  .woocommerce-product-gallery__image img {
    height: 300px !important;
  }
}

/* More specific CSS targeting for thumbnail borders */

/* Target all possible thumbnail selectors */
.woocommerce-product-gallery .flex-control-thumbs li,
.flex-control-thumbs li {
  width: 80px !important;
  height: 80px !important;
  margin: 0 !important;
  cursor: pointer !important;
  border: 3px solid transparent !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  display: block !important;
}

/* Hover state */
.woocommerce-product-gallery .flex-control-thumbs li:hover,
.flex-control-thumbs li:hover {
  border-color: #8b5cf6 !important;
  transform: scale(1.05) !important;
}

/* Active/selected state - multiple selectors to catch different implementations */
.woocommerce-product-gallery .flex-control-thumbs li.flex-active,
.flex-control-thumbs li.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li.active,
.flex-control-thumbs li.active,
.woocommerce-product-gallery .flex-control-thumbs li.selected,
.flex-control-thumbs li.selected {
  border-color: #8b5cf6 !important;
  border-width: 4px !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6) !important;
}

/* Thumbnail images */
.woocommerce-product-gallery .flex-control-thumbs li img,
.flex-control-thumbs li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border: none !important;
  border-radius: 1px !important;
}

/* ========================================
   SAFE PRODUCT SUMMARY ENHANCEMENTS
   Add these to the END of your style.css
======================================== */

/* Remove container background - keep it clean */
.summary.entry-summary {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 20px;
}

/* Better product title spacing */
.woocommerce div.product .product_title {
  border-bottom: 2px solid #8b5cf6;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

/* Enhanced price display */
.woocommerce div.product p.price {
  background: rgba(139, 92, 246, 0.1);
  padding: 15px 20px;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: inline-block;
  margin-bottom: 25px;
}

/* Better short description styling */
.woocommerce div.product .woocommerce-product-details__short-description {
  background: #0a0a0a;
  padding: 20px;
  border-left: 4px solid #8b5cf6;
  border-radius: 0 6px 6px 0;
  margin-bottom: 25px;
  color: #ccc;
  line-height: 1.6;
}

/* Enhanced add to cart form */
.summary form.cart {
  background: #0a0a0a;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
  margin: 25px 0;
}

/* Better quantity input */
.summary .quantity input {
  border: 2px solid #333;
  border-radius: 6px;
  font-weight: 600;
}

.summary .quantity input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Enhanced add to cart button */
.summary .single_add_to_cart_button {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  font-size: 16px;
  min-width: 180px;
}

.summary .single_add_to_cart_button:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Hide SKU and product categories */
.woocommerce div.product .product_meta .sku_wrapper,
.woocommerce div.product .product_meta .posted_in {
  display: none;
}

/* Hide the entire product meta section if it only contains SKU/categories */
.woocommerce div.product .product_meta {
  display: none;
}

/* Hide product tabs (description, reviews, additional info) */
.woocommerce-tabs.wc-tabs-wrapper {
  display: none;
}

/* Also hide any review sections */
#reviews,
.woocommerce-Reviews {
  display: none;
}

/* ========================================
   POST ARTICLE IMAGES - RESPONSIVE
======================================== */
.single-post-page article img,
.single-post-page article figure img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  border: 1px solid #333;
}

/* Make sure figure elements also respond properly */
.single-post-page article figure {
  margin: 30px 0;
}

.single-post-page article figure figcaption {
  text-align: center;
  font-size: 14px;
  color: #999;
  margin-top: 10px;
  font-style: italic;
}

/* Ensure images don't overflow their containers */
.single-post-page article img {
  max-width: 100% !important;
  height: auto !important;
}

/* Disable hover effect on single post article content */
.single-post-page .blog-single-content,
.single-post-page .blog-single-content:hover {
  transform: none;
  border-color: #333;
}

/* ========================================
   SINGLE POST NAVIGATION
======================================== */
.single-post-nav {
  margin-top: 30px;
  gap: 20px;
}

.single-post-nav-card {
  display: block;
  text-decoration: none;
  text-align: left;
  padding: 20px;
}

.single-post-nav-prev {
  border-left: 4px solid #8b5cf6;
}

.single-post-nav-next {
  border-right: 4px solid #8b5cf6;
  text-align: right;
}

.single-post-nav-label {
  margin: 0 0 12px;
  color: #8b5cf6;
  font-size: 10px;
  font-family: "Open Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.single-post-nav-title {
  margin: 0;
  font-size: 1rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.single-post-nav-empty {
  min-height: 1px;
}

/* ========================================
   BLOG TILES & PAGINATION
======================================== */
.blog-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 60px 0;
}

.blog-tile-card {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 400px;
}

.blog-tile-card:hover {
  transform: translateY(-8px);
  border-color: #8b5cf6;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.blog-tile-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #222;
  flex-shrink: 0;
}

.blog-tile-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-tile-title {
  font-size: 1.3em;
  font-family: 'IM Fell English', serif;
  color: #fff;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.blog-tile-excerpt {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog Pagination Styling */
.blog-pagination {
  margin: 60px 0;
  text-align: center;
}

.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-nav span,
.pagination-nav a {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  min-width: 45px;
  text-align: center;
}

.pagination-nav a:hover,
.pagination-nav a:focus {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #fff;
}

.pagination-nav span.dots {
  border: none;
  padding: 10px 5px;
}

.pagination-nav span.page-numbers.current {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #fff;
  font-weight: 600;
}

/* Mobile Responsive Blog Tiles */
@media (max-width: 1024px) {
  .blog-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .blog-tiles {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
  }

  .blog-tile-card {
    min-height: 300px;
  }

  .blog-tile-image {
    height: 180px;
  }

  .pagination-nav {
    gap: 5px;
  }

  .pagination-nav span,
  .pagination-nav a {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 40px;
  }
}

/* ========================================
   AJAX FILTERING
======================================== */
body.loading-products {
  opacity: 0.7;
  pointer-events: none;
}

body.loading-products::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 9999;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Ensure scroll behavior is instant (not smooth) to prevent jumps during AJAX */
html {
  scroll-behavior: auto !important;
}