/* ==========================================================================
   HypeWave Pets — Global Styles
   ========================================================================== */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--hw-font-body);
    font-size: var(--hw-fs-base);
    color: var(--hw-text);
    background-color: var(--hw-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--hw-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--hw-text);
    margin-bottom: var(--hw-space-md);
}

h1 { font-size: var(--hw-fs-5xl); }
h2 { font-size: var(--hw-fs-4xl); }
h3 { font-size: var(--hw-fs-3xl); }
h4 { font-size: var(--hw-fs-2xl); }
h5 { font-size: var(--hw-fs-xl); }
h6 { font-size: var(--hw-fs-lg); }

p {
    margin-bottom: var(--hw-space-md);
    color: var(--hw-text-light);
    line-height: 1.7;
}

a {
    color: var(--hw-primary);
    text-decoration: none;
    transition: var(--hw-transition);
}

a:hover {
    color: var(--hw-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Container ---- */
.hw-container {
    max-width: var(--hw-container);
    margin: 0 auto;
    padding: 0 var(--hw-space-xl);
}

.hw-container-sm {
    max-width: var(--hw-container-sm);
    margin: 0 auto;
    padding: 0 var(--hw-space-xl);
}

/* ---- Buttons ---- */
.hw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--hw-font-heading);
    font-weight: 600;
    font-size: var(--hw-fs-base);
    border: none;
    border-radius: var(--hw-radius-md);
    cursor: pointer;
    transition: var(--hw-transition);
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.025em;
}

.hw-btn-primary {
    background-color: var(--hw-primary);
    color: var(--hw-white);
    box-shadow: 0 4px 14px rgba(43, 109, 255, 0.3);
}

.hw-btn-primary:hover {
    background-color: var(--hw-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 109, 255, 0.4);
    color: var(--hw-white);
}

.hw-btn-secondary {
    background-color: var(--hw-white);
    color: var(--hw-primary);
    border: 2px solid var(--hw-primary);
}

.hw-btn-secondary:hover {
    background-color: var(--hw-primary);
    color: var(--hw-white);
    transform: translateY(-2px);
}

.hw-btn-dark {
    background-color: var(--hw-text);
    color: var(--hw-white);
}

.hw-btn-dark:hover {
    background-color: #333333;
    transform: translateY(-2px);
    color: var(--hw-white);
}

.hw-btn-lg {
    padding: 18px 40px;
    font-size: var(--hw-fs-lg);
}

.hw-btn-sm {
    padding: 10px 24px;
    font-size: var(--hw-fs-sm);
}

.hw-btn-full {
    width: 100%;
}

/* ---- Announcement Bar ---- */
.hw-announcement-bar {
    background-color: var(--hw-primary);
    color: var(--hw-white);
    text-align: center;
    padding: 10px 20px;
    font-size: var(--hw-fs-sm);
    font-weight: 500;
    position: relative;
    z-index: 1000;
}

.hw-announcement-bar p {
    margin: 0;
    color: inherit;
}

/* ---- Free Shipping Bar ---- */
.hw-shipping-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--hw-white);
    border-top: 1px solid var(--hw-border);
    padding: 12px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px var(--hw-shadow);
    display: none;
}

.hw-shipping-bar.active {
    display: block;
}

.hw-shipping-bar-inner {
    max-width: var(--hw-container);
    margin: 0 auto;
    text-align: center;
}

.hw-shipping-bar p {
    margin: 0 0 6px;
    font-size: var(--hw-fs-sm);
    color: var(--hw-text);
}

.hw-shipping-progress {
    height: 6px;
    background-color: var(--hw-secondary);
    border-radius: 3px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.hw-shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hw-primary), #10B981);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ---- Trust Strip ---- */
.hw-trust-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--hw-space-2xl);
    padding: var(--hw-space-lg) var(--hw-space-xl);
    background-color: var(--hw-secondary);
    border-bottom: 1px solid var(--hw-border);
}

.hw-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--hw-fs-sm);
    font-weight: 500;
    color: var(--hw-text);
}

/* ---- Badges ---- */
.hw-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.hw-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--hw-radius-sm);
    font-size: var(--hw-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hw-badge-bestseller {
    background-color: #FEF3C7;
    color: #92400E;
}

.hw-badge-trending {
    background-color: #EBF5FF;
    color: #1E40AF;
}

.hw-badge-new {
    background-color: #D1FAE5;
    color: #065F46;
}

.hw-badge-sale {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* ---- Product Benefits (Single Product) ---- */
.hw-product-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: var(--hw-space-lg) 0;
    padding: var(--hw-space-lg);
    background-color: var(--hw-secondary);
    border-radius: var(--hw-radius-md);
}

.hw-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--hw-fs-sm);
    color: var(--hw-text);
}

.hw-benefit-icon {
    font-size: var(--hw-fs-lg);
}

/* ---- Buy Now Button ---- */
.hw-buy-now-btn {
    display: block;
    width: 100%;
    margin-top: 10px !important;
    background-color: #10B981 !important;
    color: var(--hw-white) !important;
    border: none !important;
    border-radius: var(--hw-radius-md) !important;
    font-family: var(--hw-font-heading) !important;
    font-weight: 700 !important;
    font-size: var(--hw-fs-lg) !important;
    padding: 16px !important;
    text-align: center;
    transition: var(--hw-transition);
    text-decoration: none;
}

.hw-buy-now-btn:hover {
    background-color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    color: var(--hw-white) !important;
}

/* ---- Section Styles ---- */
.hw-section {
    padding: var(--hw-space-4xl) 0;
}

.hw-section-title {
    text-align: center;
    margin-bottom: var(--hw-space-3xl);
}

.hw-section-title h2 {
    font-size: var(--hw-fs-4xl);
    margin-bottom: var(--hw-space-sm);
}

.hw-section-title p {
    font-size: var(--hw-fs-lg);
    color: var(--hw-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Countdown Timer ---- */
.hw-countdown {
    display: flex;
    align-items: center;
    gap: var(--hw-space-md);
    padding: var(--hw-space-md) var(--hw-space-lg);
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-radius: var(--hw-radius-md);
    margin: var(--hw-space-md) 0;
}

.hw-countdown-text {
    font-weight: 600;
    color: #92400E;
    font-size: var(--hw-fs-sm);
}

.hw-countdown-timer {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hw-countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--hw-white);
    padding: 6px 10px;
    border-radius: var(--hw-radius-sm);
    min-width: 42px;
}

.hw-countdown-number {
    font-family: var(--hw-font-heading);
    font-weight: 700;
    font-size: var(--hw-fs-lg);
    color: #92400E;
    line-height: 1;
}

.hw-countdown-label {
    font-size: 10px;
    color: #B45309;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hw-countdown-separator {
    font-weight: 700;
    color: #92400E;
    font-size: var(--hw-fs-lg);
}

/* ---- Checkout Trust Section ---- */
.hw-checkout-trust {
    margin-top: var(--hw-space-xl);
    padding: var(--hw-space-lg);
    background-color: var(--hw-secondary);
    border-radius: var(--hw-radius-md);
    text-align: center;
}

.hw-trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--hw-space-xl);
    margin-bottom: var(--hw-space-md);
    flex-wrap: wrap;
}

.hw-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--hw-fs-sm);
    font-weight: 500;
    color: var(--hw-text);
}

.hw-payment-icons {
    display: flex;
    justify-content: center;
    gap: var(--hw-space-md);
    margin-top: var(--hw-space-md);
}

.hw-payment-icons img {
    height: 30px;
    opacity: 0.7;
    transition: var(--hw-transition);
}

.hw-payment-icons img:hover {
    opacity: 1;
}

/* ---- Loading Skeleton ---- */
.hw-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: hw-shimmer 1.5s infinite;
    border-radius: var(--hw-radius-sm);
}

@keyframes hw-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---- WooCommerce Overrides ---- */
.woocommerce ul.products li.product {
    position: relative;
    border-radius: var(--hw-radius-lg);
    overflow: hidden;
    transition: var(--hw-transition);
    background: var(--hw-white);
    border: 1px solid var(--hw-border);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--hw-shadow);
    border-color: transparent;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--hw-font-heading);
    font-weight: 600;
    font-size: var(--hw-fs-base);
    color: var(--hw-text);
    padding: 0 var(--hw-space-md);
}

.woocommerce ul.products li.product .price {
    color: var(--hw-primary);
    font-family: var(--hw-font-heading);
    font-weight: 700;
    font-size: var(--hw-fs-lg);
    padding: 0 var(--hw-space-md);
}

.woocommerce ul.products li.product .price del {
    color: var(--hw-text-light);
    font-size: var(--hw-fs-sm);
}

.woocommerce ul.products li.product .button {
    background-color: var(--hw-primary) !important;
    color: var(--hw-white) !important;
    border-radius: var(--hw-radius-md) !important;
    font-family: var(--hw-font-heading) !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    margin: var(--hw-space-md) !important;
    width: calc(100% - 2 * var(--hw-space-md)) !important;
    transition: var(--hw-transition) !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--hw-primary-hover) !important;
    transform: translateY(-1px);
}

/* Single Product */
.woocommerce div.product .product_title {
    font-family: var(--hw-font-heading);
    font-size: var(--hw-fs-3xl);
    font-weight: 800;
    color: var(--hw-text);
}

.woocommerce div.product p.price {
    font-family: var(--hw-font-heading);
    font-weight: 700;
    font-size: var(--hw-fs-2xl);
    color: var(--hw-primary);
}

.woocommerce div.product p.price del {
    color: var(--hw-text-light);
    font-size: var(--hw-fs-lg);
}

.woocommerce div.product form.cart .button {
    background-color: var(--hw-primary) !important;
    color: var(--hw-white) !important;
    border-radius: var(--hw-radius-md) !important;
    font-family: var(--hw-font-heading) !important;
    font-weight: 700 !important;
    font-size: var(--hw-fs-lg) !important;
    padding: 16px 32px !important;
    width: 100%;
    transition: var(--hw-transition) !important;
}

.woocommerce div.product form.cart .button:hover {
    background-color: var(--hw-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(43, 109, 255, 0.3);
}

/* WooCommerce notices */
.woocommerce-message {
    border-top-color: var(--hw-primary) !important;
}

.woocommerce-message::before {
    color: var(--hw-primary) !important;
}

/* Star rating */
.woocommerce .star-rating span::before {
    color: #F59E0B !important;
}

.woocommerce .star-rating::before {
    color: #E5E7EB !important;
}