/* ===============
Fonts

// <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 200 to 900

.yu-gothic-<uniquifier> {
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

================== */

html,
body {
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #000000;
  background-color: #ffffff;
  font-size: 1em;
  line-height: 1.75;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main.wrapper {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* Global Link Styles */
a {
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
a:focus {
  color: #333333;
  text-decoration: underline;
}

/* Preserve specific link styles for navigation and buttons */
.nav-link,
.btn,
.btn-shop,
.btn-shop-outline,
.single_add_to_cart_button,
.add-to-cart-btn,
.cart-link {
  text-decoration: none !important;
}

.nav-link:hover,
.btn:hover,
.btn-shop:hover,
.btn-shop-outline:hover,
.single_add_to_cart_button:hover,
.add-to-cart-btn:hover,
.cart-link:hover {
  text-decoration: none !important;
}

/* Header Styles */
header {
  background-color: #ffffff !important;
}

header.border-bottom {
  border-color: #000000 !important;
}

.logo img {
  display: block;
  height: 70px;
  width: auto;
}

/* Override WooCommerce CSS for logo */
.woocommerce .logo img,
.woocommerce-page .logo img {
  height: 70px !important;
  width: auto !important;
  max-width: none !important;
}

/* Also fix footer logo */
.footer-logo {
  height: 65px;
  width: auto;
}

.woocommerce .footer-logo,
.woocommerce-page .footer-logo {
  height: 65px !important;
  width: auto !important;
  max-width: none !important;
}

/* Override WooCommerce CSS for credit cards image */
.credit-cards-img {
  max-width: 350px;
  height: auto;
}

.woocommerce .credit-cards-img,
.woocommerce-page .credit-cards-img {
  max-width: 350px !important;
  height: auto !important;
  width: auto !important;
}

.main-nav .nav-link {
  text-align: center;
  border: none !important;
  background: transparent !important;
}

.main-nav .nav-link:hover {
  background-color: #f8f9fa !important;
  border-radius: 0.375rem;
}

.cart-link:hover {
  opacity: 0.7;
}

/* Mobile nav styles */
.mobile-nav .nav-link {
  border-bottom: 1px solid #000000;
  color: #000000;
  transition: all 0.3s ease;
}

.mobile-nav .nav-link:hover {
  color: #333333;
}

.mobile-nav .nav-link:last-child {
  border-bottom: none;
}

/* Mobile Navigation Toggle Button */
.btn-outline-dark.d-lg-none {
  position: relative;
  width: 40px;
  height: 40px;
  border: 2px solid #000000;
  background-color: transparent;
  border-radius: 6px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-outline-dark.d-lg-none:hover {
  background-color: #000000;
  border-color: #000000;
  color: #ffffff;
}

.btn-outline-dark.d-lg-none:focus {
  background-color: #000000;
  border-color: #000000;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* Hamburger Icon */
.btn-outline-dark.d-lg-none::before {
  content: '';
  position: relative;
  width: 18px;
  height: 2px;
  background-color: #000000;
  box-shadow: 
    0 6px 0 #000000,
    0 12px 0 #000000;
  transition: all 0.3s ease;
  transform: translateY(-6px);
}

.btn-outline-dark.d-lg-none:hover::before,
.btn-outline-dark.d-lg-none:focus::before {
  background-color: #ffffff;
  box-shadow: 
    0 6px 0 #ffffff,
    0 12px 0 #ffffff;
}

/* Hide any existing toggler icon */
.btn-outline-dark.d-lg-none .navbar-toggler-icon {
  display: none;
}

/* Homepage styles */
.homepage {
  background-color: #ffffff;
  min-height: 60vh;
}

/* Category Product Blocks */
.category-section {
  position: relative;
}

.category-border {
  height: 1px;
  background-color: #000000;
  width: 100%;
}

.category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000000;
  margin: 0;
}

.category-description {
  font-size: 1rem;
  color: #000000;
  font-weight: 400;
}

.view-all-btn {
  background-color: transparent;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

.product-card {
  text-align: center;
}

/* Ensure consistent 1/5 width for products on large screens */
@media (min-width: 1200px) {
  .product-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .product-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Better responsive grid for smaller screens */
@media (min-width: 768px) and (max-width: 991.98px) {
  .product-col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .product-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .product-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.product-image-wrapper {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  overflow: hidden;
}

.product-image {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-image-placeholder {
  width: 100%;
  height: 160px;
  background-color: #e0e0e0;
  border-radius: 8px;
}

.product-info {
  text-align: center;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
}

.product-card a {
  color: inherit;
}

.product-card a:hover {
  color: inherit;
}

.product-card:hover .product-image-wrapper {
  background-color: #e8e8e8;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .category-title-wrapper {
    margin-bottom: 1rem;
  }
  
  .category-title {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .category-description {
    display: block;
  }
}

/* News Section */
.news-section {
  position: relative;
}

.news-card {
  text-align: left;
}

/* Ensure consistent 1/5 width for news items on large screens */
@media (min-width: 1200px) {
  .news-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .news-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.news-image-wrapper {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  overflow: hidden;
}

.news-image {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.news-image-placeholder {
  width: 100%;
  height: 160px;
  background-color: #e0e0e0;
  border-radius: 8px;
}

.news-info {
  text-align: left;
}

.news-date {
  font-size: 0.8rem;
  color: #666666;
  margin-bottom: 8px;
  font-weight: 400;
}

.news-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 0.85rem;
  color: #666666;
  line-height: 1.4;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card a {
  color: inherit;
}

.news-card a:hover {
  color: inherit;
}

.news-card:hover .news-image-wrapper {
  background-color: #e8e8e8;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* News Listing Page Styles */
.news-listing {
  margin-bottom: 3rem;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #666666;
  margin-bottom: 0;
  font-weight: 400;
}

.news-listing-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-listing-image-wrapper {
  position: relative;
  height: 200px;
  background-color: #f8f9fa;
  overflow: hidden;
}

.news-listing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-listing-card:hover .news-listing-image {
  transform: scale(1.05);
}

.news-listing-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  color: #666666;
}

.news-listing-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-listing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.news-listing-date {
  color: #666666;
  font-weight: 500;
}

.news-listing-category {
  background-color: #000000;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-listing-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-listing-excerpt {
  color: #333333;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-listing-read-more {
  display: flex;
  align-items: center;
  color: #000000;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

.news-listing-read-more svg {
  transition: transform 0.3s ease;
}

.news-listing-card:hover .news-listing-read-more svg {
  transform: translateX(4px);
}

.news-listing-card a {
  color: inherit;
  text-decoration: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-listing-card a:hover {
  color: inherit;
  text-decoration: none;
}

/* No News Found */
.no-news-found {
  text-align: center;
  padding: 3rem 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.no-news-found h3 {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 1rem;
}

.no-news-found p {
  color: #666666;
  font-size: 1.1rem;
}

/* News Pagination */
.news-pagination {
  border-top: 1px solid #000000;
  padding-top: 2rem;
}

.news-pagination .page-numbers {
  background-color: #ffffff;
  border: 2px solid #000000;
  color: #000000;
  padding: 8px 16px;
  margin: 0 4px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
  background-color: #000000;
  color: #ffffff;
}

.news-pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-pagination li {
  margin: 0;
}

/* Mobile responsive for news listing */
@media (max-width: 768px) {
  .news-listing-image-wrapper {
    height: 180px;
  }
  
  .news-listing-info {
    padding: 1rem;
  }
  
  .news-listing-title {
    font-size: 1.1rem;
  }
  
  .news-listing-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .news-pagination .page-numbers {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

/* Footer styles */
footer {
  background-color: #ffffff !important;
  padding-bottom: 2rem !important;
}

footer.border-top {
  border-color: #000000 !important;
}

.credit-cards-img {
  max-width: 500px;
  height: auto;
}

/* Footer Info Section */
.footer-info {
  background-color: #ffffff !important;
}

.footer-info.border-top {
  border-color: #000000 !important;
}

.footer-logo {
  height: 65px;
  width: auto;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.75rem;
  text-transform: none;
}

.footer-text {
  font-size: 0.85rem;
  color: #000000;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-link {
  font-size: 0.85rem;
  color: #000000;
  text-decoration: none;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.footer-link:hover {
  color: #000000;
  text-decoration: underline;
}

.footer-link:last-child {
  margin-bottom: 0;
}

/* Banner section styles */
.banner-section {
  padding: 60px 0;
  border-bottom: 1px solid #000000;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  height: 100%;
  min-height: 400px;
}

.banner-text h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.banner-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.btn-shop {
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 12px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-shop:hover {
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
}

/* Fix btn-shop styling in WooCommerce contexts */
.woocommerce .btn-shop,
.woocommerce-page .btn-shop {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  border-radius: 8px !important;
  padding: 12px 40px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
}

.woocommerce .btn-shop:hover,
.woocommerce-page .btn-shop:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  text-decoration: none !important;
  border: 2px solid #000000 !important;
}

@media (max-width: 768px) {
  .banner-text h1 {
    font-size: 2rem;
  }
  
  .banner-content {
    min-height: 300px;
  }
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0.125em;
  line-height: 150%;
}

/* ===============
Navigation
================== */

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2em;
}

.nav li {
  position: relative;
}

.nav a {
  display: block;
  padding: 0.5em 1em;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  border-radius: 4px;
}

/* WooCommerce Styling */

/* My Account Page Styling */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 16px;
  color: #666666;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background-color: #ffffff;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background-color: #000000;
  color: #ffffff;
  font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a:hover {
  background-color: #333333;
  color: #ffffff;
}

/* My Account Content Area */
.woocommerce-account .woocommerce-MyAccount-content {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  color: #000000;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-row {
  margin-bottom: 1.5rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Input {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Input:focus {
  border-color: #000000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button {
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:hover {
  background-color: #333333;
  border-color: #333333;
  color: #ffffff;
  text-decoration: none;
}

/* Orders Table Styling */
.woocommerce-account .woocommerce-orders-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.woocommerce-account .woocommerce-orders-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #000000;
}

.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
  background-color: #000000;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
  background-color: #333333;
  text-decoration: none;
}

/* Mobile responsive for My Account */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 1rem;
  }
  
  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 1.5rem;
  }
  
  .woocommerce-account .woocommerce-orders-table {
    font-size: 0.9rem;
  }
  
  .woocommerce-account .woocommerce-orders-table th,
  .woocommerce-account .woocommerce-orders-table td {
    padding: 8px 12px;
  }
}

/* Cart Page Styling - Override WooCommerce Block Grey Borders */
.wc-block-cart__main .wc-block-cart-items,
.wc-block-cart-items,
.woocommerce-cart-form .woocommerce-cart-form__contents,
.woocommerce-cart-form__contents,
.cart_totals,
.woocommerce-cart table.cart,
.woocommerce table.shop_table,
.shop_table {
  border-top: 1px solid #000000 !important;
  border-bottom: 1px solid #000000 !important;
  border-left: none !important;
  border-right: none !important;
}

.wc-block-cart__main .wc-block-cart-items {
  border-bottom: 1px solid #000000 !important;
  border-left: none !important;
  border-right: none !important;
}

.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th,
.woocommerce table.shop_table td,
.woocommerce table.shop_table th,
.shop_table td,
.shop_table th {
  border-top: 1px solid #000000 !important;
  border-bottom: 1px solid #000000 !important;
  border-left: none !important;
  border-right: none !important;
  border-width: 1px 0 !important;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.cart_totals {
  border-top: 1px solid #000000 !important;
  border-bottom: 1px solid #000000 !important;
  border-left: none !important;
  border-right: none !important;
}

.woocommerce-cart .cart-collaterals .cart_totals tr td,
.woocommerce-cart .cart-collaterals .cart_totals tr th,
.cart_totals tr td,
.cart_totals tr th {
  border-top: 1px solid #000000 !important;
  border-bottom: 1px solid #000000 !important;
  border-left: none !important;
  border-right: none !important;
  border-width: 1px 0 !important;
}

/* WooCommerce Blocks Cart Items */
.wc-block-cart-items__row {
  border-bottom: 1px solid #000000 !important;
  border-left: none !important;
  border-right: none !important;
}

.wc-block-cart-items__header {
  border-bottom: 1px solid #000000 !important;
  border-left: none !important;
  border-right: none !important;
}

/* Cart totals borders */
.wc-block-cart__totals-footer,
.wc-block-cart__totals-title {
  border-top: 1px solid #000000 !important;
  border-bottom: 1px solid #000000 !important;
  border-left: none !important;
  border-right: none !important;
  border-width: 1px 0 !important;
}

/* Override any HSL grey borders in cart */
.woocommerce-cart *,
.wc-block-cart *,
.cart_totals * {
  border-color: #000000 !important;
  border-left: none !important;
  border-right: none !important;
  border-width: 1px 0 !important;
}

/* Ensure cart lines are consistently black and thin */
@container (min-width: 700px) {
  .wc-block-cart__main .wc-block-cart-items {
    border-bottom: 1px solid #000000 !important;
    border-spacing: 0;
  }
}

/* Proceed to Checkout Button Styling */
.wc-block-cart__submit-container {
  text-align: center;
  padding: 2rem 0;
}

.wc-block-cart__submit-button,
.wc-block-components-button.wc-block-cart__submit-button {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 3px solid #000000 !important;
  border-radius: 12px !important;
  padding: 16px 50px !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  min-width: 280px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-button.wc-block-cart__submit-button:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  text-decoration: none !important;
}

.wc-block-cart__submit-button:focus,
.wc-block-components-button.wc-block-cart__submit-button:focus {
  background-color: #333333 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2) !important;
  outline: none !important;
}

.wc-block-components-button__text {
  font-weight: 700 !important;
  font-size: inherit !important;
}

/* Classic WooCommerce Checkout Button (fallback) */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.checkout-button {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 3px solid #000000 !important;
  border-radius: 12px !important;
  padding: 16px 50px !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  min-width: 280px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  text-align: center !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.checkout-button:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  text-decoration: none !important;
}

/* Mobile responsive for checkout button */
@media (max-width: 768px) {
  .wc-block-cart__submit-button,
  .wc-block-components-button.wc-block-cart__submit-button,
  .checkout-button {
    width: 100% !important;
    min-width: unset !important;
    padding: 14px 30px !important;
    font-size: 1.1rem !important;
  }
  
  .wc-block-cart__submit-container {
    padding: 1.5rem 0;
  }
}

/* Place Order Button Styling (Checkout Page) */
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wc-block-components-checkout-place-order-button {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 3px solid #000000 !important;
  border-radius: 12px !important;
  padding: 16px 50px !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  min-width: 280px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  text-align: center !important;
  cursor: pointer !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.wc-block-components-checkout-place-order-button:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  text-decoration: none !important;
}

.wc-block-components-checkout-place-order-button:focus,
.wc-block-components-button.wc-block-components-checkout-place-order-button:focus {
  background-color: #333333 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2) !important;
  outline: none !important;
}

.wc-block-components-checkout-place-order-button:disabled,
.wc-block-components-button.wc-block-components-checkout-place-order-button:disabled {
  background-color: #cccccc !important;
  color: #666666 !important;
  border-color: #cccccc !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.wc-block-components-checkout-place-order-button__text,
.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
  font-weight: 700 !important;
  font-size: inherit !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
}

.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text {
  text-align: center !important;
  width: 100% !important;
}

/* Classic WooCommerce Place Order Button (fallback) */
.woocommerce-checkout #place_order,
#place_order {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 3px solid #000000 !important;
  border-radius: 12px !important;
  padding: 16px 50px !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  min-width: 280px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  text-align: center !important;
  cursor: pointer !important;
}

.woocommerce-checkout #place_order:hover,
#place_order:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  text-decoration: none !important;
}

/* Mobile responsive for place order button */
@media (max-width: 768px) {
  .wc-block-components-checkout-place-order-button,
  .wc-block-components-button.wc-block-components-checkout-place-order-button,
  .woocommerce-checkout #place_order,
  #place_order {
    width: 100% !important;
    min-width: unset !important;
    padding: 14px 30px !important;
    font-size: 1.1rem !important;
  }
}

/* Shop Header */
.shop-header {
  margin-bottom: 2rem;
}

.shop-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
}

.shop-description {
  font-size: 1.1rem;
  color: #333333;
  margin-bottom: 0;
}

/* Category Navigation */
.category-nav {
  margin-bottom: 2rem;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.category-btn {
  background-color: transparent;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

/* Results Info */
.results-count {
  font-size: 0.9rem;
  color: #666666;
  margin: 0;
}

/* Shop Ordering */
.shop-ordering select {
  border: 1px solid #000000;
  border-radius: 4px;
  padding: 8px 12px;
  background-color: #ffffff;
  color: #000000;
}

/* Products Grid - Simple 4 Column Layout */
.products-grid {
  margin-bottom: 2rem !important;
  display: block !important;
}

.products-grid .product-col,
.products-grid > div[class*="col-"] {
  float: left !important;
  width: 25% !important;
  max-width: 25% !important;
  padding: 15px !important;
  box-sizing: border-box !important;
  flex: none !important;
}

.products-grid::after {
  content: "";
  display: table;
  clear: both;
}

/* Override WooCommerce default ul.products if it exists */
.woocommerce ul.products,
.woocommerce-page ul.products {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products li,
.woocommerce-page ul.products li {
  list-style: none !important;
  float: left !important;
  width: 25% !important;
  max-width: 25% !important;
  padding: 15px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  flex: none !important;
}

/* Responsive - 3 columns on medium screens */
@media (max-width: 991px) {
  .products-grid .product-col,
  .products-grid > div[class*="col-"] {
    width: 33.333% !important;
    max-width: 33.333% !important;
  }
  .woocommerce ul.products li,
  .woocommerce-page ul.products li {
    width: 33.333% !important;
    max-width: 33.333% !important;
  }
}

/* Responsive - 2 columns on tablets */
@media (max-width: 767px) {
  .products-grid .product-col,
  .products-grid > div[class*="col-"] {
    width: 50% !important;
    max-width: 50% !important;
  }
  .woocommerce ul.products li,
  .woocommerce-page ul.products li {
    width: 50% !important;
    max-width: 50% !important;
  }
}

/* Responsive - 1 column on mobile */
@media (max-width: 575px) {
  .products-grid .product-col,
  .products-grid > div[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
  }
  .woocommerce ul.products li,
  .woocommerce-page ul.products li {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Product Actions */
.product-actions {
  padding: 0 15px;
}

.add-to-cart-btn {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  padding: 10px 20px;
}

/* WooCommerce Add to Cart Button Styling */
.single_add_to_cart_button,
.button.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce-page .single_add_to_cart_button,
.woocommerce .button.alt,
.woocommerce-page .button.alt {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  border-radius: 8px !important;
  padding: 12px 40px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-shadow: none !important;
  min-height: 52px !important;
  line-height: 1.4 !important;
}

.single_add_to_cart_button:hover,
.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce-page .single_add_to_cart_button:hover,
.woocommerce .button.alt:hover,
.woocommerce-page .button.alt:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  text-decoration: none !important;
  border: 2px solid #000000 !important;
}

/* Quantity Input Styling - Match Button Height */
.woocommerce div.product form.cart .quantity,
.woocommerce div.product form.cart div.quantity {
  display: inline-block !important;
  margin-right: 10px !important;
  vertical-align: middle !important;
}

.woocommerce div.product form.cart .quantity .qty,
.woocommerce div.product form.cart input.qty,
.woocommerce input.qty,
.quantity input.qty,
input[type="number"].qty {
  width: 80px !important;
  border: 1px solid #000000 !important;
  border-radius: 8px !important;
  padding: 13px 16px !important;
  text-align: center !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  height: 52px !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
  appearance: none !important;
}

/* Remove spinner buttons from number input */
.woocommerce div.product form.cart .quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity .qty::-webkit-inner-spin-button,
input[type="number"].qty::-webkit-outer-spin-button,
input[type="number"].qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
}

/* Focus state for quantity input */
.woocommerce div.product form.cart .quantity .qty:focus,
input[type="number"].qty:focus {
  border-color: #000000 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
}

/* Align form cart elements */
.woocommerce div.product form.cart {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.woocommerce div.product form.cart .variations_button {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .woocommerce div.product form.cart {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .woocommerce div.product form.cart .quantity {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
  }
  
  .woocommerce div.product form.cart .quantity .qty {
    width: 100% !important;
  }
  
  .woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100% !important;
  }
}

/* Single Product Styles */
.single-product-image {
  height: 500px;
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-product-image .product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-gallery {
  margin-top: 1rem;
}

.gallery-thumb {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.gallery-thumb:hover {
  opacity: 0.8;
}

.gallery-thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.single-product-info {
  padding-left: 2rem;
}

.single-product-info .product-title {
  font-size: 2rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
}

.single-product-info .product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1.5rem;
}

/* WooCommerce price overrides for single product pages */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product .price,
.single-product .woocommerce div.product p.price,
.single-product .woocommerce div.product span.price,
.single-product .woocommerce div.product .price {
  color: #000000 !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
}

/* Ensure price elements within variations also follow the styling */
.woocommerce div.product .single_variation_wrap .single_variation .price,
.woocommerce div.product .single_variation_wrap .single_variation span.price,
.woocommerce div.product .single_variation_wrap .single_variation p.price {
  color: #000000 !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
}

.product-short-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 2rem;
}

.quantity-wrapper {
  margin-bottom: 1.5rem;
}

.quantity-wrapper label {
  font-weight: 500;
  color: #000000;
  margin-bottom: 0.5rem;
}

.quantity-input {
  width: 80px;
  border: 1px solid #000000;
  border-radius: 4px;
  padding: 8px 12px;
  text-align: center;
}

.product-meta {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

.product-meta strong {
  color: #000000;
}

.product-description {
  border-top: 1px solid #e0e0e0;
  padding-top: 2rem;
}

.product-description h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
}

.description-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}

/* No Products Message */
.no-products {
  color: #666666;
}

.no-products h3 {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .single-product-info {
    padding-left: 0;
    margin-top: 2rem;
  }
  
  .single-product-info .product-title {
    font-size: 1.5rem;
  }
  
  .shop-title {
    font-size: 2rem;
  }
  
  .category-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }
  
  .category-btn {
    flex-shrink: 0;
  }
}

/* Cart Styles */
.cart-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 2rem;
}

.cart-items {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.shop_table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.shop_table th,
.shop_table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

.shop_table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #000000;
  text-align: left;
  border-bottom: 2px solid #e0e0e0;
}

.shop_table .product-remove a {
  color: #dc3545;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
}

.shop_table .product-remove a:hover {
  color: #c82333;
}

.shop_table .product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.shop_table .product-name a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.shop_table .product-name a:hover {
  color: #666666;
}

.shop_table .product-price,
.shop_table .product-subtotal {
  font-weight: 600;
  color: #000000;
}

.shop_table .quantity input {
  width: 60px;
  text-align: center;
  border: 1px solid #000000;
  border-radius: 4px;
  padding: 5px;
}

.cart_totals {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

.cart-totals-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
  text-align: center;
}

.cart_totals .shop_table th,
.cart_totals .shop_table td {
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
  font-size: 1.2rem;
  font-weight: 600;
  border-top: 2px solid #000000;
  border-bottom: none;
}

.wc-proceed-to-checkout {
  margin-top: 1rem;
  text-align: center;
}

.wc-proceed-to-checkout .checkout-button {
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 12px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  width: 100%;
}

.wc-proceed-to-checkout .checkout-button:hover {
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
}

.actions {
  background-color: #f8f9fa;
}

.coupon {
  display: inline-block;
  margin-right: 15px;
}

.coupon input {
  border: 1px solid #000000;
  border-radius: 4px;
  padding: 8px 12px;
  margin-right: 10px;
}

/* Mobile Cart Responsive */
@media (max-width: 768px) {
  .shop_table,
  .shop_table thead,
  .shop_table tbody,
  .shop_table th,
  .shop_table td,
  .shop_table tr {
    display: block;
  }

  .shop_table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .shop_table tr {
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #ffffff;
  }

  .shop_table td {
    border: none;
    position: relative;
    padding-left: 50%;
  }

  .shop_table td:before {
    content: attr(data-title) ": ";
    position: absolute;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: 600;
  }

  .product-remove {
    text-align: right;
    padding-left: 15px !important;
  }

  .product-remove:before {
    display: none;
  }
}

/* Page and Post Styles */
.page-header-full {
  width: 100%;
  padding: 2rem 0;
  border-bottom: 1px solid #000000;
  margin-bottom: 0;
}

.page-header-full .page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0;
  text-align: left;
  text-transform: uppercase;
}

.page-header,
.post-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #000000;
}

.page-title,
.post-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0;
}

.post-meta {
  margin-bottom: 1rem;
}

.post-date {
  font-size: 0.9rem;
  color: #666666;
  font-weight: 500;
}

.page-content,
.post-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #000000;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content p,
.post-content p {
  margin-bottom: 1.5rem;
}

.page-content img,
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.page-content ul,
.page-content ol,
.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-content blockquote,
.post-content blockquote {
  border-left: 4px solid #000000;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666666;
}

/* Mobile Responsive for Pages */
@media (max-width: 768px) {
  .page-title,
  .post-title {
    font-size: 2rem;
  }
}

/* 404 Error Page Styles */
.error-404-content {
  padding: 2rem 0;
}

.error-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 2rem;
}

.error-number {
  font-size: 8rem;
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1;
}

.error-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #000000;
  margin: 1rem 0 0.5rem 0;
}

.error-subtitle {
  font-size: 1.2rem;
  color: #666666;
  margin: 0;
  font-weight: 300;
}

.error-message {
  padding: 2rem 0;
}

.error-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333333;
  margin: 0;
}

.error-actions {
  margin: 2rem 0;
}

.btn-shop-outline {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 12px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-shop-outline:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

.helpful-links {
  border-top: 1px solid #e0e0e0;
  padding-top: 2rem;
}

.helpful-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
}

.helpful-link-card {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.helpful-link-card:hover {
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.helpful-link-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5rem;
}

.helpful-link-card p {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.helpful-link {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #000000;
  transition: all 0.3s ease;
}

.helpful-link:hover {
  color: #666666;
  border-bottom-color: #666666;
  text-decoration: none;
}

/* Mobile responsive for 404 page */
@media (max-width: 768px) {
  .error-number {
    font-size: 5rem;
  }
  
  .error-title {
    font-size: 2rem;
  }
  
  .error-text {
    font-size: 1rem;
  }
  
  .btn-shop,
  .btn-shop-outline {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .helpful-link-card {
    margin-bottom: 1rem;
  }
}

/* WooCommerce Single Product Page Styles */
.single-product .woocommerce-product-gallery {
  margin-bottom: 2rem;
}

/* Main Gallery Image Container */
.single-product .woocommerce-product-gallery__wrapper {
  margin-bottom: 1rem;
}

/* Main Gallery Images */
.single-product .woocommerce-product-gallery__image {
  margin: 0;
}

.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gallery Thumbnails */
.single-product .woocommerce-product-gallery .flex-control-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 100px 0 40px 0;
  list-style: none;
}

.single-product .woocommerce-product-gallery .flex-control-nav li {
  margin: 0;
}

/* Responsive Gallery Thumbnails */
/* 4 per row on large screens */
@media (min-width: 992px) {
  .single-product .woocommerce-product-gallery .flex-control-nav li {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
}

/* 3 per row on medium screens */
@media (min-width: 768px) and (max-width: 991.98px) {
  .single-product .woocommerce-product-gallery .flex-control-nav li {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
  }
}

/* 2 per row on small screens */
@media (max-width: 767.98px) {
  .single-product .woocommerce-product-gallery .flex-control-nav li {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

.single-product .woocommerce-product-gallery .flex-control-nav li img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #cccccc;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-product .woocommerce-product-gallery .flex-control-nav li img:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.single-product .woocommerce-product-gallery .flex-control-nav li img.flex-active {
  opacity: 1;
  border-color: #000000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

/* Override WooCommerce flex-control-thumbs styles */
.woocommerce div.product div.images .flex-control-thumbs {
  overflow: visible !important;
  margin-top: 30px !important;
}

/* Store Information Section */
.store-info-section {
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  padding: 50px 0;
}

.store-info-table {
  width: 100%;
  margin-bottom: 20px;
}

.store-info-table td {
  padding: 8px 0;
  vertical-align: top;
  border: none;
}

.store-info-table .label {
  font-weight: bold;
  padding-right: 20px;
  width: 30%;
  text-align: left;
}

.store-info-table .value {
  text-align: left;
  line-height: 1.4;
}

.store-small-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  margin: 20px 0;
  max-width: 100%;
  display: block;
}

.store-details-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #000000;
  font-weight: normal;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
  margin-top: 10px;
}

.store-details-button:hover {
  opacity: 0.7;
  color: #000000;
  text-decoration: none;
}

.store-details-button .arrow {
  margin-left: 8px;
  font-size: 1.2em;
}

.store-large-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  max-width: 600px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .store-info-table .label {
    width: 40%;
    padding-right: 15px;
  }
  
  .store-large-image {
    height: 400px;
    margin-top: 30px;
  }
  
  .store-small-image {
    width: 100%;
    height: auto;
  }
}

/* Store Template Styles */
.store-section {
  padding: 20px 0;
}

.store-text-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
}

.store-text-content p {
  line-height: 1.6;
  color: #333333;
  margin-bottom: 0;
}

.store-section-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-width: 100%;
}

/* Gallery Section */
.gallery-section {
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.gallery-title {
  font-size: 2rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 2rem;
  text-align: left;
}

.gallery-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #f8f8f8;
}

.gallery-track {
  display: flex;
  animation: scroll-left 30s linear infinite;
  width: calc(350px * 24); /* 12 images * 2 for seamless loop */
}

.gallery-track img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-350px * 12)); /* Move by half the width for seamless loop */
  }
}

/* Responsive adjustments for store template */
@media (max-width: 768px) {
  .store-section {
    padding: 15px 0;
  }
  
  .store-text-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }
  
  .store-text-content p {
    font-size: 0.9rem;
  }
  
  .gallery-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .gallery-track {
    animation-duration: 25s; /* Slightly faster on mobile */
  }
}

/* Legal Template Styles */
.legal-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000000;
  margin-bottom: 2rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #000000;
  margin-bottom: 2rem;
}

.legal-table tr {
  border-bottom: 1px solid #000000;
}

.legal-table td {
  padding: 25px 20px;
  vertical-align: top;
  line-height: 1.6;
}

.legal-label {
  font-weight: bold;
  width: 30%;
}

.legal-value {
  width: 70%;
}

.legal-copyright {
  color: #666666;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* Responsive adjustments for legal template */
@media (max-width: 768px) {
  .legal-title {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .legal-table td {
    padding: 20px 15px;
    font-size: 0.9rem;
  }
  
  .legal-label {
    width: 35%;
  }
  
  .legal-value {
    width: 65%;
  }
}

/* Breadcrumb Styles for Single Product Pages */
.breadcrumb-nav {
  padding-bottom: 1rem;
  padding-top: 1.5rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #000;
  line-height: 1.4;
}

.breadcrumb a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #666;
  text-decoration: underline;
}

.breadcrumb > *:last-child {
  color: #333;
  font-weight: 500;
}

@media (max-width: 768px) {
  .breadcrumb {
    font-size: 0.8rem;
  }
  
  .breadcrumb-nav {
    padding-bottom: 0.75rem;
  }
}

/* WooCommerce Notices Styling */
.woocommerce-notices-wrapper {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 1rem 1.5rem 1rem 3.5rem !important;
  margin-bottom: 1rem !important;
  border-radius: 8px !important;
  border: 2px solid !important;
  display: flex !important;
  align-items: center !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  background-color: #ffffff !important;
  position: relative !important;
}

.woocommerce-message {
  border-color: #000000 !important;
  color: #000000 !important;
}

.woocommerce-info {
  border-color: #666666 !important;
  color: #333333 !important;
}

.woocommerce-error {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
  background-color: #fff5f5 !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  content: "✓" !important;
  position: absolute !important;
  left: 1.25rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  line-height: 1 !important;
}

.woocommerce-error::before {
  content: "×" !important;
  position: absolute !important;
  left: 1.25rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  line-height: 1 !important;
}

.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  border-radius: 6px !important;
  padding: 8px 20px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-left: auto !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}

.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  text-decoration: none !important;
}

.woocommerce-error a.button {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

.woocommerce-error a.button:hover {
  background-color: #ffffff !important;
  color: #dc3545 !important;
  border-color: #dc3545 !important;
}

/* Mobile responsive for notices */
@media (max-width: 768px) {
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    padding: 0.75rem 1rem 0.75rem 3rem !important;
    font-size: 0.9rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .woocommerce-message::before,
  .woocommerce-info::before {
    left: 1rem !important;
    font-size: 1rem !important;
  }
  
  .woocommerce-error::before {
    left: 1rem !important;
    font-size: 1.3rem !important;
  }
  
  .woocommerce-message a.button,
  .woocommerce-info a.button,
  .woocommerce-error a.button {
    margin-left: 0 !important;
    margin-top: 0.75rem !important;
    width: 100% !important;
    text-align: center !important;
  }
}

/* =============================================
   Gravity Forms Styling
   ============================================= */

/* Form Wrapper */
.gform_wrapper {
  max-width: 100%;
  margin: 0;
}

/* Form Title */
.gform_wrapper .gform_heading {
  display: none;
}

.gform_wrapper .gform_title {
  font-size: 2rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5rem;
  letter-spacing: 0.125em;
}

.gform_wrapper .gform_description {
  font-size: 1rem;
  color: #666666;
  margin: 0;
}

/* Form Fields Container */
.gform_wrapper .gform_fields {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual Field */
.gform_wrapper .gfield {
  margin-bottom: 0;
}

/* Field Labels */
.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5rem;
  display: block;
}

.gform_wrapper .gfield_label_before_complex {
  margin-bottom: 1rem;
}

/* Sub Labels */
.gform_wrapper .gform-field-label--type-sub {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666666;
  margin-bottom: 0.5rem;
  display: block;
}

/* Required Indicator */
.gform_wrapper .gfield_required {
  color: #dc3545;
  margin-left: 0.25rem;
}

.gform_wrapper .gfield_required_text {
  font-size: 0.9rem;
}

/* Field Descriptions */
.gform_wrapper .gfield_description {
  font-size: 0.9rem;
  color: #666666;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Text Inputs, Textareas, Selects */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="date"],
.gform_wrapper input[type="time"],
.gform_wrapper textarea,
.gform_wrapper select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #000000;
  border-radius: 6px;
  font-size: 1rem;
  color: #000000;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.5;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper input[type="url"]:focus,
.gform_wrapper input[type="number"]:focus,
.gform_wrapper input[type="date"]:focus,
.gform_wrapper input[type="time"]:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
  border-color: #000000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Textarea Specific */
.gform_wrapper textarea {
  min-height: 150px;
  resize: vertical;
}

/* Character Counter */
.gform_wrapper .charleft {
  font-size: 0.85rem;
  color: #666666;
  margin-top: 0.5rem;
}

/* Complex Fields (Name, Email with Confirm) */
.gform_wrapper .ginput_complex {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gform_wrapper .ginput_complex .ginput_left,
.gform_wrapper .ginput_complex .ginput_right,
.gform_wrapper .ginput_complex .name_first,
.gform_wrapper .ginput_complex .name_last {
  flex: 1;
  min-width: 200px;
}

/* Grid Layout for Complex Fields */
.gform_wrapper .gform-grid-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gform_wrapper .gform-grid-col {
  flex: 1;
  min-width: 200px;
}

/* Checkboxes and Radio Buttons */
.gform_wrapper .gfield_checkbox,
.gform_wrapper .gfield_radio {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gform_wrapper .gfield_checkbox li,
.gform_wrapper .gfield_radio li {
  margin-bottom: 0.75rem;
}

.gform_wrapper input[type="checkbox"],
.gform_wrapper input[type="radio"] {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
  border: 1px solid #000000;
  cursor: pointer;
}

/* Submit Button Styling */
.gform_wrapper .gform_footer,
.gform_wrapper .gform-footer {
  margin: 0;
  padding: 0;
  border: none;
}

.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"],
.gform_wrapper .button {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  border-radius: 8px !important;
  padding: 14px 40px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-family: inherit !important;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover,
.gform_wrapper .button:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  text-decoration: none !important;
}

.gform_wrapper .gform_button:focus,
.gform_wrapper input[type="submit"]:focus,
.gform_wrapper .button:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2) !important;
}

/* Validation Errors */
.gform_wrapper .gfield_error {
  background-color: #fff5f5 !important;
  border: 1px solid #dc3545 !important;
  border-radius: 6px !important;
  padding: 1rem !important;
  margin-bottom: 2rem !important;
}

.gform_wrapper .gfield_error .gfield_label {
  color: #dc3545 !important;
}

.gform_wrapper .gfield_error input[type="text"],
.gform_wrapper .gfield_error input[type="email"],
.gform_wrapper .gfield_error input[type="tel"],
.gform_wrapper .gfield_error input[type="url"],
.gform_wrapper .gfield_error input[type="number"],
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
  border-color: #dc3545 !important;
}

.gform_wrapper .validation_message {
  color: #dc3545 !important;
  font-size: 0.9rem !important;
  margin-top: 0.5rem !important;
  font-weight: 500 !important;
}

/* Validation Summary */
.gform_wrapper .validation_error {
  background-color: #fff5f5 !important;
  border: 2px solid #dc3545 !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
  color: #dc3545 !important;
  font-weight: 600 !important;
}

/* Success Message */
.gform_wrapper .gform_confirmation_message {
  background-color: #f0fff4 !important;
  border: 2px solid #000000 !important;
  border-radius: 8px !important;
  padding: 2rem !important;
  color: #000000 !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  text-align: center !important;
}

/* File Upload */
.gform_wrapper input[type="file"] {
  border: 1px solid #000000;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  cursor: pointer;
}

/* Select Dropdown */
.gform_wrapper select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23000000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Multi-page Forms Progress Bar */
.gform_wrapper .gf_progressbar_wrapper {
  margin-bottom: 2rem;
}

.gform_wrapper .gf_progressbar {
  background-color: #e0e0e0;
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
}

.gform_wrapper .gf_progressbar_percentage {
  background-color: #000000;
  height: 100%;
  transition: width 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gform_wrapper .gform_title {
    font-size: 1.5rem;
  }
  
  .gform_wrapper .ginput_complex {
    flex-direction: column;
  }
  
  .gform_wrapper .ginput_complex .ginput_left,
  .gform_wrapper .ginput_complex .ginput_right,
  .gform_wrapper .ginput_complex .name_first,
  .gform_wrapper .ginput_complex .name_last {
    min-width: 100%;
  }
  
  .gform_wrapper .gform-grid-row {
    flex-direction: column;
  }
  
  .gform_wrapper .gform-grid-col {
    min-width: 100%;
  }
  
  .gform_wrapper .gform_button,
  .gform_wrapper input[type="submit"],
  .gform_wrapper .button {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ===============
Age Verification Styles for Checkout
================== */

/* Age Verification Container */
.age-verification-container {
  margin: 25px 0 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  position: relative;
  width: 100%;
}

.age-verification-container::before {
  display: none;
}

/* Block checkout specific styles */
.wc-block-components-address-form__age-verification {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  margin: 25px 0 0 0;
}

.wc-block-components-address-form__age-verification .wc-block-components-text-input {
  margin-bottom: 0;
  position: relative;
}

.wc-block-components-address-form__age-verification .wc-block-components-text-input:first-child {
  flex: 0 0 calc(65% - 0.5rem);
  max-width: calc(65% - 0.5rem);
}

.wc-block-components-address-form__age-verification .wc-block-components-text-input:nth-child(2) {
  flex: 0 0 calc(35% - 0.5rem);
  max-width: calc(35% - 0.5rem);
}

/* Fix labels for age verification fields */
.wc-block-components-address-form__age-verification .wc-block-components-text-input label {
  position: absolute !important;
  top: 50% !important;
  left: 16px !important;
  transform: translateY(-50%) !important;
  background-color: transparent !important;
  color: #666666 !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  pointer-events: none !important;
  transition: all 0.2s ease !important;
  z-index: 1 !important;
}

.wc-block-components-address-form__age-verification .wc-block-components-text-input.is-active label,
.wc-block-components-address-form__age-verification .wc-block-components-text-input input:focus + label,
.wc-block-components-address-form__age-verification .wc-block-components-text-input input:not(:placeholder-shown) + label {
  top: -8px !important;
  left: 12px !important;
  transform: translateY(0) !important;
  font-size: 0.75rem !important;
  color: #000000 !important;
  background-color: #ffffff !important;
  padding: 0 4px !important;
  font-weight: 500 !important;
}

.wc-block-components-address-form__age-verification .wc-block-components-text-input input:focus + label {
  color: #000000 !important;
}

/* Age verification input fields */
.age-verification-container input[type="date"],
.age-verification-container input[type="number"],
.age-verification-container input[type="text"],
.wc-block-components-address-form__age-verification input[type="date"],
.wc-block-components-address-form__age-verification input[type="number"],
.wc-block-components-address-form__age-verification input[type="text"] {
  width: 100% !important;
  padding: 16px 16px 8px 16px !important;
  border: 1px solid #000000 !important;
  border-radius: 4px !important;
  font-family: "Noto Serif JP", serif !important;
  font-size: 1rem !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 0 !important;
}

.age-verification-container input[type="date"]:focus,
.age-verification-container input[type="number"]:focus,
.wc-block-components-address-form__age-verification input[type="date"]:focus,
.wc-block-components-address-form__age-verification input[type="number"]:focus {
  outline: none !important;
  border-color: #000000 !important;
  border-width: 2px !important;
  box-shadow: none !important;
}

/* Ensure proper label positioning when input has value */
.wc-block-components-address-form__age-verification input[type="date"]:not(:placeholder-shown),
.wc-block-components-address-form__age-verification input[type="number"]:not(:placeholder-shown) {
  padding-top: 16px !important;
  padding-bottom: 8px !important;
}

/* Readonly age field */
.age-verification-container input[readonly],
.wc-block-components-address-form__age-verification input[readonly] {
  background-color: #f8f9fa !important;
  cursor: not-allowed !important;
  color: #666666 !important;
}

/* Age verification labels */
.age-verification-container label .required,
.wc-block-components-address-form__age-verification label .required {
  color: #dc3545 !important;
  margin-left: 0.25rem !important;
}

/* Make inputs trigger active state properly */
.wc-block-components-address-form__age-verification .wc-block-components-text-input input:focus,
.wc-block-components-address-form__age-verification .wc-block-components-text-input input:not(:placeholder-shown) {
  border-color: #000000 !important;
}

/* Add active class when input has focus or value */
.wc-block-components-address-form__age-verification .wc-block-components-text-input input {
  color: #000000 !important;
}

.wc-block-components-address-form__age-verification .wc-block-components-text-input input::placeholder {
  color: transparent !important;
}

/* Age verification note */
.age-verification-note {
  margin: 0.5rem 0 0 0 !important;
  padding: 12px 16px !important;
  background-color: #fff8e1 !important;
  border: 1px solid #ffb74d !important;
  border-radius: 6px !important;
  color: #e65100 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-align: left !important;
  line-height: 1.4 !important;
  width: 100% !important;
  flex: 0 0 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
  transition: all 0.3s ease !important;
}

.age-verification-note::before {
  content: "⚠️" !important;
  font-size: 1.1rem !important;
  flex-shrink: 0 !important;
}

/* Underage warning state */
.age-verification-container.underage-warning .age-verification-note {
  background-color: #ffebee !important;
  border: 1px solid #ef5350 !important;
  color: #c62828 !important;
  font-weight: 600 !important;
}

.age-verification-container.underage-warning .age-verification-note::before {
  content: "🚫" !important;
}

/* Dynamic message states */
.age-verification-note.success {
  background-color: #e8f5e8 !important;
  border: 1px solid #4caf50 !important;
  color: #2e7d32 !important;
  font-weight: 500 !important;
}

.age-verification-note.success::before {
  content: "✅" !important;
}

.age-verification-note.error {
  background-color: #ffebee !important;
  border: 1px solid #ef5350 !important;
  color: #c62828 !important;
  font-weight: 600 !important;
}

.age-verification-note.error::before {
  content: "🚫" !important;
}

.age-verification-note.warning {
  background-color: #fff8e1 !important;
  border: 1px solid #ffb74d !important;
  color: #e65100 !important;
  font-weight: 500 !important;
}

.age-verification-note.warning::before {
  content: "⚠️" !important;
}

/* Legacy states for backward compatibility */
.age-verification-container.valid-age .age-verification-note {
  background-color: #e8f5e8 !important;
  border: 1px solid #4caf50 !important;
  color: #2e7d32 !important;
  font-weight: 500 !important;
}

.age-verification-container.valid-age .age-verification-note::before {
  content: "✅" !important;
}

/* Error messages */
.age-verification-error {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 0.5rem !important;
  padding: 12px 16px !important;
  background-color: #ffebee !important;
  border: 1px solid #ef5350 !important;
  border-radius: 6px !important;
  color: #c62828 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  width: 100% !important;
  flex: 0 0 100% !important;
  animation: slideIn 0.3s ease !important;
}

.age-verification-error::before {
  content: "❌" !important;
  font-size: 1.1rem !important;
  flex-shrink: 0 !important;
}

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



/* Input validation states - only on interaction */
.wc-block-components-address-form__age-verification input:invalid:not(:placeholder-shown) {
  border-color: #ef5350 !important;
}

.wc-block-components-address-form__age-verification input:valid:not(:placeholder-shown) {
  border-color: #000000 !important;
}

/* Smooth transitions for all states */
.age-verification-note,
.underage-message,
.age-verification-error {
  transition: all 0.3s ease !important;
}

/* Hover effects for better UX */
.age-verification-note:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Classic WooCommerce checkout form fields */
.woocommerce-checkout .age-verification-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  width: 100% !important;
}

.woocommerce-checkout .age-verification-container .form-row {
  margin-bottom: 0 !important;
}

.woocommerce-checkout .age-verification-container .form-row:first-child {
  flex: 0 0 calc(65% - 0.5rem) !important;
  max-width: calc(65% - 0.5rem) !important;
}

.woocommerce-checkout .age-verification-container .form-row:nth-child(2) {
  flex: 0 0 calc(35% - 0.5rem) !important;
  max-width: calc(35% - 0.5rem) !important;
}

.woocommerce-checkout .age-verification-container .form-row label {
  font-weight: 600 !important;
  color: #000000 !important;
  margin-bottom: 0.5rem !important;
}

.woocommerce-checkout .age-verification-container .form-row input {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 6px !important;
  font-size: 1rem !important;
  color: #000000 !important;
  background-color: #ffffff !important;
  transition: border-color 0.3s ease !important;
}

.woocommerce-checkout .age-verification-container .form-row input:focus {
  border-color: #000000 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
}

.woocommerce-checkout .age-verification-container .form-row .required {
  color: #dc3545 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .age-verification-container,
  .wc-block-components-address-form__age-verification {
    flex-direction: column !important;
    gap: 0 !important;
    display: block !important;
  }
  
  .wc-block-components-address-form__age-verification .wc-block-components-text-input:first-child,
  .wc-block-components-address-form__age-verification .wc-block-components-text-input:nth-child(2) {
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 1.5rem !important;
  }
  
  .wc-block-components-address-form__age-verification .wc-block-components-text-input:nth-child(2) {
    margin-bottom: 1rem !important;
  }
  
  .woocommerce-checkout .age-verification-container {
    display: block !important;
  }
  
  .woocommerce-checkout .age-verification-container .form-row:first-child,
  .woocommerce-checkout .age-verification-container .form-row:nth-child(2) {
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 1.5rem !important;
  }
  
  .woocommerce-checkout .age-verification-container .form-row:nth-child(2) {
    margin-bottom: 1rem !important;
  }
  
  /* Input field adjustments for mobile */
  .age-verification-container input[type="date"],
  .age-verification-container input[type="number"],
  .age-verification-container input[type="text"],
  .wc-block-components-address-form__age-verification input[type="date"],
  .wc-block-components-address-form__age-verification input[type="number"],
  .wc-block-components-address-form__age-verification input[type="text"] {
    padding: 20px 16px 8px 16px !important;
    font-size: 1rem !important;
    height: auto !important;
    min-height: 52px !important;
  }
  
  /* Label adjustments for mobile */
  .wc-block-components-address-form__age-verification .wc-block-components-text-input label {
    font-size: 0.8rem !important;
    top: 18px !important;
    left: 16px !important;
    line-height: 1.2 !important;
  }
  
  .wc-block-components-address-form__age-verification .wc-block-components-text-input.is-active label,
  .wc-block-components-address-form__age-verification .wc-block-components-text-input input:focus + label,
  .wc-block-components-address-form__age-verification .wc-block-components-text-input input:not(:placeholder-shown) + label {
    top: 4px !important;
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
    padding: 0 2px !important;
  }
  
  /* Classic checkout labels */
  .woocommerce-checkout .age-verification-container .form-row label {
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Message adjustments for mobile */
  .age-verification-note {
    font-size: 0.85rem !important;
    padding: 10px 14px !important;
    margin: 0.75rem 0 0 0 !important;
    line-height: 1.3 !important;
    width: 100% !important;
    display: block !important;
    flex: none !important;
    order: 10 !important;
    clear: both !important;
  }
  
  .age-verification-note::before {
    font-size: 1rem !important;
    margin-right: 8px !important;
  }
  
  /* Ensure message container is full width on mobile */
  .wc-block-components-address-form__age-verification .age-verification-note,
  .age-verification-container .age-verification-note {
    width: 100% !important;
    display: block !important;
    flex: none !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}