/*
Theme Name: Hello Elementor Child - Custom Shop
Theme URI: https://elementor.com/
Description: Custom child theme for shop page design - Card Game Store
Author: Rishi
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.0
*/

/* Import Parent Theme Styles */
@import url("../hello-elementor/style.css");

/* ==========================================
   CARD GAME SHOP DESIGN - Matching Uploaded Image
   ========================================== */

/* Main Shop Layout with Sidebar */
.shop-page-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.shop-page-wrapper .content-area {
  display: flex !important;
  gap: 30px;
  align-items: flex-start;
}

.shop-sidebar {
  flex: 0 0 260px !important;
  background: #2c2c2c !important;
  padding: 30px 20px !important;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 20px;
  min-width: 260px;
}

.shop-main-content {
  flex: 1 !important;
  min-width: 0;
}

/* Shop Page Title */
.woocommerce-products-header {
  background: transparent;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.woocommerce-products-header__title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px 0;
  text-shadow: none;
}

/* Products Grid - 3 Columns to match image */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

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

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-sidebar {
    display: none;
  }

  .woocommerce-page .content-area,
  .woocommerce .content-area {
    flex-direction: column;
  }
}

/* Product Cards - Improved Design */
.woocommerce ul.products li.product {
  background: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid #e0e0e0 !important;
  height: 100% !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12) !important;
  border-color: #d32f2f !important;
}

/* Product Image */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  background: #fafafa !important;
  border-bottom: 1px solid #e8e8e8 !important;
}

.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 200px !important;
  object-fit: contain !important;
  transition: transform 0.3s ease !important;
  display: block !important;
  padding: 25px !important;
  background: white !important;
}

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

/* Product Info Container */
.woocommerce ul.products li.product .product-info {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  background: white;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  padding: 15px 20px 10px 20px !important;
  line-height: 1.5 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  min-height: 45px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title:hover,
.woocommerce ul.products li.product h2:hover {
  color: #d32f2f !important;
}

/* Product Price and Cart Button Container */
.woocommerce ul.products li.product .product-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 15px !important;
  padding: 20px !important;
  margin-top: auto !important;
  background: white !important;
  border-top: none !important;
}

/* Product Price */
.woocommerce ul.products li.product .price {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #d32f2f !important;
  margin: 0 !important;
  display: block !important;
  line-height: 1.2 !important;
}

.woocommerce ul.products li.product .price del {
  color: #999 !important;
  font-size: 16px !important;
  margin-right: 8px !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
  font-weight: 700 !important;
}

/* Add to Cart Button - Red Button matching "Quick View" style */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product a.button {
  background: #d32f2f !important;
  color: white !important;
  border: none !important;
  padding: 12px 30px !important;
  border-radius: 5px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 120px !important;
  width: 100% !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce ul.products li.product a.button:hover {
  background: #b71c1c !important;
  transform: none !important;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3) !important;
  color: white !important;
}

/* Ensure button text is visible */
.woocommerce ul.products li.product .button::before,
.woocommerce ul.products li.product .add_to_cart_button::before {
  content: none !important;
}

/* Sale Badge */
.woocommerce span.onsale {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  left: auto !important;
  background: #d32f2f !important;
  color: white !important;
  padding: 8px 14px !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  z-index: 10 !important;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4) !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Product Rating */
.woocommerce .star-rating {
  color: #ffc107;
  margin: 5px 0;
  font-size: 14px;
}

/* Sidebar Styles - Enhanced */
.shop-sidebar h3,
.shop-sidebar .widget-title {
  color: white !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0 0 15px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #444 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

.shop-sidebar .widget,
.shop-sidebar .sidebar-inner > div {
  margin-bottom: 35px !important;
}

.shop-sidebar .widget ul,
.shop-sidebar ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.shop-sidebar .widget li,
.shop-sidebar li {
  margin-bottom: 10px !important;
  position: relative !important;
  padding-left: 0 !important;
}

.shop-sidebar .widget a,
.shop-sidebar li a {
  color: #d0d0d0 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.shop-sidebar .widget a:hover,
.shop-sidebar li a:hover {
  color: #fff !important;
  background: #d32f2f !important;
  padding-left: 18px !important;
  transform: translateX(5px) !important;
}

.shop-sidebar .widget .count,
.shop-sidebar .count {
  background: #d32f2f !important;
  color: white !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  margin-left: auto !important;
}

/* Price Filter in Sidebar */
.shop-sidebar .widget_price_filter .widget-title,
.shop-sidebar .price_slider_wrapper h3,
.shop-sidebar .price_slider_wrapper .widgettitle {
  color: white !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0 0 15px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #444 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  opacity: 1 !important;
}

.shop-sidebar .price_slider_wrapper {
  padding: 15px 0;
}

.shop-sidebar .price_slider {
  margin-bottom: 20px;
}

.shop-sidebar .price_slider_amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-sidebar .price_slider_amount input {
  background: #444;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  width: 100px;
}

.shop-sidebar .price_slider_amount .button {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shop-sidebar .price_slider_amount .button:hover {
  background: #b71c1c;
}

/* Filters and Sorting Bar */
.woocommerce-ordering {
  margin-bottom: 20px;
}

.woocommerce-ordering select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.woocommerce-ordering select:focus {
  border-color: #d32f2f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Result Count and Ordering */
.woocommerce-result-count {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

/* Pagination - Matching Uploaded Design */
.woocommerce-pagination {
  margin-top: 40px;
  text-align: center;
}

.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-pagination ul.page-numbers li {
  display: inline-block;
}

.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.woocommerce-pagination a.page-numbers:hover {
  background: #f5f5f5;
  border-color: #d32f2f;
  color: #d32f2f;
}

.woocommerce-pagination span.page-numbers.current {
  background: #d32f2f;
  color: white;
  border-color: #d32f2f;
}

.woocommerce-pagination a.prev,
.woocommerce-pagination a.next {
  background: #d32f2f;
  color: white;
  border-color: #d32f2f;
}

.woocommerce-pagination a.prev:hover,
.woocommerce-pagination a.next:hover {
  background: #b71c1c;
}

/* Section Headings */
.shop-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #d32f2f;
  margin: 50px 0 30px 0;
  text-align: center;
}

/* Upcoming Games Section */
.upcoming-games-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #eee;
}

/* Loading Animation */
.woocommerce .blockUI.blockOverlay {
  background: rgba(255, 255, 255, 0.9) !important;
}

/* Product Quick Actions */
.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.woocommerce ul.products li.product:hover .product-actions {
  opacity: 1;
}

.product-actions a {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.product-actions a:hover {
  background: #d32f2f;
  color: white;
  transform: scale(1.1);
}

/* No products found */
.woocommerce-info,
.woocommerce-no-products-found {
  text-align: center;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 8px;
  color: #666;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
}

.woocommerce-breadcrumb a {
  color: #d32f2f;
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .shop-toolbar {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .woocommerce-ordering select {
    width: 100%;
  }

  .woocommerce ul.products li.product img {
    height: 200px !important;
  }

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

  .shop-sidebar {
    display: none !important;
  }
}

/* Critical Overrides for Layout */
body.woocommerce-shop .site-main,
body.woocommerce-shop main,
body.woocommerce-shop .elementor-section {
  max-width: 100% !important;
  padding: 0 !important;
}

body.woocommerce-shop .elementor-container {
  max-width: 100% !important;
}

/* Ensure sidebar is visible */
.shop-sidebar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Fix any theme conflicts */
.woocommerce .shop-page-wrapper {
  width: 100% !important;
  display: block !important;
}

.woocommerce .shop-page-wrapper .content-area {
  display: flex !important;
  flex-wrap: nowrap !important;
}

/* Ensure products display properly */
.woocommerce ul.products {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product {
  list-style: none !important;
  margin: 0 !important;
}

/* ==========================================
   SINGLE PRODUCT PAGE DESIGN
   ========================================== */

/* Single Product Wrapper */
.single-product-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.single-product .product {
  background: white;
}

/* Main Product Layout - Image on Left */
.product-main-content {
  display: flex !important;
  flex-direction: row !important;
  gap: 50px !important;
  margin-bottom: 60px !important;
  background: white !important;
  padding: 60px 40px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Left Side: Product Image */
.product-images-section {
  flex: 0 0 40% !important;
  position: relative !important;
  padding: 0 !important;
}

.woocommerce-product-gallery {
  position: relative !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-product-gallery__wrapper {
  margin: 0 !important;
  background: transparent !important;
}

.woocommerce-product-gallery__image {
  margin: 0 !important;
}

.woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}

/* Sale Badge on Product */
.single-product .onsale {
  display: none !important;
}

/* Right Side: Product Details */
.product-summary-section {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

.product-summary-section .summary {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}

/* Product Title */
.single-product .product_title,
.single-product h1.product_title {
  font-size: 36px !important;
  font-weight: 700 !important;
  color: #d32f2f !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: Georgia, serif !important;
}

/* Star Rating - Show on single product */
.single-product .woocommerce-product-rating {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 15px !important;
}

.single-product .woocommerce-product-rating .star-rating {
  font-size: 16px !important;
  color: #ffa500 !important;
}

.single-product .woocommerce-product-rating .woocommerce-review-link {
  display: none !important;
}

/* Product Price */
.single-product .price,
.single-product p.price {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #d32f2f !important;
  margin: 10px 0 20px 0 !important;
  display: block !important;
}

.single-product .price del {
  color: #999 !important;
  font-size: 20px !important;
  margin-right: 10px !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
}

.single-product .price ins {
  text-decoration: none !important;
  font-weight: 700 !important;
}

/* Product Short Description */
.woocommerce-product-details__short-description {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #555 !important;
  margin: 25px 0 !important;
  padding: 25px !important;
  background: #fff !important;
  border-radius: 0 !important;
  border-left: 5px solid #d32f2f !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.woocommerce-product-details__short-description p {
  margin: 0 0 15px 0 !important;
  color: #333 !important;
}

.woocommerce-product-details__short-description p:first-child {
  margin-top: 0 !important;
}

.woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0 !important;
}

.woocommerce-product-details__short-description strong {
  color: #1a1a1a !important;
  font-weight: 700 !important;
  display: block !important;
  margin-bottom: 8px !important;
}

.woocommerce-product-details__short-description h3,
.woocommerce-product-details__short-description h4 {
  color: #1a1a1a !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 0 10px 0 !important;
}

.woocommerce-product-details__short-description ul,
.woocommerce-product-details__short-description ol {
  margin: 10px 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.woocommerce-product-details__short-description li {
  margin-bottom: 10px !important;
  color: #555 !important;
  padding-left: 0 !important;
}

/* Add to Cart Section */
.single-product .cart,
.single-product form.cart {
  display: flex !important;
  gap: 15px !important;
  align-items: center !important;
  margin: 30px 0 !important;
  flex-wrap: wrap !important;
}

.single-product .quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 2px solid #ddd !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  background: white !important;
  height: 50px !important;
}

.single-product .quantity input.qty {
  width: 60px !important;
  text-align: center !important;
  border: none !important;
  padding: 12px 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  height: 100% !important;
}

/* Add to Cart Button */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button {
  background: #d32f2f !important;
  color: white !important;
  border: none !important;
  padding: 14px 35px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  box-shadow: none !important;
  height: 50px !important;
  line-height: 1 !important;
}

.single-product .single_add_to_cart_button:hover,
.single-product button.single_add_to_cart_button:hover {
  background: #b71c1c !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Buy Now Button - Custom */
.buy-now-button,
a.buy-now-button {
  background: #ff6969 !important;
  color: white !important;
  border: none !important;
  padding: 14px 35px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 50px !important;
  line-height: 1 !important;
}

.buy-now-button:hover,
a.buy-now-button:hover {
  background: #ff5252 !important;
  transform: none !important;
  box-shadow: none !important;
  color: white !important;
}

/* Product Meta */
.product_meta {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
  color: #666;
}

.product_meta > span {
  display: block;
  margin-bottom: 10px;
}

.product_meta a {
  color: #d32f2f;
  text-decoration: none;
}

.product_meta a:hover {
  text-decoration: underline;
}

/* Product Tabs Section */
.product-tabs-wrapper {
  background: white !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 60px !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.woocommerce-tabs {
  margin: 40px 0 0 0 !important;
  border-top: 1px solid #e0e0e0 !important;
}

/* Tab Navigation */
.woocommerce-tabs ul.tabs {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  gap: 0 !important;
  border-bottom: 2px solid #ddd !important;
  background: #f5f5f5 !important;
}

.woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  background: #f5f5f5 !important;
}

.woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 18px 35px !important;
  color: #555 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border-bottom: 3px solid transparent !important;
  transition: all 0.3s ease !important;
  background: #f5f5f5 !important;
  border-radius: 0 !important;
  border-right: 1px solid #ddd !important;
}

.woocommerce-tabs ul.tabs li a:hover {
  color: #1a1a1a !important;
  background: #e8e8e8 !important;
}

.woocommerce-tabs ul.tabs li.active a {
  color: #1a1a1a !important;
  border-bottom-color: transparent !important;
  background: #fff !important;
  position: relative !important;
}

.woocommerce-tabs ul.tabs li.active {
  background: white !important;
  border-bottom: 3px solid white !important;
  margin-bottom: -2px !important;
}

/* Tab Content */
.woocommerce-tabs .panel {
  padding: 40px 0 !important;
  background: white !important;
  border-radius: 0 !important;
}

.woocommerce-tabs .panel h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 25px 0 !important;
  text-transform: uppercase !important;
}

.woocommerce-tabs .panel p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

/* Reviews Section */
#reviews {
  background: transparent;
  padding: 0;
}

#reviews h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
}

.woocommerce-Reviews-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

/* Review Form */
#review_form_wrapper {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-top: 30px;
}

#review_form input,
#review_form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

#review_form input:focus,
#review_form textarea:focus {
  border-color: #d32f2f;
  outline: none;
}

#review_form .submit {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#review_form .submit:hover {
  background: #b71c1c;
  transform: translateY(-2px);
}

/* Related/Featured Products Section */
.related.products,
.upsells.products {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.related.products h2,
.upsells.products h2 {
  font-size: 32px;
  font-weight: 700;
  color: #d32f2f;
  text-align: center;
  margin: 0 0 40px 0;
  padding-bottom: 20px;
  border-bottom: 3px solid #d32f2f;
}

/* Product Meta Styling */
.product_meta {
  margin-top: 30px !important;
  padding-top: 20px !important;
  border-top: 1px solid #e0e0e0 !important;
  font-size: 14px !important;
  color: #666 !important;
}

.product_meta > span {
  display: block !important;
  margin-bottom: 8px !important;
}

.product_meta .posted_in,
.product_meta .tagged_as {
  color: #666 !important;
}

.product_meta a {
  color: #d32f2f !important;
  text-decoration: none !important;
}

.product_meta a:hover {
  text-decoration: underline !important;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .product-main-content {
    flex-direction: column !important;
    gap: 30px !important;
  }

  .product-images-section {
    flex: 1 !important;
    order: 1 !important;
  }

  .product-summary-section {
    order: 2 !important;
    padding: 20px 0 !important;
  }

  .single-product .product_title,
  .single-product h1.product_title {
    font-size: 32px !important;
  }

  .single-product .price,
  .single-product p.price {
    font-size: 28px !important;
  }
}

@media (max-width: 768px) {
  .single-product-wrapper {
    padding: 20px 15px !important;
  }

  .product-main-content {
    padding: 0 !important;
  }

  .product-summary-section {
    padding: 20px 15px !important;
  }

  .woocommerce-tabs ul.tabs {
    flex-direction: column !important;
  }

  .woocommerce-tabs ul.tabs li {
    width: 100% !important;
  }

  .woocommerce-tabs ul.tabs li a {
    padding: 15px 20px !important;
    border-right: none !important;
    border-bottom: 1px solid #ddd !important;
  }
}

/* ==========================================
   CART PAGE DESIGN - Matching Figma Design
   ========================================== */

/* Cart Page Wrapper */
.woocommerce-cart .cart-page-wrapper {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Cart Content Layout - Two Columns */
.cart-content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.cart-items-section {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.cart-totals-section {
  flex: 0 0 380px;
  position: sticky;
  top: 20px;
}

/* Cart Section Title */
.cart-section-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #d32f2f !important;
  margin: 0 0 25px 0 !important;
  padding-bottom: 15px !important;
  border-bottom: 2px solid #d32f2f !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

/* Cart Table */
.woocommerce-cart-form table.shop_table {
  width: 100% !important;
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.woocommerce-cart-form table.shop_table thead {
  background: #f8f8f8 !important;
  border-radius: 6px !important;
}

.woocommerce-cart-form table.shop_table thead th {
  padding: 15px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #333 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  text-align: center !important;
}

.woocommerce-cart-form table.shop_table thead th.product-name {
  text-align: left !important;
}

.woocommerce-cart-form table.shop_table tbody {
  border: none !important;
}

.woocommerce-cart-form table.shop_table tbody tr {
  border-bottom: 1px solid #e8e8e8 !important;
  transition: background 0.2s ease !important;
}

.woocommerce-cart-form table.shop_table tbody tr:hover {
  background: #fafafa !important;
}

.woocommerce-cart-form table.shop_table tbody td {
  padding: 20px 12px !important;
  vertical-align: middle !important;
  border: none !important;
  text-align: center !important;
}

/* Product Remove Button */
.woocommerce-cart-form table.shop_table td.product-remove a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  background: #f44336 !important;
  color: white !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  font-weight: 400 !important;
}

.woocommerce-cart-form table.shop_table td.product-remove a:hover {
  background: #d32f2f !important;
  transform: scale(1.1) !important;
}

/* Product Thumbnail */
.woocommerce-cart-form table.shop_table td.product-thumbnail {
  width: 100px !important;
}

.woocommerce-cart-form table.shop_table td.product-thumbnail img {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  border: 1px solid #e8e8e8 !important;
  padding: 8px !important;
  background: white !important;
}

/* Product Name */
.woocommerce-cart-form table.shop_table td.product-name {
  text-align: left !important;
}

.woocommerce-cart-form table.shop_table td.product-name a {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.woocommerce-cart-form table.shop_table td.product-name a:hover {
  color: #d32f2f !important;
}

/* Product Price */
.woocommerce-cart-form table.shop_table td.product-price {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #333 !important;
}

/* Product Quantity */
.woocommerce-cart-form table.shop_table td.product-quantity {
  width: 140px !important;
}

.woocommerce-cart-form .quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: white !important;
}

.woocommerce-cart-form .quantity input.qty {
  width: 60px !important;
  height: 40px !important;
  border: none !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #333 !important;
  padding: 0 !important;
  background: white !important;
  -moz-appearance: textfield !important;
}

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

.woocommerce-cart-form .quantity input.qty:focus {
  outline: none !important;
  background: #f9f9f9 !important;
}

/* Product Subtotal */
.woocommerce-cart-form table.shop_table td.product-subtotal {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #d32f2f !important;
}

/* Cart Actions Row */
.woocommerce-cart-form table.shop_table tr.actions {
  background: #f8f8f8 !important;
  border-top: 2px solid #e0e0e0 !important;
}

.woocommerce-cart-form table.shop_table td.actions {
  padding: 20px !important;
  text-align: left !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
}

/* Coupon Section */
.woocommerce-cart-form .coupon {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  flex: 1 !important;
}

.woocommerce-cart-form .coupon label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #333 !important;
  white-space: nowrap !important;
}

.woocommerce-cart-form .coupon input#coupon_code {
  flex: 1 !important;
  max-width: 200px !important;
  padding: 10px 15px !important;
  border: 1px solid #ddd !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  transition: border-color 0.3s ease !important;
}

.woocommerce-cart-form .coupon input#coupon_code:focus {
  border-color: #d32f2f !important;
  outline: none !important;
}

.woocommerce-cart-form .coupon button[name="apply_coupon"] {
  background: #666 !important;
  color: white !important;
  border: none !important;
  padding: 10px 25px !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.woocommerce-cart-form .coupon button[name="apply_coupon"]:hover {
  background: #333 !important;
}

/* Update Cart Button */
.update-cart-button {
  background: #d32f2f !important;
  color: white !important;
  border: none !important;
  padding: 10px 30px !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
}

.update-cart-button:hover {
  background: #b71c1c !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3) !important;
}

/* Cart Totals / Order Summary */
.cart-totals-section .cart_totals {
  background: white !important;
  border-radius: 8px !important;
  padding: 30px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

.cart-totals-section .cart_totals h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 15px !important;
  border-bottom: 2px solid #e0e0e0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
}

.cart-totals-section .cart_totals table {
  width: 100% !important;
  border: none !important;
}

.cart-totals-section .cart_totals table tr {
  border-bottom: 1px solid #f0f0f0 !important;
}

.cart-totals-section .cart_totals table tr:last-child {
  border-bottom: none !important;
}

.cart-totals-section .cart_totals table th,
.cart-totals-section .cart_totals table td {
  padding: 15px 0 !important;
  border: none !important;
  font-size: 15px !important;
  vertical-align: middle !important;
}

.cart-totals-section .cart_totals table th {
  font-weight: 600 !important;
  color: #666 !important;
  text-align: left !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-size: 13px !important;
}

.cart-totals-section .cart_totals table td {
  text-align: right !important;
  font-weight: 700 !important;
  color: #333 !important;
}

/* Subtotal Row */
.cart-totals-section .cart_totals .cart-subtotal th {
  color: #666 !important;
}

.cart-totals-section .cart_totals .cart-subtotal td {
  color: #333 !important;
  font-size: 16px !important;
}

/* Shipping Row */
.cart-totals-section .cart_totals .woocommerce-shipping-totals th {
  color: #666 !important;
}

.cart-totals-section .cart_totals .woocommerce-shipping-totals td {
  color: #333 !important;
}

/* Total Row */
.cart-totals-section .cart_totals .order-total {
  background: #f8f8f8 !important;
  margin: 15px -30px -30px -30px !important;
  padding: 20px 30px !important;
  border-radius: 0 0 8px 8px !important;
}

.cart-totals-section .cart_totals .order-total th {
  font-size: 16px !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

.cart-totals-section .cart_totals .order-total td {
  font-size: 24px !important;
  color: #d32f2f !important;
  font-weight: 700 !important;
}

/* Proceed to Checkout Button */
.wc-proceed-to-checkout {
  margin-top: 25px !important;
}

.wc-proceed-to-checkout .checkout-button {
  display: block !important;
  width: 100% !important;
  background: #d32f2f !important;
  color: white !important;
  border: none !important;
  padding: 16px 30px !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2) !important;
}

.wc-proceed-to-checkout .checkout-button:hover {
  background: #b71c1c !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.3) !important;
}

/* Empty Cart Message */
.woocommerce-cart .cart-empty {
  text-align: center !important;
  padding: 60px 20px !important;
  background: white !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  font-size: 18px !important;
  color: #666 !important;
}

.woocommerce-cart .return-to-shop {
  text-align: center !important;
  margin-top: 30px !important;
}

.woocommerce-cart .return-to-shop .button {
  background: #d32f2f !important;
  color: white !important;
  padding: 14px 40px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.woocommerce-cart .return-to-shop .button:hover {
  background: #b71c1c !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .cart-content-wrapper {
    flex-direction: column !important;
  }
  
  .cart-totals-section {
    flex: 1 !important;
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 768px) {
  .cart-items-section {
    padding: 20px !important;
    overflow-x: auto !important;
  }
  
  .woocommerce-cart-form table.shop_table {
    min-width: 600px !important;
  }
  
  .cart-totals-section .cart_totals {
    padding: 20px !important;
  }
  
  .woocommerce-cart-form table.shop_table td.actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .woocommerce-cart-form .coupon {
    width: 100% !important;
  }
  
  .woocommerce-cart-form .coupon input#coupon_code {
    max-width: none !important;
  }
}
