/*
Theme Name: Keyball
Theme URI: https://keyball.local
Author: Keyball Team
Author URI: https://keyball.local
Description: A custom WordPress theme for Keyball
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keyball
Tags: custom, responsive, modern
*/

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.site-branding {
  flex-shrink: 0;
  margin-left: 320px;
}

.custom-logo {
  height: 40px !important;
  width: auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1a365d;
}

.logo-icon {
  font-size: 24px;
  color: #1a365d;
}

.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: #1a365d;
}

.logo-subtext {
  font-size: 10px;
  color: #666;
  display: block;
  margin-top: -5px;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 500px;
}

.header-search form {
  display: flex;
  border: none;
  border-radius: 20px;
  overflow: hidden;
}

.header-search input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  outline: none;
  font-size: 14px;
}

.header-search button {
  background: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  color: #1a365d;
}

/* Header Icons */
.header-icons {
  display: flex;
  gap: 20px;
}

.header-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  gap: 4px;
}

.header-icon-link:hover {
  color: #fbbf24;
}

/* Main Layout */
.site-main {
  /* padding: 20px 0; */
}

.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 20px;
}

/* Left Sidebar */
.sidebar-left .sidebar-main-title {
  color: #fff;
  padding: 14px 16px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-left .widget {
  margin: 0;
  padding: 0;
}

/* Main Content */
.sidebar-left,
.sidebar-right {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  height: calc(100vh - 120px);
  overflow-y: auto;
  margin-top: 10px;
}
.main-content {
  height: calc(100vh - 120px);
  overflow-y: auto;
  margin-top: 10px;
}
.sidebar-left {
  margin-top: -51px;
  z-index: 9999;
  height: calc(100vh - 60px);
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.content-banner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Right Sidebar */
.sidebar-right {
  display: flex;
  flex-direction: column;
}

.sidebar-right .widget {
  background: #fff;
  padding: 20px 10px;
}

/* Footer */
.site-footer {
  background: #1a365d;
  color: #fff;
  padding: 30px 0;
  margin-top: 40px;
}

.site-footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* Archive & Search Styles */
.archive-header,
.page-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
}

.page-title {
  font-size: 28px;
  color: #1f2937;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.page-title span {
  color: #dc2626;
}

.archive-description {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}
.woocommerce-MyAccount-content {
  width: 100% !important;
}

/* Product Cards */
.product-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 100%;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #ffffff;
}

.product-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-content {
  padding: 20px;
  text-align: left;
}
.product-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 15px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-actions {
  width: 100%;
  text-align: right;
}
.product-card-category {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.product-view-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #ea6666 0%, #a24b4b 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ==================== ARCHIVE PRODUCT LOOP ==================== */
.product-card-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-card-modern {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Wishlist */
.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.wishlist-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.wishlist-btn svg {
  color: #64748b;
  transition: color 0.3s ease;
}

.wishlist-btn:hover svg {
  color: #ef4444;
}

/* Product Image */
.product-card-image-wrapper {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.product-card-image-link {
  display: block;
  position: relative;
  padding-top: 100%;
  overflow: hidden;
}

.product-card-image-link img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Badge */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

.product-badge.on-sale {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

.product-badge.out-of-stock {
  background: #64748b;
  color: #fff;
}

/* Product Info */
.product-card-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-info .product-card-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-info .product-card-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

.product-card-info .product-card-title a:hover {
  color: #3b82f6;
}

/* Price */
.product-card-price {
  margin: 0 0 12px 0;
}

.product-card-price .price {
  font-size: 18px;
  font-weight: 700;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card-price .price del {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 400;
}

.product-card-price .price ins {
  text-decoration: none;
}

/* Attributes */
.product-card-attributes {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attribute-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.attribute-label {
  font-weight: 600;
  color: #475569;
  font-size: 12px;
  white-space: nowrap;
}

.attribute-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attribute-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.attribute-badge:hover {
  background: #e2e8f0;
  color: #475569;
}

/* Description */
.product-card-description {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

/* Actions */
.product-card-actions {
  margin-top: auto;
  text-align: left;
}

.product-card-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.product-card-actions .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.product-card-actions .added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  background: #10b981;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.product-card-actions .added_to_cart:hover {
  background: #059669;
}

/* Responsive */
@media (max-width: 1024px) {
  .products {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card-info {
    padding: 16px;
  }

  .product-card-info .product-card-title {
    font-size: 14px;
  }

  .product-card-price .price {
    font-size: 16px;
  }

  .product-card-description {
    font-size: 12px;
  }

  .product-card-actions .button {
    padding: 10px 20px;
    font-size: 13px;
  }

  .wishlist-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .products {
    grid-template-columns: 1fr;
  }
}

/* ==================== CART PAGE ==================== */

.keyball-cart-page {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.keyball-cart-page .woocommerce-cart-form {
  height: 100%;
  overflow-y: auto;
}
.cart-page-header {
  background: #fff;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.cart-page-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Empty Cart State */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  flex: 1;
  background: #f9fafb;
}

.cart-empty-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cart-empty-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cart-empty-message {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 24px 0;
}

.btn-continue-shopping {
  display: inline-block;
  padding: 12px 24px;
  background: #b91c1c;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-continue-shopping:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Cart Items List */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  background: #fff;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

.cart-item:hover {
  background: #f9fafb;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.cart-item-name a {
  color: #111827;
  text-decoration: none;
}

.cart-item-name a:hover {
  color: #b91c1c;
}

.cart-item-variation {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.cart-item-price-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.quantity-label {
  font-weight: 400;
  color: #6b7280;
}

.cart-item-total {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.cart-item-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.cart-item-actions a {
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-item-actions .remove-item:hover {
  color: #ef4444;
}

.cart-item-actions .edit-item:hover {
  color: #3b82f6;
}

/* Cart Actions */
.cart-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  gap: 12px;
  flex-wrap: wrap;
}

.coupon-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 250px;
}

.coupon-wrapper label {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}

.coupon-wrapper input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
}

.coupon-wrapper button,
.cart-actions-row > button {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coupon-wrapper button:hover,
.cart-actions-row > button:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Cart Totals */
.cart-totals-wrapper {
  background: #fff;
  border-top: 2px solid #e5e7eb;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.cart-collaterals {
  padding: 16px;
}

.cart-totals {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.cart-total-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.cart-total-amount {
  font-size: 20px;
  font-weight: 700;
  color: #ef4444;
}

.cart-total-amount .woocommerce-Price-amount {
  font-weight: 700;
}

.proceed-to-checkout .checkout-button,
.wc-block-cart__submit-container .wc-block-cart__submit-button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background-color: #b91c1c !important;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.proceed-to-checkout .checkout-button:hover,
.wc-block-cart__submit-container .wc-block-cart__submit-button:hover {
  background-color: #b91c1c !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

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

/* Product Container */
.woocommerce div.product {
  margin: 0 auto;
  padding: 20px;
}

/* Product Images */
.woocommerce div.product .woocommerce-product-gallery {
  position: relative;
}

.woocommerce div.product .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.woocommerce div.product .woocommerce-product-gallery__image {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
}

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

.woocommerce div.product .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.woocommerce div.product .flex-control-thumbs li {
  margin: 0;
  list-style: none;
}

.woocommerce div.product .flex-control-thumbs li img {
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.woocommerce div.product .flex-control-thumbs li img:hover,
.woocommerce div.product .flex-control-thumbs li img.flex-active {
  border-color: #b91c1c;
}

/* Sale Badge */
.woocommerce span.onsale {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

/* Product Summary */
.woocommerce div.product .summary {
  padding: 20px 0;
}

/* Product Title */
.woocommerce div.product .product_title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

/* Rating */
.woocommerce div.product .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.woocommerce div.product .star-rating {
  font-size: 16px;
}

.woocommerce div.product .woocommerce-review-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
}

.woocommerce div.product .woocommerce-review-link:hover {
  color: #b91c1c;
}

/* Price */
.woocommerce div.product p.price {
  font-size: 32px;
  font-weight: 700;
  color: #ef4444;
  margin: 0 0 20px 0;
}

.woocommerce div.product p.price del {
  font-size: 20px;
  color: #9ca3af;
  font-weight: 400;
  margin-right: 8px;
}

.woocommerce div.product p.price ins {
  text-decoration: none;
  color: #ef4444;
}

/* Short Description */
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #b91c1c;
}

/* Variations */
.woocommerce div.product form.cart .variations {
  margin-bottom: 24px;
  border: none;
}

.woocommerce div.product form.cart .variations td {
  padding: 8px 0;
  border: none;
  display: block;
}

.woocommerce div.product form.cart .variations label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
  display: block;
}

.woocommerce div.product form.cart .variations select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.woocommerce div.product form.cart .variations select:hover {
  border-color: #b91c1c;
}

.woocommerce div.product form.cart .variations select:focus {
  outline: none;
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Quantity & Add to Cart */
.woocommerce div.product form.cart {
  margin-bottom: 24px;
}

.woocommerce div.product form.cart .quantity {
  display: inline-block;
}

.woocommerce div.product form.cart .quantity input {
  width: 80px;
  height: 52px;
  padding: 0 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
  height: 52px;
  background: #b91c1c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Product Meta */
.woocommerce div.product .product_meta {
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
}

.woocommerce div.product .product_meta > span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #6b7280;
}

.woocommerce div.product .product_meta a {
  color: #b91c1c;
  text-decoration: none;
}

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

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
  margin-top: 40px;
  grid-column: 1 / -1;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 24px 0;
  list-style: none;
  border-bottom: 2px solid #e5e7eb;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 24px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:hover a {
  color: #b91c1c;
  background: #fef2f2;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #b91c1c;
  background: #fef2f2;
  border-bottom: 2px solid #b91c1c;
}

.woocommerce div.product .woocommerce-tabs .panel {
  padding: 24px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}

/* Related Products */
.woocommerce .related.products h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .woocommerce div.product .product_title {
    font-size: 24px;
  }

  .woocommerce div.product p.price {
    font-size: 28px;
  }

  .woocommerce div.product .flex-control-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .woocommerce div.product form.cart .quantity input {
    width: 60px;
  }

  .woocommerce div.product form.cart button.single_add_to_cart_button {
    padding: 0 24px;
    font-size: 14px;
  }
  .keyball-cart-page {
    max-width: 100%;
  }
  .cart-item-total {
    position: static;
    margin-top: 8px;
  }
  .main-content {
    overflow: unset;
    height: auto;
  }
  .sidebar-left,
  .sidebar-right {
    display: none;
  }
  .sidebar-right-home {
    display: block;
    height: auto;
    box-shadow: unset;
    border-radius: unset;
    background: unset;
  }
  .sidebar-right-home .widget {
    background: unset;
    padding: 10px 0;
  }
  .main-container {
    grid-template-columns: 1fr;
  }
  .site-branding {
    margin-left: 20px;
  }
  .header-icons {
    display: none;
  }
}

/* ==================== MOBILE BOTTOM NAVIGATION ==================== */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  flex: 1;
}

.mobile-bottom-nav .nav-item .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.mobile-bottom-nav .nav-item > span:last-child {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.mobile-bottom-nav .nav-item:active {
  transform: scale(0.95);
}

.mobile-bottom-nav .nav-item.active {
  color: #3b82f6;
}

.mobile-bottom-nav .nav-item.active .dashicons {
  color: #3b82f6;
}

.mobile-bottom-nav .cart-count {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(24px);
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }
}

/* ==================== 404 ERROR PAGE ==================== */

.error-404 {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.error-404 .container {
  max-width: 600px;
  margin: 0 auto;
}

.error-404 .error-content {
  background: #fff;
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-404 h1 {
  font-size: 120px;
  font-weight: 900;
  margin: 0;
  color: #ef4444;
}

.error-404 h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 20px 0 16px 0;
}

.error-404 p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.error-404 .btn {
  display: inline-block;
  padding: 14px 32px;
  background: #ef4444;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.error-404 .btn:hover {
  transform: translateY(-2px);
}

.error-404 .btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .error-404 {
    padding: 40px 20px;
  }

  .error-404 .error-content {
    padding: 40px 24px;
  }

  .error-404 h1 {
    font-size: 80px;
  }

  .error-404 h2 {
    font-size: 22px;
  }

  .error-404 p {
    font-size: 14px;
  }

  .error-404 .btn {
    padding: 12px 28px;
    font-size: 14px;
  }
}

/* ==================== USER GREETING BLOCK ==================== */

.user-greeting-block {
  margin: 20px 0;
  display: none;
}

.user-info-widget .user-greeting-block {
  display: block;
}

.user-greeting-block .greeting-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
}

.user-greeting-block .greeting-text {
  font-weight: 400;
}

.user-greeting-block .user-name {
  font-weight: 600;
}

.user-greeting-block .login-link,
.user-greeting-block .login-link-preview {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: transparent;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.user-greeting-block .login-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-greeting-block .login-link-preview {
  cursor: default;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .user-greeting-block {
    display: block;
  }
  .user-info-widget .user-greeting-block {
    display: none;
  }
}

/* ==================== DASHBOARD CUSTOMER INFO ==================== */

.keyball-dashboard-container {
  max-width: 800px;
  margin: 0 auto;
}

.dashboard-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  padding: 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.info-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* User Info Header */
.info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.user-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  display: block;
  margin-bottom: 4px;
}

.user-phone {
  font-size: 16px;
  color: #475569;
}

.info-actions {
  display: flex;
  gap: 16px;
}

.action-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.action-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.action-link.logout {
  color: #3b82f6;
}

/* Info Rows */
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 16px;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row:first-child {
  padding-top: 0;
}

.info-label {
  font-weight: 400;
  color: #64748b;
  font-size: 14px;
  flex-shrink: 0;
}

.info-value {
  color: #1e293b;
  font-size: 14px;
  text-align: right;
  flex: 1;
}

.info-value-action {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  flex: 1;
}

.info-value-action span {
  color: #1e293b;
  font-size: 14px;
}

/* ==================== LOGIN PAGE ==================== */

.keyball-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  margin-bottom: 16px;
}

.login-logo img {
  max-width: 180px;
  height: auto;
}

.login-site-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}

/* Error Message */
.login-error {
  padding: 14px 16px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 14px;
  margin-bottom: 24px;
}

.login-error svg {
  color: #ef4444;
}

/* Form */
.login-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #334155;
  font-size: 14px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper svg {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  color: #1e293b;
  transition: all 0.3s ease;
  background: #fff;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #ea6666;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-wrapper input::placeholder {
  color: #cbd5e1;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #475569;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.forgot-password {
  color: #ea6666;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.forgot-password:hover {
  color: #ea6666;
  text-decoration: underline;
}

/* Login Button */
.login-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: #ea6666;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.login-button svg {
  transition: transform 0.3s ease;
}

.login-button:hover svg {
  transform: translateX(4px);
}

/* Footer */
.login-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.login-footer p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.login-footer a {
  color: #ea6666;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.login-footer a:hover {
  color: #ea6666;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .keyball-login-page {
    padding: 16px;
  }

  .login-card {
    padding: 32px 24px;
  }

  .login-site-title {
    font-size: 24px;
  }

  .login-subtitle {
    font-size: 14px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==================== SEARCH PAGE ==================== */
.page-header {
  text-align: center;
  margin-bottom: 20px;
}

.page-header .page-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

/* Post Item */
.post-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Post Thumbnail */
.post-thumbnail {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  padding-top: 100%;
}

.post-thumbnail a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
  transform: scale(1.05);
}

/* Post Content */
.post-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-content .post-title {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.post-content .post-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

.post-content .post-title a:hover {
  color: #ef4444;
}

/* Post Meta */
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 14px;
}

.post-meta .post-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-meta .post-date:before {
  content: "📅";
  font-size: 14px;
}

/* Post Excerpt */
.post-excerpt {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More Button */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.read-more:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 12px;
}

.no-results p {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 30px;
  line-height: 1.6;
}

.no-results .search-form {
  max-width: 500px;
  margin: 0 auto;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination .page-numbers {
  padding: 10px 16px;
  background: #fff;
  color: #64748b;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  border: 2px solid #e2e8f0;
}

.pagination .page-numbers:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border-color: #ef4444;
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.pagination .page-numbers.dots:hover {
  background: transparent;
}

.sidebar-right .woocommerce-notices-wrapper {
  padding: 10px;
}
.sidebar-right .woocommerce-notices-wrapper .woocommerce-message {
  border-radius: 20px;
}
.wc-block-components-checkout-place-order-button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background-color: #b91c1c !important;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wc-block-components-checkout-place-order-button:hover {
  background-color: #991b1b !important;
}
.search-field {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  color: #1e293b;
  background-color: #fff;
  transition: all 0.2s ease;
  outline: none;
}

.search-field:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.search-submit {
  padding: 12px 24px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  margin-top: 20px;
}

.search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}
.wc-block-components-quantity-selector {
  background: #ffffff;
}
.wc-block-components-main {
  padding: 20px 0;
}

.wc-block-components-sidebar {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.woocommerce table.my_account_orders td,
.woocommerce table.my_account_orders th {
  padding: 6px 12px;
}
.woocommerce table.shop_table {
  background: #ffffff;
}
