/**
 * Shreeshop - Professional WooCommerce Custom Styles
 */

:root {
  --shreeshop-primary: #ff5722;
  --shreeshop-primary-hover: #e64a19;
  --shreeshop-primary-light: #fff2ed;
  --shreeshop-secondary: #0f172a;
  --shreeshop-accent: #2563eb;
  --shreeshop-success: #10b981;
  --shreeshop-warning: #f59e0b;
  --shreeshop-danger: #ef4444;
  --shreeshop-bg: #f8fafc;
  --shreeshop-surface: #ffffff;
  --shreeshop-border: #e2e8f0;
  --shreeshop-text: #1e293b;
  --shreeshop-text-muted: #64748b;
  --shreeshop-radius: 12px;
  --shreeshop-radius-sm: 8px;
  --shreeshop-radius-lg: 16px;
  --shreeshop-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shreeshop-shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   1. PRODUCT LOOP & GRID CARDS
   ========================================================= */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 24px !important;
  padding: 0 !important;
  margin: 0 0 40px 0 !important;
  list-style: none !important;
}

ul.products::before,
ul.products::after {
  display: none !important;
}

li.product.shreeshop-product-card-item,
li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.shreeshop-product-card {
  background: var(--shreeshop-surface);
  border-radius: var(--shreeshop-radius);
  border: 1px solid var(--shreeshop-border);
  box-shadow: var(--shreeshop-shadow);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.shreeshop-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shreeshop-shadow-hover);
  border-color: #cbd5e1;
}

.product-card-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.shreeshop-product-card:hover .product-thumb-link img {
  transform: scale(1.06);
}

/* Badges */
.shreeshop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 3;
}

.badge-sale {
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.badge-out-of-stock {
  top: auto;
  bottom: 12px;
  background: #334155;
  color: #ffffff;
}

/* Quick Action Hover Bar */
.product-quick-actions {
  position: absolute;
  top: 12px;
  right: -50px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 4;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shreeshop-product-card:hover .product-quick-actions {
  right: 12px;
}

.quick-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shreeshop-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.quick-action-btn:hover {
  background: var(--shreeshop-primary);
  color: #ffffff;
  transform: scale(1.1);
}

/* Card Body */
.product-card-body {
  padding: 16px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta-top {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--shreeshop-text-muted);
  margin-bottom: 6px;
}

.product-meta-top a {
  color: var(--shreeshop-text-muted);
  text-decoration: none;
}

.product-meta-top a:hover {
  color: var(--shreeshop-primary);
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

.product-title a {
  color: var(--shreeshop-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.product-title a:hover {
  color: var(--shreeshop-primary);
}

.product-rating-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.product-rating-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.product-rating-wrap .star-rating {
  font-size: 12px;
  color: #f59e0b;
}

.product-price-wrap {
  font-size: 16px;
  font-weight: 700;
  color: var(--shreeshop-secondary);
}

.product-price-wrap del {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 400;
  margin-right: 4px;
}

.product-price-wrap ins {
  color: var(--shreeshop-primary);
  text-decoration: none;
}

/* Loop Add to Cart Button */
.product-add-to-cart-wrap {
  margin-top: 14px;
}

.product-add-to-cart-wrap a.button,
.product-add-to-cart-wrap button.button {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--shreeshop-bg-light) !important;
  color: var(--shreeshop-secondary) !important;
  border: 1px solid var(--shreeshop-border) !important;
  border-radius: var(--shreeshop-radius-sm) !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.product-add-to-cart-wrap a.button:hover,
.product-add-to-cart-wrap button.button:hover {
  background: var(--shreeshop-primary) !important;
  color: #ffffff !important;
  border-color: var(--shreeshop-primary) !important;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.25);
}

/* =========================================================
   2. SINGLE PRODUCT PAGE
   ========================================================= */
.single-product div.product {
  background: var(--shreeshop-surface);
  border-radius: var(--shreeshop-radius-lg);
  padding: 30px;
  box-shadow: var(--shreeshop-shadow);
  border: 1px solid var(--shreeshop-border);
  margin-bottom: 40px;
}

.single-product .product_title {
  font-size: 26px;
  font-weight: 800;
  color: var(--shreeshop-secondary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.single-product p.price,
.single-product span.price {
  font-size: 24px;
  font-weight: 800;
  color: var(--shreeshop-primary);
}

.single-product p.price del {
  color: var(--shreeshop-text-muted);
  font-size: 18px;
  font-weight: 400;
  margin-right: 8px;
}

/* Trust Badges on Single Product */
.shreeshop-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 24px 0;
  padding: 16px;
  background: var(--shreeshop-bg-light);
  border-radius: var(--shreeshop-radius-sm);
  border: 1px solid var(--shreeshop-border);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-badge-item i {
  font-size: 22px;
  color: var(--shreeshop-primary);
}

.trust-badge-item .badge-text strong {
  display: block;
  font-size: 12px;
  color: var(--shreeshop-secondary);
}

.trust-badge-item .badge-text span {
  font-size: 11px;
  color: var(--shreeshop-text-muted);
}

/* Sticky Add to Cart Bar */
.shreeshop-sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--shreeshop-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  z-index: 999;
  display: none;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sticky-cart-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-cart-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-cart-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.sticky-cart-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--shreeshop-secondary);
}

.sticky-cart-info .price {
  font-size: 14px;
  font-weight: 700;
  color: var(--shreeshop-primary);
}

/* Single Product Add to Cart Form */
.single-product form.cart {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 24px 0;
}

.single-product form.cart .quantity input.qty {
  width: 60px;
  height: 48px;
  border-radius: var(--shreeshop-radius-sm);
  border: 1px solid var(--shreeshop-border);
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}

.single-product form.cart .single_add_to_cart_button {
  background: linear-gradient(135deg, var(--shreeshop-primary), #f43f5e) !important;
  color: #ffffff !important;
  border-radius: var(--shreeshop-radius-sm) !important;
  height: 48px;
  padding: 0 30px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.single-product form.cart .single_add_to_cart_button:hover {
  background: linear-gradient(135deg, var(--shreeshop-primary-hover), #e11d48) !important;
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
  transform: translateY(-2px);
}

/* =========================================================
   3. CHECKOUT & CART ENHANCEMENTS
   ========================================================= */
.woocommerce-checkout #customer_details {
  background: var(--shreeshop-surface);
  border-radius: var(--shreeshop-radius);
  padding: 24px;
  box-shadow: var(--shreeshop-shadow);
  border: 1px solid var(--shreeshop-border);
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  background: #ffffff;
  border-radius: var(--shreeshop-radius);
  padding: 24px;
  box-shadow: var(--shreeshop-shadow);
  border: 1px solid var(--shreeshop-border);
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select {
  border-radius: var(--shreeshop-radius-sm);
  border: 1px solid var(--shreeshop-border);
  padding: 10px 14px;
  height: 44px;
}

#place_order {
  background: linear-gradient(135deg, var(--shreeshop-primary), #f43f5e) !important;
  color: #ffffff !important;
  border-radius: var(--shreeshop-radius-sm) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  width: 100% !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

/* =========================================================
   4. MOBILE BOTTOM NAVIGATION BAR
   ========================================================= */
.shreeshop-mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--shreeshop-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  padding: 8px 0;
}

@media (max-width: 768px) {
  .shreeshop-mobile-bottom-bar {
    display: block;
  }
  body {
    padding-bottom: 60px;
  }
  .shreeshop-trust-badges {
    grid-template-columns: 1fr;
  }
}

.mobile-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-bottom-nav li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--shreeshop-text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
}

.mobile-bottom-nav li a i {
  font-size: 18px;
  margin-bottom: 2px;
}

.mobile-bottom-nav li a.active,
.mobile-bottom-nav li a:hover {
  color: var(--shreeshop-primary);
}

.mobile-bottom-nav .mobile-cart-badge {
  position: absolute;
  top: -4px;
  right: 6px;
  background: var(--shreeshop-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
