/*
Theme Name: Memento Books
Author: Muhammad Kamran
Author URI: mailto:kamran.lahore@gmail.com
Description: Custom theme for Memento Books. Features: WooCommerce integration, personalized book feature, user dashboard, currency converter, search filters, subscription form, blogs, payment gateways, Google sign-in, popups, and more. See Workplan.md for full scope.
Version: 1.0.0
Tags: custom, woocommerce, responsive, books
Text Domain: memento
Theme URI: 
Screenshot: screenshot.png

*/

/* Custom Currency Switcher Styling */
.currency-switcher-custom {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease;
}

.currency-switcher-custom:hover {
    border-color: #007cba !important;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.1);
}

.currency-dropdown {
    position: relative;
}

.currency-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    transition: all 0.3s ease;
}

.currency-btn:hover {
    color: #007cba;
}

.currency-btn i {
    transition: transform 0.3s ease;
}

.currency-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
    min-width: 200px;
}

.currency-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background-color: #f8f9fa;
}

.currency-option img {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hide the original WBW currency switcher */
.wcuCurrencySwitcher {
    display: none !important;
}

/* Currency Switcher Styling for Popup */
.currency-switcher-popup {
    position: relative;
}

.currency-btn-popup {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--blue-dark) !important;
    font-weight: 600;
}

.currency-btn-popup:hover {
    color: var(--blue-dark) !important;
}

.currency-dropdown-menu-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    display: none;
    margin-top: 5px;
}

.currency-dropdown-menu-popup.show {
    display: block;
}

.currency-option-popup {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.currency-option-popup:last-child {
    border-bottom: none;
}

.currency-option-popup:hover {
    background-color: #f8f9fa;
}

.currency-option-popup img {
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Add your custom theme styles below */

/* Custom CSS Variables */

/* Custom CSS Variables */

/* @font-face {
  font-family: 'Bw Modelica';
  src: url('assets/fonts_/BwModelicaSS01-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
} */

 @font-face {
  font-family: 'Mikhaloo';
  src: url('assets/fonts_/Mikhaloo.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
} 

 @font-face {
  font-family: 'BwModelica-Medium';
  src: url('assets/fonts_/BwModelica-Medium.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
} 

@font-face {
  font-family: 'Bw Modelica';
  src: url('assets/fonts_/BwModelicaSS01-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
} 


 @font-face {
  font-family: 'Bw Modelica SS01 Bold';
  src: url('assets/fonts/BwModelicaSS01-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
} 

 @font-face {
  font-family: 'Bw Modelica SS01 Regular';
  src: url('assets/fonts/BwModelicaSS01-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
} 

@font-face {
  font-family: 'BwModelica-Regular';
  src: url('assets/fonts/BwModelica-Regular.otf') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
} 
@font-face {
  font-family: 'Bw Modelica Bold';
  src: url('assets/fonts/BwModelica-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
} 


 @font-face {
  font-family: 'Bw Modelica SS01 Medium';
  src: url('assets/fonts/BwModelicaSS01-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
} 

 @font-face {
  font-family: 'Inter 18pt Bold';
  src: url('assets/fonts/Inter_18pt-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
} 

:root {
    --blue-dark: #27546b;
    --light-blue: #b4ccd0;
    --golden: #c4955e;
    --light-gray: #dcdcdc;
    --dark-gray: #2c2c2c;
    --small-container-width: 1200px;

  }
  body{background: white;}
  img{max-width: 100%;}
  a{text-decoration: none;}
  /* Font Styles */
  .mikhaloo-font {
    font-family: 'Mikhaloo';
    font-weight: normal;
    font-size: 1.5rem;
  }
  
  .jango-font {
    font-family: 'jango', 'Helvetica', sans-serif;
    font-weight: normal;
  }
  
  .modelica-regular-font {
    font-family: 'Bw Modelica', 'Helvetica', sans-serif;
    font-weight: normal;
  }
  
  .modelica-medium-font {
    font-family: 'BwModelica-Medium', 'Helvetica', sans-serif;
    font-weight: 500;
  }
  
  .modelica-bold-font {
    font-family: 'Bw Modelica', 'Helvetica', sans-serif;
    font-weight: 700;
  }
  
  .modelica-extrabold-font {
    font-family: 'Bw Modelica', 'Helvetica', sans-serif;
    font-weight: 800;
  }
  
  .modelica-ss01-bold-font {
    font-family: 'Bw Modelica SS01 Bold', 'Helvetica', sans-serif;
    font-weight: 700;
  }
  
  .modelica-ss01-regular-font {
    font-family: 'Bw Modelica SS01 Regular', 'Helvetica', sans-serif;
    font-weight: 400;
  }
  
  .page-heading h1 {
    font-family: 'Bw Modelica Bold', 'Helvetica', sans-serif;
    font-weight: 700;
    color: #2A2A2A;
    font-size: 24px;
  }
  
  .faq-narrow {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .faq-narrow .accordion-item{
    padding: 10px 0 !important;
    border-bottom-color: var(--blue-dark) !important;
  }
  .poppins-font {
    font-family: 'Poppins', sans-serif;
  }
  
  .inter-font {
    font-family: 'Inter', sans-serif;
  }
  /* Custom Utility Classes */
  .bg-blue-dark {
    background-color: var(--blue-dark);
  }
  
  .bg-light-blue {
    background-color: var(--light-blue);
  }
  
  .bg-light-gray {
    background-color: var(--light-gray);
  }
  
  .text-blue-dark {
    color: var(--blue-dark);
  }
  
  .text-light-blue {
    color: var(--light-blue);
  }
  
  .text-golden {
    color: var(--golden);
  }
  
  .text-dark-gray {
    color: var(--dark-gray);
  }
  
  .btn-blue-dark {
    background-color: var(--blue-dark);
    color: #ededed;
  }
  
  .btn-blue-dark:hover {
    background-color: #1e4255;
    color: #ffffff;
  }
  
  .max-width-635 {
    max-width: 635px;
    margin: 0 auto;
  }
  
  .rotate-20 {
    transform: rotate(-23.73deg);
  }
  
  /* Headings*/
  .heading2 {
    margin-bottom: 3rem;
    font-size: 20px;
  }

  /* Hero Section */
  .hero {
    height: 640px;
    overflow: hidden;
  }
  
  .hero-image {
    height: 100%;
    object-fit: cover;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  @media (min-width: 768px) {
    .hero h1 {
      font-size: 2.5rem;
    }
  }
  
  /* User Type Selection Card */
  .user-type-card {
    width: 320px;
    z-index: 10;
  }
  
  .user-type-card .btn {
    font-size: 0.875rem;
    border: 1px solid #e1e1e1;
    color: #667085;
    background-color: transparent;
    transition: all 0.2s ease;
  }
  
  .user-type-card .btn.active {
    background-color: #a5bdce;
    color: white;
    border-color: #a5bdce;
  }
  
  .user-type-card .btn:hover:not(.active) {
    background-color: #f5f5f5;
  }
  
  /* Pagination Dots */
  .pagination-dots {
    display: flex;
    gap: 4px;
  }
  
  .dot {
    width: 7px;
    height: 7px;
    background-color: #d9d9d9;
    border-radius: 50%;
  }
  
  .dot.active {
    width: 15px;
    border-radius: 100px;
  }
  
  /* Book Images */
  .book-image-container {
    height: 275px;
    overflow: hidden;
  }
  
  .book-image {
    height: 100%;
    object-fit: cover;
  }
  
  /* Language Selector */
  .language-selector {
    font-size: 0.8125rem;
    color: #5a5a5a;
    border-color: #9e9e9e;
  }
  
  /* Accordion Customization */
  .accordion-button {
    padding: 0.625rem 0;
    background-color: transparent;
    font-size: 0.875rem;
  }
  
  .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: inherit;
    box-shadow: none;
  }
  
  .accordion-button:focus {
    box-shadow: none;
  }
  
  .accordion-item {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-color: #E5E5E5;
  }
  
  .accordion-body {
    font-size: 0.875rem;
    padding: 1rem 0;
  }
  
  /* Custom plus/minus icons for accordion */
  .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3e%3c/svg%3e");
    background-size: 24px;
    width: 24px;
    height: 24px;
  }
  
  .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e");
    background-size: 24px;
    width: 24px;
    height: 24px;
  }
  
  /* Newsletter Form */
  .form-floating > .form-control {
    height: 66px;
    border-color: #d0d0d0;
  }
  
  .form-floating > .form-control:focus {
    border-color: var(--blue-dark);
    box-shadow: 0 0 0 0.25rem rgba(39, 84, 107, 0.25);
  }
  
  .form-floating > label {
    padding-left: 1.5rem;
    color: #3a3a3a;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 767px) {
    .mikhaloo-font {
      font-size: 1.25rem;
    }
    
    .hero h1 {
      font-size: 1.75rem;
    }
    
    .user-type-card {
      width: 280px;
    }
  }
  
  /* Navigation Active Link */
  .nav-link.active {
    text-decoration: underline;
  }
  
  /* Card Hover Effects */
.card {
  border: none !important;
  border-radius: 0 !important;
}

/* Override Bootstrap card borders completely */
.card,
.card.border-0,
.card.shadow-none {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Ensure no borders on card body */
.card-body {
  border: none !important;
  text-align: left !important;
}

/* Style for Craft My Book links */
.card-body .btn {
  display: inline-block;
  text-decoration: none;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}
  
  /* Button Hover Effects */
  .btn {
    transition: all 0.3s ease;
  }
  
  /* Horizontal Scrolling for Occasions Section */
  .overflow-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  .overflow-auto::-webkit-scrollbar {
    height: 6px;
  }
  
  .overflow-auto::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
  
  .overflow-auto::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  /* Logo Styling */
  .logo, .jango-font {
    font-family: 'Montserrat', 'Helvetica', sans-serif;
  }
  
  .nav > .nav-item > .nav-link {
    color: #212121;
    font-family: 'Montserrat', 'Helvetica', sans-serif;
    text-decoration: none;
  }
  .nav > .nav-item > .nav-link:hover,
  .nav > .nav-item > .nav-link:focus {
    color: var(--golden);
    text-decoration: none;
  }

  /* Basic Max Mega Menu compatibility - minimal styling */
  /* Let Max Mega Menu handle its own styling */

  /* Minimal navigation styling - let Max Mega Menu handle the rest */
  .nav {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav li a {
    text-decoration: none;
  }

  /* Mobile menu - minimal styling */
  .navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .navbar-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .navbar-nav li a {
    text-decoration: none;
  }

  .logo, .footer-logo {      font-size: 18px !important; }
  .footer a:hover {
    color: goldenrod;
}


  /* Let Max Mega Menu handle all its own styling */


  /* Custom breakpoint for 1023.98px */
  @media (max-width: 1023.98px) {
    .logo {
      order: 1 !important;
    }
    .top-menu {
      order: 3 !important;
    }
    .account-icons {
      order: 2 !important;
    }
  }

  @media (min-width: 1024px) {
    .logo {
      order: 1 !important;
    }
    .top-menu {
      order: 2 !important;
    }
    .account-icons {
      order: 3 !important;
    }
  }
  
  .main-banner {
    background-color: #ededed !important;
  }
  
  .main-banner .position-absolute[alt="Decorative vector"] {
    left: -83px !important;
    bottom: -35px !important;
  }

.main-banner img[alt="Decorative vector"] {
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto !important;
  top: auto !important;
  z-index: 1;
}
  

.featured-books img[alt="Decorative vector"] {
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto !important;
  top: auto !important;
  z-index: 1;
}
  

span.btm-line {
  background: url(images/vector-10.svg);
  background-repeat: no-repeat;
  background-position: right 27px;
  padding: 5px 0;
}

/* Slider carousel*/

swiper-container {
  width: 100%;
  height: 100%;
}

swiper-slide {
  text-align: center;
  font-size: 18px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 30px;
}

swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Slider Styles */
.hero-slider {
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-slide .home-banner {
  z-index: 2;
}

.hero-slide .hero-heading {
  font-size: 2.5rem;
}

/* Hero Slider Navigation - Hidden */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  display: none;
}

/* Hero Slider Pagination - Override Swiper CSS Variables */
.hero-slider {
  --swiper-pagination-bullet-inactive-color: white !important;
  --swiper-pagination-bullet-inactive-opacity: 0.6 !important;
  --swiper-pagination-bullet-active-color: #27546b !important;
  --swiper-pagination-bullet-active-opacity: 1 !important;
  --swiper-pagination-bullet-width: 8px !important;
  --swiper-pagination-bullet-height: 8px !important;
  --swiper-pagination-bullet-border-radius: 50% !important;
  --swiper-pagination-color: #27546b !important;
  --swiper-theme-color: #27546b !important;
}

.hero-slider .swiper-pagination-bullet-active {
  --swiper-pagination-bullet-width: 30px !important;
  --swiper-pagination-bullet-height: 8px !important;
  --swiper-pagination-bullet-border-radius: 5px !important;
  --swiper-pagination-bullet-size: 30px !important;
  --swiper-pagination-bullet-horizontal-gap: 4px !important;
}

/* Direct CSS overrides for active bullet */
.hero-slider .swiper-pagination-bullet-active {
  width: 30px !important;
  height: 8px !important;
  background: #27546b !important;
  background-color: #27546b !important;
  opacity: 1 !important;
  border-radius: 5px !important;
}

/* Direct CSS overrides for inactive bullets */
.hero-slider .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: white !important;
  background-color: white !important;
  opacity: 0.6 !important;
  border-radius: 50% !important;
}

/* Force width using different selectors */
.hero-slider .swiper-pagination .swiper-pagination-bullet-active {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
}

/* Target the span element directly */
.hero-slider .swiper-pagination-bullet-active[part="bullet-active"] {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
}

/* Ultra-specific targeting for the span element */
.hero-slider .swiper-pagination span.swiper-pagination-bullet-active[part="bullet-active"] {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  background: #27546b !important;
  background-color: #27546b !important;
  border-radius: 5px !important;
}

/* Even more specific targeting */
.hero-slider .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal span.swiper-pagination-bullet-active[part="bullet-active"] {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
}

.hero-slider .swiper-pagination {
  bottom: 30px !important;
  z-index: 3 !important;
}

.hero-slider .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: white !important;
  background-color: white !important;
  opacity: 0.6 !important;
  margin: 0 6px !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
}

.hero-slider .swiper-pagination-bullet-active {
  width: 20px !important;
  height: 8px !important;
  background: white !important;
  background-color: white !important;
  opacity: 1 !important;
  border-radius: 5px !important;
  transform: none !important;
}

/* Additional specific targeting */
.hero-slider .swiper-pagination .swiper-pagination-bullet-active {
  width: 20px !important;
  border-radius: 5px !important;
  background: white !important;
}

/* Force update - temporary */
.hero-slider .swiper-pagination-bullet-active[part="bullet-active"] {
  width: 20px !important;
  border-radius: 5px !important;
  background: white !important;
}

/* Ultra-specific targeting */
.hero-slider .swiper-pagination.swiper-pagination-horizontal .swiper-pagination-bullet-active {
  width: 20px !important;
  height: 8px !important;
  border-radius: 5px !important;
  background: white !important;
  background-color: white !important;
  opacity: 1 !important;
}

.hero-slider .swiper-pagination.swiper-pagination-horizontal .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: white !important;
  background-color: white !important;
  opacity: 0.6 !important;
}

/* Target exact HTML structure from inspector */
.hero-slider .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet-active {
  width: 20px !important;
  height: 8px !important;
  border-radius: 5px !important;
  background: white !important;
  background-color: white !important;
  opacity: 1 !important;
}

.hero-slider .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: white !important;
  background-color: white !important;
  opacity: 0.6 !important;
}

/* Responsive Hero Slider */
@media (max-width: 768px) {
  .hero-slider {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-slide {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev {
    display: none;
  }
  
  .hero-slider {
    --swiper-pagination-bullet-width: 6px;
    --swiper-pagination-bullet-height: 6px;
  }
  
  .hero-slider .swiper-pagination-bullet-active {
    --swiper-pagination-bullet-width: 16px;
    --swiper-pagination-bullet-height: 6px;
    --swiper-pagination-bullet-border-radius: 3px;
  }
  
  .hero-slider .swiper-pagination {
    bottom: 20px !important;
  }
  
  .hero-slider .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    background: white !important;
    background-color: white !important;
    margin: 0 4px !important;
  }
  
  .hero-slider .swiper-pagination-bullet-active {
    width: 16px !important;
    height: 6px !important;
    background: white !important;
    background-color: white !important;
    border-radius: 3px !important;
  }
  
  .hero-slide .hero-heading {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-slide {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev {
    display: none;
  }
  
  .hero-slide .hero-heading {
    font-size: 1.75rem;
  }
}

/* Remove custom widths for swiper-slide */
/* Removed:
swiper-slide {
  width: 60%;
}
swiper-slide:nth-child(2n) {
  width: 40%;
}
swiper-slide:nth-child(3n) {
  width: 20%;
}
*/

swiper-slide {
  width: auto !important;
  flex: 0 0 auto;
}

/* Mobile responsive swiper styles */
@media (max-width: 767px) {
  swiper-container {
    width: 100% !important;
    padding: 0 !important;
  }
  
  swiper-slide {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  .featured-books swiper-container,
  .how-it-works swiper-container,
  .fatured-books swiper-container {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 15px !important;
  }
  
  .featured-books swiper-container swiper-slide:first-child,
  section.how-it-works swiper-container swiper-slide:first-child,
  .featured-books swiper-container swiper-slide:first-child {
    margin-left: 0 !important;
  }
}

body {
  overflow-x: hidden;
}

.featured-books swiper-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0;
}
  
.featured-books swiper-container swiper-slide:first-child, section.how-it-works swiper-container swiper-slide:first-child, .featured-books swiper-container swiper-slide:first-child {
  margin-left: -50px;
}
.call-to-action p {font-size: 1rem !important; padding-bottom: 0 !important;}
.call-to-action .ca-gb {
  top: -16px !important; 
  right: 173px !important;
  margin-left: 1034px;
  margin-top: -102px;
  /* z-index: -1 !important; */
  /* position: relative !important; */
}
 
.hero-link{
  margin-top: 100px;
}
.hero-heading{margin-top:180px !important}

.banner-below-text{
  font-family: 'Mikhaloo';
  font-weight: normal;
  font-size: 1.5rem;
  color: var(--blue-dark);
  
}

.how-works{
    background-color: var(--light-blue);
    margin: 20px 0;
    position: relative;
    overflow: visible;
}

.how-works::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 400px;
    background-image: url('images/hw-bg.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
}

.card-title{font-size:20px}

.accordion-item.border-bottom:last-of-type {
  border-radius: 0;
}

.contact-form .card {
  border-radius: 50px !important;
  padding: 10px 150px;
}

.contact-form .position-absolute {
  top: -38px;
  right: -24px;
}

.footer-about {padding-right: 70px;}
.copyright{font-size: 10px;}
.footer{
  /* margin-top: -38px; */
  position: relative;
  z-index: 10;
  font-size: 14px;
}
.footer h4, .footer .footer-text{font-size: 14px !important;}

.call-to-action .ca-gb {
  top: -16px !important; 
  right: 173px !important;
  margin-left: 1034px;
  margin-top: -102px;
  z-index: 1;
  /* z-index: -1 !important; */
  /* position: relative !important; */
}

.account-icon {
  margin-top: -8px;
}

.heading-1{
  font-family: 'Mikhaloo';
  font-weight: normal;
  font-size: 1.25rem;
}

/* About Us Page Styles */
.main {
  background-color: #ffffff;
}

.container.small-container{
  max-width: 1200px;
}

.container.blog-container{
  max-width: 1000px;
}


.main .page-heading {
  text-align: center;
  margin-bottom: 60px;
  font-size: 20px;
  line-height: normal;
}



.main  {
  flex: 1;
}

.main h2 {
  font-family: 'Bw Modelica SS01 Medium', 'Helvetica', sans-serif;
  font-weight: normal;
  font-size: 1.25rem;
  color: #27546b;
  margin-bottom: 30px;
  line-height: normal;
}


.main  p {
  font-family: 'Bw Modelica SS01 Medium', 'Helvetica', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3rem;
  color: #797979;
  margin-bottom: 20px;
}

.main h3 {
  font-family: 'Bw Modelica Bold', 'Helvetica', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3rem;
  color: #000000;
  margin-bottom: 0;
}



.about-icons h3{margin-top: 0;}
.about-icons p{margin-bottom: 0;}

.page-heading p.page-tag {
  font-family: 'Inter 18pt Bold', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: var(--blue-dark);
}

/* Blog Listing Page Styles */
.blog-listing-container {
  padding: 60px 0;
  background-color: #ffffff;
}
.blog-card {
  position: relative;
  background: #fafafa;
  border-radius: 20px;
  margin-bottom: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 3rem;
}

.blog-card .blog-icon {
  position: absolute;
  top: -25px;
  right: -25px;
  width: auto;
}

.blog-single .blog-icon {
  position: absolute;
  right: 0;
  top: 30px;
  width: auto;
}
.blog-single .blog-icon img {
  width: 70%;
}

.blog-card .blog-bottom-icon {
  position: absolute;
  bottom: 50px;
  left: 50px;
  width: auto;
}

.blog-single .blog-card .blog-icon img, .blog-card .blog-bottom-icon img {
  width: 50px;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-single .blog-card:hover {
  transform: none !important;
  box-shadow: 0 !important;
}

.blog-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.blog-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-text {
  padding: 30px;
  position: relative;
}

.blog-single .blog-text {
  padding: 4rem;
}

.blog-text h2 {
  font-family: 'Mikhaloo', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-text h2 a {
  color: var(--blue-dark);
}

/* blog-single */
.blog-single .blog-card h2 {
  margin: 0;
}

.blog-text h3 {
  font-family: 'Bw Modelica Bold', 'Helvetica', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

.blog-text p {
  font-family: 'Bw Modelica SS01 Medium', 'Helvetica', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
}

.blog-date {
  font-family: 'Inter 18pt Bold', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10px;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.points-wrapper{
  width: 70%;
  margin: 0 auto;
}
.point-number {
  float: left;
  font-size: 1rem;
  font-family: 'Mikhaloo', 'Inter', sans-serif;
  line-height: normal;
  color: var(--blue-dark);
}
.point-text {
  margin-left: 2rem;
}

.point-text h3 {
  font-family: 'Bw Modelica SS01', 'Helvetica', sans-serif;
  font-size: 1rem;
  color: black;
  padding-bottom: 1rem;
}

.single-blog-point-shadow{background: #fafafa; padding: 2rem 4rem; border-radius: 2rem; position: relative;     margin-top: -60px;}
.single-shadow-bg-icon{    text-align: right;
  padding-right: 2rem;}
.single-blog-point {
  padding: 0 6%;
  width: 95%;
}
/* Responsive Blog Styles */
@media (max-width: 768px) {
  .blog-listing-container {
    padding: 40px 0;
  }
  
  .blog-text {
    padding: 20px;
  }
  
  .blog-text h3 {
    font-size: 20px;
  }
  
  .blog-text p {
    font-size: 14px;
  }
  
  .blog-image img {
    height: 200px;
  }
}

/* 404 Page Specific Styles */
.error-404-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error-heading {
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--dark-gray);
}

.error-badge .badge {
  color: #2c2c2c !important;
  font-size: 1rem;
  border-radius: 25px;
}

.error-illustration {
  position: relative;
}

.error-image {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.error-image:hover {
  transform: scale(1.02);
}

.go-home-btn {
  background: url(images/go-back-home.png) no-repeat left;
  padding-left: 50px;
  border-bottom: 2px solid var(--dark-gray);
  color: var(--dark-gray);
  padding: 12px 40px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.error-help p {
  font-size: 1.1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .error-heading {
    font-size: 2rem;
  }
  
  .error-badge .badge {
    font-size: 0.9rem;
    padding: 8px 20px;
  }
  
  .error-image {
    max-width: 100% !important;
  }
  
  
  .error-help p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .error-heading {
    font-size: 1.75rem;
  }
  
  .error-404-page {
    padding: 2rem 0;
  }
}

/* ========================================
   CUSTOM LOGIN PAGE STYLES
   ======================================== */



/* Login Page Container */
.login-page {
  min-height: 100vh;
  padding: 2rem 0;
}

/* Left Panel - Branding */
.login-left-panel {
  background: radial-gradient(circle, #27546b 0%, #1a3a4a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 3rem 2rem;
  border-radius: 20px 0 0 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  min-height: 500px;
}

.login-left-panel::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: -2rem;
  width: 117px;
  height: 257px;
  background-image: url('images/login-bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
}

#wpmem_login, #wpmem_msg, #wpmem_reg, .wpmem_msg{width: 100%;}

.form-panel{width: 80%; margin: 0 auto;}


.login-left-panel h1 {
  font-family: 'Jango', cursive;
  font-size: 2.5rem;
  color: white;
  text-align: center;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

/* Right Panel - Form */
.login-right-panel {
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  min-height: 500px;
  position: relative;
}

.form-header {
  margin-bottom: 2.5rem;
}

.company-name {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 1.25rem;
  color: #2c2c2c;
  margin: 0 0 0.5rem 0;
  font-weight: 400;
}

.login-title {
  font-family: 'Bw Modelica SS01 Bold', sans-serif;
  font-size: 2rem;
  color: #2c2c2c;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.login-subtitle {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

/* Form Elements */
.custom-login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: 'Bw Modelica SS01 Medium', sans-serif;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 1rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #27546b;
  box-shadow: 0 0 0 3px rgba(39, 84, 107, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #27546b;
}

.remember-label {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.forgot-link {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #27546b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #1a3a4a;
  text-decoration: underline;
}

/* Form Buttons */
.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Base Button Styles - No forced width */
.btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-family: 'Bw Modelica SS01 Medium', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  text-align: center;
}

/* Full-width buttons for forms and specific sections */
.btn-full {
  width: 100%;
}

/* Compact buttons for inline use */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Large buttons for CTAs */
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Button variants */
.btn-primary {
  background: #27546b;
  color: white;
}

.btn-primary:hover {
  background: #1a3a4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 84, 107, 0.3);
}

.btn-google {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-google:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.google-icon {
  flex-shrink: 0;
}

.btn-guest {
  background: #27546b;
  color: white;
}

.btn-guest:hover {
  background: #1a3a4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 84, 107, 0.3);
}

/* Specific button styles for different sections */

/* Hero section buttons */
.hero .btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Newsletter subscription buttons */
.newsletter-section .btn,
.call-to-action .btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
}

/* Product card buttons */
.woocommerce ul.products li.product .btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* Category filter buttons */
.category-buttons .btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  white-space: nowrap;
}

/* Login/Register form buttons */
.form-buttons .btn,
.wpmem-login-container input[type="submit"] {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
}

/* Dashboard action buttons */
.btn-view,
.btn-reorder {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-view {
  background: #e3f2fd;
  color: #1976d2;
}

.btn-view:hover {
  background: #bbdefb;
}

.btn-reorder {
  background: #f3e5f5;
  color: #7b1fa2;
}

.btn-reorder:hover {
  background: #e1bee7;
}

/* Start book button in dashboard */
.start-book-btn {
  background: white;
  color: var(--blue-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.start-book-btn:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  color: #1976d2;
}

/* Go home button for 404 page */
.go-home-btn {
  background: url(images/go-back-home.png) no-repeat left;
  padding-left: 50px;
  border-bottom: 2px solid var(--dark-gray);
  color: var(--dark-gray);
  padding: 0.75rem 2.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border-radius: 0;
}

.go-home-btn:hover {
  color: var(--blue-dark);
  border-bottom-color: var(--blue-dark);
}

/* Separator */
.separator {
  position: relative;
  text-align: center;
  margin: 1rem 0;
}

.separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.separator span {
  background: white;
  padding: 0 1rem;
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Signup Link */
.signup-link {
  text-align: center;
}

.signup-link p {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.signup-link-text {
  color: #27546b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.signup-link-text:hover {
  color: #1a3a4a;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-page {
    padding: 1rem 0;
  }
  
  .login-left-panel {
    min-height: 200px;
    padding: 2rem 1rem;
    border-radius: 20px 20px 0 0;
  }
  
  .login-right-panel {
    padding: 2rem;
    border-radius: 0 0 20px 20px;
  }
  
  .login-left-panel h1 {
    font-size: 2rem;
  }
  
  .login-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .login-right-panel {
    padding: 1.5rem;
  }
  
  .login-left-panel h1 {
    font-size: 1.75rem;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .login-left-panel {
    min-height: 150px;
    padding: 1.5rem 1rem;
  }
  
  .login-right-panel {
    padding: 1rem;
  }
  
  .login-left-panel h1 {
    font-size: 1.5rem;
  }
  
  .login-title {
    font-size: 1.25rem;
  }
  
  .login-left-panel::before {
    width: 50px;
    height: 50px;
    top: 1rem;
    left: 1rem;
  }
}

/* ========================================
   CUSTOM WP-MEMBERS LOGIN FORM STYLES
   ======================================== */

.form-header {
  margin-bottom: 2.5rem;
}

.company-name {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 1.25rem;
  color: #2c2c2c;
  margin: 0 0 0.5rem 0;
  font-weight: 400;
}

.login-title {
  font-family: 'Bw Modelica SS01 Bold', sans-serif;
  font-size: 2rem;
  color: #2c2c2c;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.login-subtitle {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

/* Form Elements */
.custom-login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: 'Bw Modelica SS01 Medium', sans-serif;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 1rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #27546b;
  box-shadow: 0 0 0 3px rgba(39, 84, 107, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #27546b;
}

.remember-label {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.forgot-link {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #27546b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #1a3a4a;
  text-decoration: underline;
}

/* Form Buttons */
.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Separator */
.separator {
  position: relative;
  text-align: center;
  margin: 1rem 0;
}

.separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.separator span {
  background: white;
  padding: 0 1rem;
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Signup Link */
.signup-link {
  text-align: center;
}

.signup-link p {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.signup-link-text {
  color: #27546b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.signup-link-text:hover {
  color: #1a3a4a;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {

  
  .branding-panel {
    min-height: 200px;
    padding: 2rem 1rem;
  }
  
  .form-panel {
    padding: 2rem;
    max-width: none;
  }
  
  .brand-title {
    font-size: 2rem;
  }
  
  .login-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .form-panel {
    padding: 1.5rem;
  }
  
  .brand-title {
    font-size: 1.75rem;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .branding-panel {
    min-height: 150px;
    padding: 1.5rem 1rem;
  }
  
  .form-panel {
    padding: 1rem;
  }
  
  .brand-title {
    font-size: 1.5rem;
  }
  
  .login-title {
    font-size: 1.25rem;
  }
  
  .decorative-element {
    width: 40px;
    height: 40px;
    top: 1rem;
    left: 1rem;
  }
  
  .decorative-element::before {
    width: 25px;
    height: 25px;
  }
}

/* ========================================
   WP-MEMBERS LOGIN FORM STYLES
   ======================================== */

/* WP-Members Form Container */
.wpmem-login-container {
  width: 100%;
  margin-bottom: 2rem;
}

/* Style WP-Members form elements */
.wpmem-login-container form {
  width: 100%;
}

.wpmem-login-container .form-group {
  margin-bottom: 1.5rem;
}

.wpmem-login-container label {
  display: block;
  font-family: 'Bw Modelica SS01 Medium', sans-serif;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.wpmem-login-container input[type="text"],
.wpmem-login-container input[type="password"],
.wpmem-login-container input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 1rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpmem-login-container input[type="text"]:focus,
.wpmem-login-container input[type="password"]:focus,
.wpmem-login-container input[type="email"]:focus {
  outline: none;
  border-color: #27546b;
  box-shadow: 0 0 0 3px rgba(39, 84, 107, 0.1);
}

.wpmem-login-container input::placeholder {
  color: #9ca3af;
}

/* Style WP-Members form options */
.wpmem-login-container .form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.wpmem-login-container .remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wpmem-login-container input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #27546b;
}

.wpmem-login-container .remember-label {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.wpmem-login-container .forgot-link {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #27546b;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-left: auto;
}

.wpmem-login-container .forgot-link:hover {
  color: #1a3a4a;
  text-decoration: underline;
}

/* Ensure forgot password link appears on the right */
.wpmem-login-container .form-options > a {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #27546b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wpmem-login-container .form-options > a:hover {
  color: #1a3a4a;
  text-decoration: underline;
}

/* Hide default WP-Members remember me option */
.wpmem-login-container .form-options,
.wpmem-login-container form .form-options,
.wpmem-login-container .remember-me,
.wpmem-login-container form .remember-me,
.wpmem-login-container input[name="rememberme"] + label,
.wpmem-login-container .forgot-link,
.wpmem-login-container label[for="rememberme"],
.wpmem-login-container .remember-me label,
.wpmem-login-container form .remember-me label,
.wpmem-login-container .form-options label,
.wpmem-login-container form .form-options label {
  display: none !important;
}

/* Hide "Existing Users Log In" text */
.wpmem-login-container h3,
.wpmem-login-container .wpmem-login-title,
.wpmem-login-container legend,
.wpmem-login-container .form-title,
.wpmem-login-container .wpmem-login-header,
.wpmem-login-container .login-header,
.wpmem-login-container h1,
.wpmem-login-container h2 { 
    display: none !important; 
}

/* Style WP-Members submit button */
.wpmem-login-container input[type="submit"] {
  background: #27546b;
  color: white;
  margin-bottom: 1rem;
}

.wpmem-login-container input[type="submit"]:hover {
  background: #1a3a4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 84, 107, 0.3);
}

/* Additional Buttons */
.additional-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Center the form header text */
.form-panel .form-header {
  text-align: center;
}

/* Custom Form Options Styling */
.form-panel .form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.form-panel .form-options .remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-panel .form-options input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #27546b;
}

.form-panel .form-options .remember-label {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.form-panel .form-options .forgot-link {
  font-family: 'Bw Modelica SS01 Regular', sans-serif;
  font-size: 0.875rem;
  color: #27546b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.form-panel .form-options .forgot-link:hover {
  color: #1a3a4a;
  text-decoration: underline;
}
.woocommerce-account .page-heading, .woocommerce-cart .main .page-heading, .woocommerce-checkout .main .page-heading{display: none;}
.wc-block-components-sidebar{margin-top: 2rem !important;}

/* ========================================
   MEMENTO DASHBOARD STYLES
   ======================================== */

/* Memento Dashboard Container */
.memento-dashboard-container {
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar Styles */
.memento-sidebar {
    width: 230px;
    background: white;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.memento-navigation {
    flex: 1;
}

.memento-navigation ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.memento-navigation .nav-item {
    margin: 0;
}

.memento-navigation .nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.memento-navigation .nav-item a:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.memento-navigation .nav-item.active a {
    background-color: var(--blue-dark);
    color: white;
    border-left-color: #1976d2;
}

.memento-navigation .nav-item i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
}

.memento-logout {
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.memento-logout a {
    display: flex;
    align-items: center;
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

.memento-logout a:hover {
    color: #c82333;
}

.memento-logout i {
    margin-right: 12px;
}

/* Main Content Styles */
.memento-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.memento-dashboard-content {
    flex: 1;
    padding: 0 24px;
    overflow-y: auto;
}

/* Dashboard Content Styles */
.memento-overview-banner-container {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.memento-overview-section {
    flex: 2;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.memento-orders-section,
.memento-drafts-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Bw Modelica', sans-serif;
    margin-bottom: 0.75rem !important;
}

/* Overview Stats */
.overview-stats {
    display: flex;
    align-items: center;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 16px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    font-family: 'Bw Modelica', sans-serif;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    font-family: 'Bw Modelica', sans-serif;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background-color: #e9ecef;
    margin: 0 8px;
}

/* Story Banner */
.memento-story-banner {
    flex: 1;
    background: var(--blue-dark);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-content h2 {
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: 400;
    color: white;
}

.start-book-btn {
    background: white;
    color: var(--blue-dark);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.start-book-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    color: #1976d2;
}

.banner-decoration {
    position: absolute;
    right: 20px;
    bottom: 20px;
    opacity: 0.3;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-filter select {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.memento-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.memento-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 2px solid #e9ecef;
    font-family: 'Bw Modelica', sans-serif;
}

.memento-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.book-info h4 {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

.book-cover-placeholder {
    width: 50px;
    height: 70px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 4px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 20px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.status-on-hold {
    background: #f8d7da;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-view,
.btn-reorder {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-view:hover {
    background: #bbdefb;
}

.btn-reorder {
    background: #f3e5f5;
    color: #7b1fa2;
}

.btn-reorder:hover {
    background: #e1bee7;
}

.no-orders,
.no-drafts {
    text-align: center;
    color: #6c757d;
}

.no-orders a,
.no-drafts a {
    color: #1976d2;
    text-decoration: none;
}

.no-orders a:hover,
.no-drafts a:hover {
    text-decoration: underline;
}

/* Dashboard Responsive Design */
@media (max-width: 768px) {
    .memento-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .memento-dashboard-container {
        flex-direction: column;
    }
    
    .memento-overview-banner-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .overview-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
        margin: 8px 0;
    }
    
    .memento-story-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .memento-table {
        font-size: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
}

/* Hide default WooCommerce styling on account pages */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    display: none;
}

.woocommerce-account .entry-content {
    padding: 0;
    margin: 0;
}

.woocommerce-account .entry-header {
    display: none;
}

h2.section-title {
    font-family: 'Bw Modelica', 'Helvetica', sans-serif;
    font-weight: 800;
}

/* WooCommerce Shop Styles */
.woocommerce-shop .main {
    padding: 0;
}

.shop-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.shop-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
}

.category-filter {
    border-bottom: 1px solid #e9ecef;
}



.products-section {
    min-height: 400px;
    background: #ffffff;
    padding: 3rem 0;
}

.products-section .woocommerce {
    width: 100%;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Ensure 4 columns on large screens */
@media (min-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* 3 columns on medium screens */
@media (min-width: 768px) and (max-width: 1199px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Override any Bootstrap grid classes */
.woocommerce ul.products .col,
.woocommerce ul.products [class*="col-"] {
    width: 100% !important;
    flex: none !important;
    max-width: none !important;
}

/* Force grid layout and override any WooCommerce defaults */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Override WooCommerce clearfix pseudo-elements that interfere with grid */
.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before,
.woocommerce-page .products ul::after,
.woocommerce-page .products ul::before,
.woocommerce-page ul.products::after,
.woocommerce-page ul.products::before {
    content: none !important;
    display: none !important;
}

.woocommerce ul.products li,
.woocommerce-page ul.products li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    display: block !important;
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    display: block !important;
}

.woocommerce ul.products li.product .card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none !important;
}

.woocommerce ul.products li.product .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.book-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.book-image-wrapper img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.woocommerce ul.products li.product .card:hover .book-image-wrapper img {
    transform: scale(1.05);
}

.sale-badge {
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* Hide sale badges and "Save 10%" text from shop page */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce .sale-badge,
.woocommerce .save-percentage {
    display: none !important;
}

.wishlist-heart {
    background: transparent;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 0;
}

.wishlist-heart:hover {
    background: var(--blue-dark);
    transform: scale(1.1);
    border-radius: 50%;
}

.wishlist-heart svg {
    transition: all 0.3s ease;
}

.wishlist-heart:hover svg {
    fill: #ff4757;
    stroke: #ff4757;
}

.woocommerce ul.products li.product .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.woocommerce ul.products li.product .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 600;
    color: #2c2c2c;
}

.woocommerce ul.products li.product .card-title a {
    color: #2c2c2c;
    transition: color 0.3s ease;
    text-decoration: none;
}

.woocommerce ul.products li.product .card-title a:hover {
    color: var(--blue-dark);
}

.price-wrapper {
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #2c2c2c;
}

.price-wrapper .regular-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #666;
}

.price-wrapper .sale-price,
.price-wrapper .price {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c2c2c;
}

.product-actions {
    margin-top: auto;
    text-align: left; 
}

.product-actions .btn {
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  display: inline-block;
  text-align: center;
  margin: 0 auto;
}

.product-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(39, 84, 107, 0.3);
}

/* Ensure button styling for all WooCommerce product buttons */
.woocommerce ul.products li.product .product-actions .btn,
.woocommerce ul.products li.product .product-actions a.btn {
  display: inline-block;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
}

.featured-categories {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-image img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.newsletter-section .card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 20px;
}

.newsletter-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

/* WooCommerce Default Overrides */
.woocommerce-result-count {
    margin-bottom: 2rem;
}

.woocommerce-result-count {
    font-family: 'Inter', sans-serif;
    color: #6c757d;
}

.woocommerce-ordering select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
}

.woocommerce-pagination {
    margin-top: 3rem;
}

.woocommerce-pagination .page-numbers {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination .page-numbers li {
    margin: 0;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.woocommerce-pagination .page-numbers a:hover,
.woocommerce-pagination .page-numbers span.current {
    background-color: #1976d2;
    border-color: #1976d2;
    color: white;
}

/* Responsive Design for Shop */
@media (max-width: 768px) {
    .shop-hero h1 {
        font-size: 2rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-buttons {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .category-buttons .btn {
        white-space: nowrap;
        margin-right: 0.5rem;
    }
    
    .featured-categories .row {
        margin: 0 -0.5rem;
    }
    
    .featured-categories .col-md-6,
    .featured-categories .col-lg-3 {
        padding: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .shop-hero h1 {
        font-size: 1.75rem;
    }
    
    .category-card {
        padding: 1rem;
    }
}

/* Contact Form 7 Styling */
.wpcf7 .form-label {
  font-family: 'Inter', sans-serif;
  color: #333;
  font-weight: 500;
}

.wpcf7 .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  font-family: 'Inter', sans-serif;
}

.wpcf7 .form-control:focus {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.wpcf7 .btn-primary {
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: auto;
  padding: 10px 25px;
  float: right;
}

.wpcf7 .btn-primary:hover {
  background-color: #1565c0 !important;
  border-color: #1565c0 !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(21, 101, 192, 0.3);
}

/* Remove Contact Form 7 spacing and line breaks */
.wpcf7 br {
  display: none;
}

.wpcf7 p {
  margin: 0;
  padding: 0;
}

.wpcf7 .wpcf7-form {
  margin: 0;
  padding: 0;
}



h2.woocommerce-loop-product__title {
  margin-bottom: 4px;
  color: #000000 !important;
}

/* You Might Also Like Section */
.you-might-also-like {
    background: #ffffff;
}

.you-might-also-like .heading2 {
    color: #2c2c2c;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.related-product-card {
    transition: all 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-4px);
}

.related-product-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.related-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-title {
    margin-top: 1rem;
    margin-bottom: 0;
    color: #000000;
    font-size: 0.9rem;
    line-height: 1.3;
}

.related-product-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-product-title a:hover {
    color: var(--blue-dark);
}

/* Breadcrumb Section */
.breadcrumb-section {
    background-color: #f7f5f5;
}

/* Product Gallery Thumbnails */
.woocommerce-product-gallery__wrapper {
    width: 100%;
}

.woocommerce-product-gallery__image {
    width: 100%;
    margin-bottom: 10px;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Thumbnail Navigation - Outside Gallery */
.product-thumbnail-navigation {
    width: 100%;
    clear: both;
    margin-top: 20px;
}

.flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.flex-control-thumbs li {
    flex: 0 0 auto;
    margin: 0;
    width: 80px;
    max-width: 80px;
}

.flex-control-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.flex-control-thumbs img:hover {
    opacity: 0.8;
}



.woocommerce div.product div.images .flex-control-thumbs{margin: 1rem;
position:absolute;
width: var(--small-container-width);
margin-bottom: 3rem;
clear: both;
}

.woocommerce div.product div.images .flex-control-thumbs li{
  width: 24%;
  max-width: 24%;
}
.woocommerce div.product div.images .flex-control-thumbs li img{
  width: 100%;
  max-width: 100%;
}

/* Breadcrumb Section */
.breadcrumb-section {
    background-color: #f7f5f5;
}

/* Book Reviews Section */
.book-reviews {
    margin: 40px 0;
    padding: 30px 0;
}



.book-reviews h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.book-reviews .row {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.book-reviews .col-lg-9 {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-reviews .col-lg-3 {
    flex: 0 0 300px;
    background-color: #fce4ec;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Review Content Styling */
.book-reviews h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.3;
}

.book-reviews .review-rating {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #ffc107;
}

.book-reviews .review-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.book-reviews .review-author {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Product Section Styling */
.book-reviews .col-lg-3 img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.main .faqs-section h2 {
    margin: 0;
    padding: 0.5rem 0;
}

/* Product Price Styling */
.woocommerce div.product p.price, 
.woocommerce div.product span.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 15px 0;
    padding: 0;
}

.woocommerce div.product p.price del, 
.woocommerce div.product span.price del {
    font-size: 1.2rem;
    color: #999;
    margin-right: 10px;
}

.woocommerce div.product p.price ins, 
.woocommerce div.product span.price ins {
    text-decoration: none;
    font-weight: bold;
}

/* Quantity Input Styling */
.woocommerce div.product form.cart .quantity {
    margin: 20px 0;
}

.woocommerce div.product form.cart .quantity input[type="number"] {
    width: 80px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    padding: 8px 12px;
    margin: 0 10px;
}

.woocommerce div.product form.cart .quantity input[type="number"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Quantity Buttons */
.woocommerce div.product form.cart .quantity .qty {
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.woocommerce div.product form.cart .quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button Styling */
.woocommerce div.product form.cart .button {
    background-color: var(--blue-dark);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 4rem;
    width: 100%;
    max-width: 300px;
    clear: both;
}

.woocommerce div.product form.cart .button:hover {
    background-color: #1e4a8a;
    color: white;
}

/* Personalize Book Button Styles */
.personalize-book-button {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid #28a745;
}

.personalize-book-button:hover {
    background-color: #218838;
    border-color: #218838;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    text-decoration: none;
}

/* Responsive design for buttons */
@media (max-width: 768px) {
    .personalize-book-button {
        display: block;
        margin-left: 0;
        margin-top: 1rem;
        text-align: center;
    }
}

/* Product Description Styling */
.woocommerce-product-details__short-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

/* Size Information Styling */
.product-size {
    font-size: 0.9rem;
    color: #777;
    margin: 10px 0;
    font-weight: 500;
}

/* FAQs Section - Fix Overlapping */
.faqs-section {
    position: relative;
    clear: both;
    z-index: 1;
}

/* Book Reviews Section - Ensure Proper Spacing */
.book-reviews {
    position: relative;
    clear: both;
    margin-top: 40px;
    z-index: 1;
}

/* Fix for any absolute positioned thumbnails - Ensure they don't break document flow */
.woocommerce-product-gallery {
    position: relative;
    z-index: 2;
    overflow: visible;
    opacity: 1 !important;
}

.woocommerce-product-gallery__wrapper {
    position: relative;
    z-index: 2;
    overflow: visible;
    opacity: 1 !important;
}

/* Ensure thumbnails don't break document flow */
.flex-control-thumbs {
    position: relative !important;
    z-index: 2;
    overflow: visible;
}

.flex-control-thumbs li {
    position: relative !important;
}

.flex-control-thumbs img {
    position: relative !important;
}

/* Ensure main content doesn't overlap */
.main {
    position: relative;
    overflow: visible;
}

.page-content {
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Force proper document flow */
.woocommerce div.product {
    position: relative;
    overflow: visible;
}

/* WP-Members Forms Styling for WooCommerce My Account */
.profile-content,
.change-password-content {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-header,
.password-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.profile-header h2,
.password-header h2 {
    font-family: 'Bw Modelica SS01 Medium', sans-serif;
    font-size: 1.5rem;
    color: var(--blue-dark);
    margin: 0 0 0.5rem 0;
}

.profile-header p,
.password-header p {
    font-family: 'Bw Modelica SS01 Regular', sans-serif;
    color: #6b7280;
    margin: 0;
}

/* WP-Members Form Styling */
.profile-form-container .wpmem_profile_form,
.password-form-container .wpmem_profile_form {
    max-width: 100%;
}

.profile-form-container .wpmem_profile_form form,
.password-form-container .wpmem_profile_form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-form-container .wpmem_profile_form .field,
.password-form-container .wpmem_profile_form .field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-form-container .wpmem_profile_form label,
.password-form-container .wpmem_profile_form label {
    font-family: 'Bw Modelica SS01 Medium', sans-serif;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.profile-form-container .wpmem_profile_form input[type="text"],
.profile-form-container .wpmem_profile_form input[type="email"],
.profile-form-container .wpmem_profile_form input[type="password"],
.profile-form-container .wpmem_profile_form input[type="tel"],
.profile-form-container .wpmem_profile_form input[type="url"],
.profile-form-container .wpmem_profile_form textarea,
.profile-form-container .wpmem_profile_form select,
.password-form-container .wpmem_profile_form input[type="text"],
.password-form-container .wpmem_profile_form input[type="email"],
.password-form-container .wpmem_profile_form input[type="password"],
.password-form-container .wpmem_profile_form input[type="tel"],
.password-form-container .wpmem_profile_form input[type="url"],
.password-form-container .wpmem_profile_form textarea,
.password-form-container .wpmem_profile_form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: 'Bw Modelica SS01 Regular', sans-serif;
    font-size: 1rem;
    color: #374151;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-form-container .wpmem_profile_form input:focus,
.profile-form-container .wpmem_profile_form textarea:focus,
.profile-form-container .wpmem_profile_form select:focus,
.password-form-container .wpmem_profile_form input:focus,
.password-form-container .wpmem_profile_form textarea:focus,
.password-form-container .wpmem_profile_form select:focus {
    outline: none;
    border-color: var(--blue-dark);
    box-shadow: 0 0 0 3px rgba(39, 84, 107, 0.1);
}

.profile-form-container .wpmem_profile_form input::placeholder,
.profile-form-container .wpmem_profile_form textarea::placeholder,
.password-form-container .wpmem_profile_form input::placeholder,
.password-form-container .wpmem_profile_form textarea::placeholder {
    color: #9ca3af;
}

.profile-form-container .wpmem_profile_form .button,
.password-form-container .wpmem_profile_form .button {
    background: var(--blue-dark);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Bw Modelica SS01 Medium', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.profile-form-container .wpmem_profile_form .button:hover,
.password-form-container .wpmem_profile_form .button:hover {
    background: #1e3a47;
}

/* Hide unnecessary fields in password change form */
.password-form-container .wpmem_profile_form .field:not(.field-password):not(.field-confirm_password) {
    display: none;
}

/* Success/Error Messages */
.profile-form-container .wpmem_msg,
.password-form-container .wpmem_msg {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-family: 'Bw Modelica SS01 Regular', sans-serif;
}

.profile-form-container .wpmem_msg.success,
.password-form-container .wpmem_msg.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.profile-form-container .wpmem_msg.error,
.password-form-container .wpmem_msg.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-content,
    .change-password-content {
        padding: 1.5rem;
    }
    
    .profile-header h2,
    .password-header h2 {
        font-size: 1.25rem;
    }
    
    .profile-form-container .wpmem_profile_form .button,
    .password-form-container .wpmem_profile_form .button {
        width: 100%;
        text-align: center;
    }
}

.woocommerce div.product div.images {

/* Hide WP-Members profile links from content area */
.memento-dashboard-content .wpmem_profile_form a[href*="a=profile"],
.memento-dashboard-content .wpmem_profile_form a[href*="a=pwdchange"],
.memento-dashboard-content .wpmem_profile_form .profile-links,
.memento-dashboard-content .wpmem_profile_form .profile-actions {
    display: none !important;
}


    position: relative;
    overflow: visible;
}

#wpmem_login fieldset, #wpmem_reg fieldset{margin-top: 0 !important;}
#wpmem_reg input[type="submit"], #wpmem_login input[type="submit"] {background-color: var(--blue-dark) !important; color: white !important; padding: 0.5rem 2rem !important; border-radius: 0.5rem !important;} 


tr.wc-block-cart-items__header, .wc-block-cart .wc-block-cart__totals-title{
  background: #D9D9D9 !important;
  padding: 1rem !important;
  color: #747474 !important;

}
tr.wc-block-cart-items__header th.wc-block-cart-items__header-product{
  visibility: inherit !important;
  background: #D9D9D9 !important;
  text-transform: capitalize;
}
.is-large.wc-block-cart .wc-block-cart-items th{
  padding: 1rem !important;

}
.wc-block-cart .wc-block-cart__totals-title{border-radius: 1rem !important;}

table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-image{border-radius: 1rem 0  0 1rem !important;}
table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-total{border-radius: 0 1rem 1rem 0 !important;}

.is-large.wc-block-cart .wc-block-cart-items td{border-top: 0 !important;}
tbody tr.wc-block-cart-items__row {
  border-bottom: 1px solid #ccc;
}
.wp-block-woocommerce-cart-order-summary-coupon-form-block.wc-block-components-totals-wrapper {
  border-top: 0;
}
.wc-block-cart .wc-block-cart__submit-container{
  background: var(--blue-dark) !important;
  border-radius: 1rem;
}
.wc-block-cart .wc-block-cart__submit-container a{
  color: white;
}
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
  font-size: 1.5rem !important;
  font-weight: bold;
}
.wc-block-components-sidebar-layout .wc-block-components-main {
  margin: 8px 0 !important;
  padding: 1.5rem;
  border: 1px solid #DDE4F0;
  border-radius: .5rem;
}
.wc-block-components-title.wc-block-components-title, .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text{
  color: #5B5B5B !important;
  font-size: 1.25rem !important;
  font-weight: bold !important;
}
.wc-block-components-order-summary .wc-block-components-order-summary-item {
  margin-bottom: 1rem;
  border: 1px solid #DDE4F0;
  padding: 1rem !important;
  border-radius: 8px;
}
.wc-block-components-order-summary .wc-block-components-order-summary-item:last-child{
  border: 1px solid #DDE4F0 !important;
  }
.wp-block-woocommerce-checkout-order-summary-block {
  border: 0 !important;
  margin-top: -69px;
}

.wc-block-checkout__sidebar .wc-block-components-product-name {
  color: var(--blue-dark) !important;
  font-weight: bold !important;
}
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-formatted-money-amount{
  color: var(--blue-dark) !important;
  font-size: 1.25rem !important;
  font-weight: bold !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image, .wc-block-components-order-summary .wc-block-components-order-summary-item__image>img {
  max-width: 150px !important;
  width: 150px !important;
}
.wc-block-components-order-summary .wc-block-components-order-summary-item__description .wc-block-components-product-metadata p, .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices 
  {display: none !important;}

  .wc-block-components-order-summary .wc-block-components-order-summary-item__description,.wc-block-components-order-summary .wc-block-components-order-summary-item__total-price{
    margin-top: 2rem !important;
  }

  .wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button{
    background-color: var(--blue-dark) !important;
    color: white !important;
    padding: 0.5rem 2rem !important;
    border-radius: 0.5rem !important;
    width: 25% !important;
  }
  .wc-block-components-checkout-return-to-cart-button {
    border: 1px solid var(--blue-dark) !important;
    padding: 0.5em 2em !important;
    border-radius: 8px !important;
    color: var(--blue-dark) !important;
  }

  .woocommerce-checkout .main .page-heading{
    display: none !important;
  }

/* Hide duplicate payment sections on WooCommerce block checkout */
.wc-block-checkout__payment-method:nth-of-type(2),
.wc-block-checkout__payment-method:nth-of-type(3),
.wc-block-checkout__payment-method:nth-of-type(4),
.wc-block-checkout__payment-method:nth-of-type(5),
.wc-block-checkout__payment-method:nth-of-type(6),
.wc-block-checkout__payment-method:nth-of-type(7),
.wc-block-checkout__payment-method:nth-of-type(8),
.wc-block-checkout__payment-method:nth-of-type(9),
.wc-block-checkout__payment-method:nth-of-type(10) {
  display: none !important;
}

/* Alternative selectors for different WooCommerce versions */
.wp-block-woocommerce-checkout-payment-block:nth-of-type(2),
.wp-block-woocommerce-checkout-payment-block:nth-of-type(3),
.wp-block-woocommerce-checkout-payment-block:nth-of-type(4),
.wp-block-woocommerce-checkout-payment-block:nth-of-type(5) {
  display: none !important;
}

/* Hide any payment sections that appear after the first one */
.wc-block-checkout__payment-method:not(:first-of-type),
.wp-block-woocommerce-checkout-payment-block:not(:first-of-type) {
  display: none !important;
}

/* Ensure the first payment section is always visible */
.wc-block-checkout__payment-method:first-of-type,
.wp-block-woocommerce-checkout-payment-block:first-of-type {
  display: block !important;
}

/* Additional specific selectors for Stripe payment methods */
fieldset.wc-block-checkout__payment-method:nth-of-type(2),
fieldset.wc-block-checkout__payment-method:nth-of-type(3),
fieldset.wc-block-checkout__payment-method:nth-of-type(4),
fieldset.wc-block-checkout__payment-method:nth-of-type(5) {
  display: none !important;
}

/* Modern Thank You Page Styles */
.modern-thankyou-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: white;
}

.order-received-message {
  display: none;
  text-align: center;
  margin-bottom: 3rem;
}

.order-received-message .woocommerce-notice {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

/* Order Summary Block */
.order-summary-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.order-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 120px;
  position: relative;
}

.order-summary-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: repeating-linear-gradient(
    to bottom,
    #ddd 0,
    #ddd 4px,
    transparent 4px,
    transparent 8px
  );
}

.summary-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* Payment Instruction */
.payment-instruction {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.payment-instruction p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

/* Order Details Section */
.order-details-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-table--order-details thead {
  background: #f8f9fa;
}

.woocommerce-table--order-details th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e9ecef;
}

.woocommerce-table--order-details td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

.woocommerce-table--order-details tbody tr:last-child td {
  border-bottom: none;
}

.woocommerce-table--order-details .product-name a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 500;
}

.woocommerce-table--order-details .product-name a:hover {
  text-decoration: underline;
}

.woocommerce-table--order-details .product-quantity {
  color: #666;
  font-size: 0.9rem;
}

.woocommerce-table--order-details tfoot th {
  background: #f8f9fa;
  font-weight: 600;
}

.woocommerce-table--order-details tfoot td {
  font-weight: bold;
  color: #333;
}

/* Address Information */
.address-information {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.address-section {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.address-section .section-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.address-block {
  font-style: normal;
  line-height: 1.6;
  color: #333;
}

.address-block .phone-icon,
.address-block .email-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .order-summary-block {
    flex-direction: column;
    text-align: center;
  }
  
  .order-summary-item {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .order-summary-item:not(:last-child)::after {
    display: none;
  }
  
  .address-information {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .woocommerce-table--order-details {
    font-size: 0.9rem;
  }
  
  .woocommerce-table--order-details th,
  .woocommerce-table--order-details td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .modern-thankyou-page {
    padding: 1rem 0.5rem;
  }
  
  .order-summary-block {
    padding: 1rem;
  }
  
  .summary-value {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
}

/* Modern Thank You Page Styles - Two Column Layout */
.modern-thankyou-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: white;
}

.order-received-message {
  display: none;
  text-align: center;
  margin-bottom: 3rem;
}

.order-received-message .woocommerce-notice {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

/* Two Column Layout */
.thankyou-two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* Column Titles */
.column-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
  font-family: "Bw Modelica SS01 Bold", sans-serif;
  line-height: 1.2;
}

/* Information Column */
.information-column {
  display: flex;
  flex-direction: column;
}

.information-column > * {
  margin-bottom: 1.5rem;
}

.information-column > *:last-child {
  margin-bottom: 0;
}

/* Contact and Ship To cards side by side */
.info-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Info Cards */
.info-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid #f0f0f0;
}

.card-header {
  margin-bottom: 1rem;
}

.card-label {
  font-size: 0.875rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content {
  margin-bottom: 1rem;
}

.contact-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.contact-email {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.4;
}

.card-edit {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.edit-link {
  font-size: 0.75rem;
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.edit-link:hover {
  color: #27546b;
}

/* Order Totals Section */
.order-totals-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin: 0;
}

.total-row:not(.total-final) {
  border-bottom: 1px solid #f5f5f5;
}

.total-label {
  font-size: 1rem;
  color: #333;
  font-weight: 400;
}

.total-value {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.total-divider {
  display: none;
}

.total-final {
  margin-top: 0;
  padding-top: 1.5rem;
  padding-bottom: 0;
  border-top: 2px solid #e5e5e5;
  border-bottom: none;
}

.total-final .total-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
}

.total-final .total-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #333;
}

/* Order Column */
.order-column {
  display: flex;
  flex-direction: column;
}

.order-column > * {
  margin-bottom: 1.5rem;
}

.order-column > *:last-child {
  margin-bottom: 0;
}

.order-items-container {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Order Items */
.order-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.order-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.order-item:last-child {
  margin-bottom: 0;
}

.item-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.product-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.placeholder-text {
  font-size: 2rem;
  font-weight: bold;
  color: #adb5bd;
}

.item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
}

.item-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.item-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.item-title a:hover {
  color: #27546b;
}

.item-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #ffc107;
  font-size: 0.875rem;
}

.rating-count {
  font-size: 0.75rem;
  color: #999;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

.item-quantity {
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
}

.item-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
}

.item-divider {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .thankyou-two-column-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .information-column {
    order: 2;
  }
  
  .order-column {
    order: 1;
  }
  
    .thankyou-message-aligned {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  /* Stack info cards vertically on mobile */
  .info-cards-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .order-item {
    gap: 1rem;
    padding: 1.25rem;
  }

  .item-image {
    width: 100%;
    height: 120px;
    align-self: center;
  }

  .item-details {
    gap: 0.75rem;
  }

  .item-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
  }

  .item-title {
    font-size: 1rem;
  }

  .item-price {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .modern-thankyou-page {
    padding: 1rem;
  }
  
  .column-title {
    font-size: 1.25rem;
  }
  
  .info-card,
  .order-totals-section,
  .order-items-container {
    padding: 1rem;
  }
}

.contact-email {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.4;
}

.card-content address {
  font-style: normal;
  line-height: 1.4;
  color: #333;
  margin: 0;
}

.card-content address br {
  margin-bottom: 0.25rem;
}

/* Thank you message aligned with right column */
.thankyou-message-aligned {
  position: relative;
  margin-bottom: 1.5rem;
  text-align: left;
  margin-left: calc(50% + 1.5rem); /* Align with right column (50% + half the gap) */
  max-width: calc(50% - 1.5rem); /* Match right column width */
}

.thankyou-message-aligned .woocommerce-notice {
  color: #333;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-family: "Bw Modelica SS01 Bold", sans-serif;
}

/* Two Column Layout */
.thankyou-message-aligned .woocommerce-notice {
  display: none;
}

/* Hide default WooCommerce thank you message */
.modern-thankyou-page .woocommerce-thankyou-order-received {
  display: none !important;
}

/* Also hide our aligned wrapper if present */
.thankyou-message-aligned {
  display: none;
}

/* Align first boxes under column titles */
.thankyou-two-column-layout {
  align-items: start;
}

/* Ensure column titles have consistent bottom spacing */
.column-title {
  margin-bottom: 1.5rem !important;
}

/* Features Section */
.features-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.feature-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 1.5rem;
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  transition: all 0.2s ease;
  gap: 1rem;
}

.feature-item:hover {
  border-color: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(39, 84, 107, 0.15);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.feature-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.4;
}

/* Responsive for features section */
@media (max-width: 768px) {
  .features-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .feature-item {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .feature-icon {
    width: 28px;
    height: 28px;
  }
  
  .feature-icon img {
    width: 20px;
    height: 20px;
  }
  
  .feature-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .features-section {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Order Success Popup */
.order-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.order-popup-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.order-popup {
  background: white;
  border-radius: 20px;
  padding: 3rem 5rem;
  max-width: 800px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(1);
  transition: transform 0.3s ease;
  margin-top: 40px;
}

.order-popup-overlay.hidden .order-popup {
  transform: scale(0.9);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.popup-close:hover {
  color: #333;
}

.popup-icon {
  position: absolute;
  top: -70px;
  left: 0;
  z-index: 10;
}

.popup-icon img {
  width: 235px;
  height: auto;
  object-fit: contain;
}

.popup-title-image {
  margin-bottom: 1.5rem;
}

.popup-title-image img {
  width: auto;
  height: 60px;
  object-fit: contain;
}

.popup-message {
  font-size: 1.125rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.popup-sub-message {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Responsive popup */
@media (max-width: 768px) {
  .order-popup {
    padding: 2rem 1.5rem;
    max-width: 350px;
    margin-top: 30px;
  }
  
  .popup-icon {
    top: -30px;
    left: -15px;
  }
  
  .popup-icon img {
    width: 80px;
    height: 80px;
  }
  
  .popup-title-image img {
    height: 45px;
  }
  
  .popup-message {
    font-size: 1rem;
  }
  
  .popup-sub-message {
    font-size: 0.875rem;
  }
}

/* ========================================
   REDIRECT NOTICE STYLES
   ======================================== */

.redirect-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-weight: 500;
    text-align: center;
    max-width: 400px;
    animation: slideDown 0.5s ease-out;
}

.redirect-notice::before {
    content: "⚠️";
    margin-right: 10px;
    font-size: 18px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive adjustments for redirect notice */
@media (max-width: 768px) {
    .redirect-notice {
        top: 10px;
        left: 20px;
        right: 20px;
        transform: none;
        max-width: none;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.memento-orders-section th{background: none !important;}
.memento-orders-section .book-info h4 {font-size: 1rem;}
.memento-orders-section .action-buttons .btn-reorder, .memento-orders-section .section-header .section-filter, .memento-drafts-section .section-header .section-filter {display: none;}

/* ========================================
   WELCOME MESSAGE STYLES
   ======================================== */

.welcome-message {
  display: none;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: welcomeSlideIn 0.8s ease-out;
    color: white;
}

/* Customer Welcome Message */
.welcome-message.customer-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Admin Welcome Message */
.welcome-message.admin-welcome {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.welcome-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: welcomeShine 3s ease-in-out infinite;
}

.welcome-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    animation: welcomeBounce 2s ease-in-out infinite;
}

.welcome-message h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.welcome-message p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

/* Admin link styling */
.admin-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-link:hover {
    color: #f0f0f0;
    text-decoration: none;
    transform: translateY(-1px);
}

@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes welcomeBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes welcomeShine {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

/* Responsive adjustments for welcome message */
@media (max-width: 768px) {
    .welcome-message {
        padding: 20px 25px;
        margin-bottom: 25px;
    }
    
    .welcome-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .welcome-message h3 {
        font-size: 20px;
    }
    
    .welcome-message p {
        font-size: 14px;
    }
}

/* Category Filter Section Styles */
.cat-filter {
  padding: 2rem 0;
  background: white;
}

.cat-filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cat-filter li {
  margin: 0;
}

.cat-filter a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 1px solid #D1DDE8;
  border-radius: 16px;
  color: #8DA2B5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 160px;
  text-align: center;
}

.cat-filter a:hover {
  background: #f8f9fa;
  border-color: #8DA2B5;
  color: #27546b;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(141, 162, 181, 0.15);
}

.cat-filter a:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(141, 162, 181, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cat-filter ul {
    gap: 1rem;
    justify-content: center;
  }

  .cat-filter a {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .cat-filter ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cat-filter a {
    min-width: 200px;
  }
}

/* Product Controls Section Styles */
.product-controls {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.product-controls .results-count {
  font-size: 0.9rem;
  color: #6c757d;
}

.product-controls .controls-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.product-controls .category-dropdown,
.product-controls .woocommerce-ordering {
  flex-shrink: 0;
}

.product-controls .form-select,
.product-controls .woocommerce-ordering select {
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 8px;
  background-color: white;
  font-size: 0.9rem;
  color: #495057;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.product-controls .form-select:focus,
.product-controls .woocommerce-ordering select:focus {
  border-color: #8DA2B5;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(141, 162, 181, 0.25);
}

.product-controls .form-select:hover,
.product-controls .woocommerce-ordering select:hover {
  border-color: #8DA2B5;
}

/* WooCommerce Ordering Specific Styles */
.woocommerce-ordering {
  position: relative;
}

.woocommerce-ordering select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Responsive adjustments for product controls */
@media (max-width: 768px) {
  .product-controls .d-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .product-controls .controls-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .product-controls .form-select,
  .product-controls .woocommerce-ordering select {
    min-width: 100%;
  }

  .product-controls .results-count {
    text-align: center;
  }
}

/* Custom Category Dropdown Styles */
.custom-category-dropdown-wrapper {
  display: inline-block;
  margin-right: 1rem;
  float: right;
  margin-left: 1rem;
}

.custom-category-dropdown-wrapper select, .woocommerce-ordering select {
    min-width: 180px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 12px !important;
    background-color: white;
    font-size: 0.9rem;
    color: #8DA2B5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-bottom: 1rem;
}

.custom-category-dropdown-wrapper select:focus, .woocommerce-ordering select:focus {
    border-color: #8DA2B5;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(141, 162, 181, 0.25);
}

.custom-category-dropdown-wrapper select:hover, .woocommerce-ordering select:hover {
    border-color: #8DA2B5;
}
.books-and-category .term-description{display: none;}
/* Position both dropdowns on the right side */
.woocommerce-before-shop-loop .woocommerce-ordering {
    display: inline-block;
}

/* Container for both dropdowns to align them to the right */
.woocommerce-before-shop-loop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Results count on the left */
.woocommerce-before-shop-loop .results-count {
    flex-shrink: 0;
}

/* Custom Category Dropdown Styling */
.custom-category-dropdown-wrapper {
    display: inline-block;
    margin-right: 1rem;
}

.custom-category-dropdown-wrapper select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
    min-width: 150px;
}

/* Ensure both dropdowns display side by side */
.woocommerce-before-shop-loop {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.woocommerce-ordering {
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-before-shop-loop {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .custom-category-dropdown-wrapper {
        display: block;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .custom-category-dropdown-wrapper select {
        min-width: 100%;
    }
    
    .woocommerce-ordering {
        display: block;
        margin-left: 0;
    }
}

/* Favorites System Styles
   ======================= */

/* Heart Icon Base Styles */
.wishlist-heart {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.wishlist-heart:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.wishlist-heart:active {
    transform: scale(0.95);
}

/* Heart Icon States */
.wishlist-heart.favorited {
    background: rgba(255, 71, 87, 0.9);
}

.wishlist-heart.favorited:hover {
    background: rgba(255, 71, 87, 1);
}

.wishlist-heart.loading {
    pointer-events: none;
    opacity: 0.7;
}

.wishlist-heart.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Heart Icon SVG Styles */
.wishlist-heart svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.wishlist-heart svg path {
    transition: fill 0.3s ease;
}

.wishlist-heart.favorited svg path {
    fill: #ff4757;
}

/* Favorites Message System */
.favorites-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.favorites-message.favorites-message-success {
    background: #28a745;
    border-left: 4px solid #1e7e34;
}

.favorites-message.favorites-message-error {
    background: #dc3545;
    border-left: 4px solid #c82333;
}

.favorites-message.favorites-message-warning {
    background: #ffc107;
    border-left: 4px solid #e0a800;
    color: #212529;
}

.favorites-message.show {
    transform: translateX(0);
}

/* Favorites Page Specific Styles */
.woocommerce-MyAccount-favourites {
    padding: 20px 0;
}

.favorites-grid .card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.favorites-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.favorites-grid .book-image-container {
    position: relative;
    overflow: hidden;
}

.favorites-grid .book-image-container img {
    transition: transform 0.3s ease;
}

.favorites-grid .card:hover .book-image-container img {
    transform: scale(1.05);
}

/* Remove Favorite Button */
.remove-favorite {
    border: 2px solid #dc3545;
    color: #dc3545;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.remove-favorite:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-2px);
}

.remove-favorite:active {
    transform: translateY(0);
}

/* Empty State Styling */
.favorites-empty {
    padding: 60px 20px;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.empty-state i {
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 15px;
}

.empty-state p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Favorites Actions */
.favorites-actions {
    text-align: center;
    padding: 30px 0;
}

.favorites-actions .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.favorites-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .favorites-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .favorites-message.show {
        transform: translateY(0);
    }
    
    .favorites-grid .col-md-6 {
        margin-bottom: 20px;
    }
    
    .wishlist-heart {
        width: 35px;
        height: 35px;
    }
    
    .wishlist-heart svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .favorites-grid .col-lg-4 {
        margin-bottom: 15px;
    }
    
    .favorites-actions .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Loading States */
.favorites-loading {
    text-align: center;
    padding: 40px 20px;
}

.favorites-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Accessibility Improvements */
.wishlist-heart:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.wishlist-heart:focus:not(:focus-visible) {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .wishlist-heart {
        border: 2px solid white;
    }
    
    .wishlist-heart.favorited {
        border-color: #ff4757;
    }
}

/* Header Favorites Count Badge */
.favorites-count {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    left:20px;
}

.favourite-icon a {
    transition: transform 0.2s ease;
}

.favourite-icon a:hover {
    transform: scale(1.1);
}

.favourite-icon a:hover .favorites-count {
    transform: scale(1.1);
    background-color: #0056b3 !important;
}

/* Ensure badge is visible on hover */
.favourite-icon:hover .favorites-count {
    z-index: 1000;
}


.woocommerce table.my_account_orders td, .woocommerce table.my_account_orders th {
  padding: 16px 20px;
}
.woocommerce table.shop_table td, .woocommerce table.shop_table tbody th {
   border-top: 0 !important; 
}
.woocommerce-orders-table th{
  background: none !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.woocommerce table.my_account_orders .button {
  background: var(--blue-dark);
  padding: 10px 30px;
  color: white;
}

/* Hide "Existing Users Log In" text */
.wpmem-login-container h3,
.wpmem-login-container .wpmem-login-title,
.wpmem-login-container legend,
.wpmem-login-container .form-title,
.wpmem-login-container .wpmem-login-header,
.wpmem-login-container .login-header,
.wpmem-login-container h1,
.wpmem-login-container h2 { 
    display: none !important; 
}

/* .woocommerce div.product form.cart .button, .memento-draft-controls-compact, a.button.personalize-book-button{display: none !important;} */
#mega-menu-wrap-primary #mega-menu-primary a.mega-menu-link .mega-description-group .mega-menu-description{display: none !important;}
.single_add_to_cart_button{display: none !important;}
ul#menu-footer-menu-1, ul#menu-footer-menu-2 {
  text-transform: uppercase;
}

.header-icons .gap-3 {    gap: 1.5rem !important;}
.wp_google_login__button-container{display: none;}

.google-login-button .wp_google_login__button-container{display: block !important;}

label.color-label-wrapper .color-label, label.icon-label-wrapper .icon-label, .bottom-preview-section, .page-indicator .page-numbers  {
  display: none;
}