/*
Theme Name: Harpal Masti Child
Theme URI: https://harpalmasti.com
Description: Premium WooCommerce child theme for Harpal Masti store
Author: Harpal Masti
Author URI: https://harpalmasti.com
Template: hello-elementor
Version: 2.0.0
Text Domain: harpal-masti-child
*/

/* =====================================================
   VARIABLES & BASE
   ===================================================== */
:root {
  --hm-primary: #e94560;
  --hm-primary-dark: #c73650;
  --hm-secondary: #0f0e17;
  --hm-accent: #16213e;
  --hm-gold: #ffd700;
  --hm-success: #00c853;
  --hm-text: #2d2d2d;
  --hm-text-light: #6b7280;
  --hm-bg: #ffffff;
  --hm-bg-alt: #f8fafc;
  --hm-border: #e5e7eb;
  --hm-radius: 12px;
  --hm-radius-sm: 8px;
  --hm-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --hm-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --hm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --hm-container: 1200px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--hm-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hm-container {
  max-width: var(--hm-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   ANNOUNCEMENT BAR
   ===================================================== */
.hm-announcement-bar {
  background: linear-gradient(135deg, var(--hm-secondary) 0%, #1a1a2e 100%);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  position: relative;
}

.hm-announcement-scroll {
  display: flex;
  gap: 40px;
  animation: scrollAnnouncement 20s linear infinite;
  white-space: nowrap;
}

.hm-announcement-scroll span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@keyframes scrollAnnouncement {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   HEADER
   ===================================================== */
.hm-header {
  background: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-bottom: 1px solid var(--hm-border);
}

.hm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.hm-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.hm-logo-icon {
  font-size: 28px;
}

.hm-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--hm-secondary);
}

.hm-logo-text span {
  color: var(--hm-primary);
}

/* Navigation */
.hm-nav .hm-nav-list,
.hm-nav .menu {
  display: flex;
  list-style: none;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.hm-nav .hm-nav-list li a,
.hm-nav .menu li a {
  display: block;
  padding: 8px 14px;
  color: var(--hm-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--hm-radius-sm);
  transition: var(--hm-transition);
}

.hm-nav .hm-nav-list li a:hover,
.hm-nav .menu li a:hover {
  color: var(--hm-primary);
  background: rgba(233,69,96,0.06);
}

/* Header Actions */
.hm-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hm-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--hm-bg-alt);
  color: var(--hm-text);
  text-decoration: none;
  transition: var(--hm-transition);
}

.hm-cart-btn:hover {
  background: var(--hm-primary);
  color: #fff;
}

.hm-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--hm-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Toggle */
.hm-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hm-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--hm-text);
  border-radius: 2px;
  transition: var(--hm-transition);
}

/* Mobile Nav */
.hm-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 10000;
  padding: 25px;
  transition: right 0.4s ease;
  box-shadow: var(--hm-shadow-lg);
  overflow-y: auto;
}

.hm-mobile-nav.active {
  right: 0;
}

.hm-mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hm-border);
}

.hm-mobile-close {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hm-text);
}

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

.hm-mobile-nav-list li a {
  display: block;
  padding: 14px 0;
  color: var(--hm-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--hm-border);
  transition: var(--hm-transition);
}

.hm-mobile-nav-list li a:hover {
  color: var(--hm-primary);
  padding-left: 10px;
}

/* =====================================================
   WOOCOMMERCE - PRODUCT CARDS
   ===================================================== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  border-radius: var(--hm-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--hm-shadow);
  transition: var(--hm-transition);
  padding: 0 !important;
  position: relative;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-8px);
  box-shadow: var(--hm-shadow-lg);
}

.woocommerce ul.products li.product a img {
  border-radius: 0;
  margin: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 12px 15px 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hm-text);
  line-height: 1.4;
}

.woocommerce ul.products li.product .price {
  padding: 0 15px 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--hm-primary);
}

.woocommerce ul.products li.product .price del {
  color: var(--hm-text-light);
  font-size: 13px;
  font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: var(--hm-primary);
  font-weight: 700;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
  display: block;
  margin: 0 15px 15px !important;
  background: linear-gradient(135deg, var(--hm-primary), var(--hm-primary-dark)) !important;
  color: #fff !important;
  border-radius: 25px !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--hm-transition) !important;
  border: none !important;
}

.woocommerce ul.products li.product .button:hover {
  background: linear-gradient(135deg, var(--hm-primary-dark), #a02040) !important;
  transform: scale(1.02);
}

/* Sale Badge */
.woocommerce span.onsale {
  background: linear-gradient(135deg, var(--hm-primary), #ff6b6b) !important;
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  min-width: auto;
  min-height: auto;
  line-height: 1.4;
  top: 10px;
  left: 10px;
  right: auto;
}

/* Single Product */
.woocommerce div.product .product_title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--hm-secondary);
  margin-bottom: 10px;
}

.woocommerce div.product p.price {
  font-size: 28px;
  color: var(--hm-primary);
  font-weight: 700;
}

.woocommerce .single_add_to_cart_button {
  background: linear-gradient(135deg, var(--hm-primary), var(--hm-primary-dark)) !important;
  color: #fff !important;
  border-radius: 30px !important;
  padding: 15px 40px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--hm-transition) !important;
  border: none !important;
}

.woocommerce .single_add_to_cart_button:hover {
  background: linear-gradient(135deg, var(--hm-primary-dark), #a02040) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233,69,96,0.3);
}

/* Product Trust Badges */
.hm-product-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 25px;
  background: var(--hm-bg-alt);
  border-radius: var(--hm-radius);
  margin: 30px 0;
  border: 1px solid var(--hm-border);
}

.hm-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hm-text);
}

.hm-trust-item span {
  font-size: 20px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.hm-footer {
  margin-top: 60px;
}

.hm-footer-top {
  background: var(--hm-secondary);
  padding: 60px 0 40px;
}

.hm-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.hm-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.hm-footer-logo .hm-logo-text {
  color: #fff;
}

.hm-footer-desc {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.hm-footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 10px;
}

.hm-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--hm-primary);
  border-radius: 2px;
}

.hm-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hm-footer-col ul li {
  margin-bottom: 10px;
}

.hm-footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: var(--hm-transition);
}

.hm-footer-col ul li a:hover {
  color: var(--hm-primary);
  padding-left: 5px;
}

.hm-footer-trust-item {
  color: #94a3b8;
  font-size: 13px;
  padding: 6px 0;
}

.hm-footer-bottom {
  background: #0a0a14;
  padding: 20px 0;
}

.hm-footer-bottom .hm-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.hm-footer-bottom p {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

.hm-footer-payments {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.hm-payment-icons {
  color: #94a3b8;
  font-weight: 500;
}

/* =====================================================
   WHATSAPP BUTTON
   ===================================================== */
.hm-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9999;
  transition: var(--hm-transition);
  animation: whatsappPulse 2s infinite;
}

.hm-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
  .hm-nav { display: none; }
  .hm-mobile-toggle { display: flex; }
  
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }
  
  .hm-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  
  .hm-footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hm-footer-bottom .hm-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hm-header-inner {
    gap: 10px;
  }
  
  .hm-logo-text {
    font-size: 20px;
  }
  
  .hm-product-trust {
    flex-direction: column;
    gap: 12px;
  }
}

/* =====================================================
   PAGE CONTENT STYLES
   ===================================================== */
.entry-content {
  padding-top: 0;
}

.wp-block-group.has-background {
  border-radius: 0;
}

.page .entry-header {
  display: none;
}

/* Hide duplicate announcement on homepage */
.hm-announcement-bar + .hm-header + .hm-mobile-nav + .site-main .wp-block-group:first-child {
  display: none;
}
