/**
 * HDM Homepage Styles v2.0
 * Premium Homepage Design with Pattern Integration
 * 
 * BRAND GUIDELINES:
 * Brown: #6A4532
 * Gold: #C89737
 * Cream: #FDF9F6
 * 
 * PATTERN ASSETS:
 * - Main Pattern: hdm-Pattern-01.png
 * - Secondary Icon: HDM-secondary-icon-01.png
 * 
 * INSTALLATION:
 * Save to: flatsome-child/assets/css/hdm-homepage.css
 */

/* ============================================================================
   CSS CUSTOM PROPERTIES
   ============================================================================ */

:root {
    --hdm-brown: #6A4532;
    --hdm-brown-dark: #4a2f22;
    --hdm-brown-light: #8B6249;
    --hdm-gold: #C89737;
    --hdm-gold-dark: #a87e2c;
    --hdm-gold-light: #D4A84A;
    --hdm-cream: #FDF9F6;
    --hdm-cream-dark: #F5EFE7;
    --hdm-white: #ffffff;
    --hdm-text: #2d2d2d;
    --hdm-text-muted: #6b7280;
    --hdm-border: #e5e7eb;
    --hdm-success: #10b981;
    --hdm-error: #dc2626;
    
    /* Pattern URLs - Update these with your actual URLs */
    --hdm-pattern-main: url('https://habeshadiasporamarket.co.uk/wp-content/uploads/2026/01/hdm-Pattern-01.png');
    --hdm-pattern-icon: url('https://habeshadiasporamarket.co.uk/wp-content/uploads/2026/01/HDM-secondary-icon-01.png');
}

/* ============================================================================
   GOOGLE FONTS
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ============================================================================
   HOMEPAGE BASE STYLES
   ============================================================================ */

.hdm-homepage {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--hdm-text);
    line-height: 1.6;
}

.hdm-homepage h1,
.hdm-homepage h2,
.hdm-homepage h3,
.hdm-homepage h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ============================================================================
   HERO SECTION WITH PATTERNS
   ============================================================================ */

.hdm-hero-wrapper {
    position: relative;
    overflow: hidden;
}

.hdm-hero-wrapper .ux-banner {
    position: relative;
}

/* Pattern decorations in hero */
.hdm-hero-wrapper::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 20%;
    width: 300px;
    height: 400px;
    background-image: var(--hdm-pattern-main);
    background-size: 120px;
    opacity: 0.08;
    border-radius: 20px;
    transform: rotate(-15deg);
    z-index: 1;
    animation: hdmFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.hdm-hero-wrapper::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: 10%;
    width: 250px;
    height: 250px;
    background-image: var(--hdm-pattern-icon);
    background-size: 80px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    border-radius: 50%;
    z-index: 1;
    animation: hdmRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes hdmFloat {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-12deg) translateY(-20px); }
}

@keyframes hdmRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Content */
.hdm-hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    animation: hdmFadeInUp 0.8s ease;
}

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

.hdm-hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--hdm-gold) 0%, var(--hdm-gold-dark) 100%);
    color: var(--hdm-white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(200, 151, 55, 0.4);
}

.hdm-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--hdm-brown);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hdm-hero-title span {
    color: var(--hdm-gold);
    position: relative;
}

.hdm-hero-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--hdm-gold), transparent);
    opacity: 0.3;
    border-radius: 4px;
}

.hdm-hero-subtitle {
    font-size: 1.25rem;
    color: var(--hdm-text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hdm-hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================================
   BUTTONS - BRAND ALIGNED
   ============================================================================ */

.hdm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.hdm-btn-primary {
    background: linear-gradient(135deg, var(--hdm-gold) 0%, var(--hdm-gold-dark) 100%);
    color: var(--hdm-white);
    box-shadow: 0 8px 25px rgba(200, 151, 55, 0.35);
}

.hdm-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(200, 151, 55, 0.45);
    color: var(--hdm-white);
}

.hdm-btn-secondary {
    background: var(--hdm-white);
    color: var(--hdm-brown);
    border: 2px solid var(--hdm-brown);
}

.hdm-btn-secondary:hover {
    background: var(--hdm-brown);
    color: var(--hdm-white);
}

/* ============================================================================
   SECTION HEADERS WITH PATTERN ACCENTS
   ============================================================================ */

.hdm-section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.hdm-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--hdm-gold) 0%, var(--hdm-gold-dark) 100%);
    color: var(--hdm-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.hdm-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--hdm-brown);
    margin-bottom: 12px;
}

.hdm-section-subtitle {
    font-size: 1.1rem;
    color: var(--hdm-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================================
   PRODUCT GRID - ULTRA RESPONSIVE
   ============================================================================ */

.hdm-products-grid {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Column variations */
.hdm-products-grid.hdm-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hdm-products-grid.hdm-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hdm-products-grid.hdm-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.hdm-products-grid.hdm-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* ============================================================================
   PRODUCT CARD - BRAND ALIGNED
   ============================================================================ */

.hdm-product-card {
    background: var(--hdm-white);
    border: 1px solid var(--hdm-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(106, 69, 50, 0.06);
}

.hdm-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(106, 69, 50, 0.15);
    border-color: var(--hdm-gold);
}

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

/* Product Image */
.hdm-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--hdm-cream);
}

.hdm-product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hdm-product-picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

.hdm-product-card:hover .hdm-product-img {
    transform: scale(1.08);
}

/* Badges */
.hdm-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--hdm-gold) 0%, var(--hdm-gold-dark) 100%);
    color: var(--hdm-white);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(200, 151, 55, 0.4);
}

.hdm-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--hdm-brown) 0%, var(--hdm-brown-dark) 100%);
    color: var(--hdm-white);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.hdm-preorder-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* Hover Overlay */
.hdm-product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(106, 69, 50, 0.92) 0%,
        rgba(106, 69, 50, 0.6) 40%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.hdm-product-card:hover .hdm-product-overlay {
    opacity: 1;
}

.hdm-product-actions {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 0;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.hdm-product-card:hover .hdm-product-actions {
    transform: translateY(0);
}

/* Action Buttons */
.hdm-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--hdm-brown);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    pointer-events: auto !important;
    z-index: 10;
}

.hdm-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hdm-btn-icon {
    font-size: 26px;
    line-height: 1;
}

.hdm-btn-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Customize Button - Purple */
.hdm-btn-customize {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: var(--hdm-white);
}

.hdm-btn-customize:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    color: var(--hdm-white);
}

/* Add to Cart Button - Gold */
.hdm-btn-add-cart {
    background: linear-gradient(135deg, var(--hdm-gold) 0%, var(--hdm-gold-dark) 100%);
    color: var(--hdm-white);
}

.hdm-btn-add-cart:hover {
    background: linear-gradient(135deg, var(--hdm-gold-dark) 0%, #8a6623 100%);
    color: var(--hdm-white);
}

.hdm-btn-add-cart.loading {
    opacity: 0.7;
    cursor: wait;
}

.hdm-btn-add-cart.added {
    background: linear-gradient(135deg, var(--hdm-success) 0%, #059669 100%);
}

/* View Details Button */
.hdm-btn-view {
    background: rgba(255, 255, 255, 0.98);
    color: var(--hdm-brown);
}

.hdm-btn-view:hover {
    background: var(--hdm-cream);
    color: var(--hdm-gold);
}

/* Mobile Quick Add */
.hdm-mobile-quick-add {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--hdm-gold) 0%, var(--hdm-gold-dark) 100%);
    border: 3px solid var(--hdm-white);
    border-radius: 50%;
    color: var(--hdm-white);
    font-size: 22px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(200, 151, 55, 0.5);
    z-index: 3;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hdm-mobile-quick-add:active {
    transform: scale(0.92);
}

.hdm-mobile-quick-add.loading {
    background: #9ca3af;
    pointer-events: none;
}

.hdm-mobile-quick-add.added {
    background: var(--hdm-success);
}

.hdm-mobile-customize {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

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

.hdm-product-title-link {
    text-decoration: none;
    color: inherit;
}

.hdm-product-title-link:hover {
    color: var(--hdm-gold);
}

.hdm-product-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--hdm-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    transition: color 0.2s ease;
}

.hdm-product-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--hdm-brown);
    margin-top: auto;
}

.hdm-product-price del {
    color: #9ca3af;
    font-weight: 400;
    margin-right: 8px;
    font-size: 14px;
}

.hdm-product-price ins {
    text-decoration: none;
    color: var(--hdm-gold);
}

/* Out of Stock */
.hdm-product-card.out-of-stock {
    opacity: 0.75;
}

.hdm-product-card.out-of-stock .hdm-product-img {
    filter: grayscale(30%);
}

/* No Products Message */
.hdm-no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--hdm-text-muted);
    font-size: 1.1rem;
    background: var(--hdm-cream);
    border-radius: 12px;
    grid-column: 1 / -1;
}

/* ============================================================================
   VALUE PROPOSITIONS SECTION
   ============================================================================ */

.hdm-value-props {
    position: relative;
    overflow: hidden;
}

/* Pattern decoration */
.hdm-value-props::before {
    content: '';
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
    background-image: var(--hdm-pattern-main);
    background-size: 100px;
    opacity: 0.06;
    border-radius: 50%;
    animation: hdmRotate 25s linear infinite;
    pointer-events: none;
}

.hdm-value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.hdm-value-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.hdm-value-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.hdm-value-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.hdm-value-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--hdm-white);
    margin-bottom: 8px;
}

.hdm-value-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
   VENDOR CTA SECTION WITH PATTERNS
   ============================================================================ */

.hdm-vendor-cta {
    position: relative;
    overflow: hidden;
}

/* Multiple pattern layers */
.hdm-vendor-cta::before {
    content: '';
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    width: 300px;
    height: 400px;
    background-image: var(--hdm-pattern-main);
    background-size: 100px;
    opacity: 0.05;
    border-radius: 20px;
    pointer-events: none;
}

.hdm-vendor-cta::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: 20%;
    width: 200px;
    height: 200px;
    background-image: var(--hdm-pattern-icon);
    background-size: 60px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    animation: hdmFloat 6s ease-in-out infinite;
    pointer-events: none;
}

.hdm-vendor-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--hdm-gold) 0%, var(--hdm-gold-dark) 100%);
    color: var(--hdm-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hdm-vendor-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--hdm-brown);
    margin-bottom: 16px;
}

.hdm-vendor-text {
    font-size: 1.1rem;
    color: var(--hdm-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Vendor Steps */
.hdm-vendor-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.hdm-step-card {
    background: var(--hdm-white);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(106, 69, 50, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.hdm-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(106, 69, 50, 0.15);
}

.hdm-step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--hdm-gold) 0%, var(--hdm-gold-dark) 100%);
    color: var(--hdm-white);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(200, 151, 55, 0.4);
}

.hdm-step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--hdm-brown);
    margin-bottom: 10px;
}

.hdm-step-text {
    font-size: 0.9rem;
    color: var(--hdm-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
   NEWSLETTER SECTION WITH PATTERN
   ============================================================================ */

.hdm-newsletter {
    background: linear-gradient(135deg, var(--hdm-brown) 0%, var(--hdm-brown-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hdm-newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hdm-pattern-main);
    background-size: 150px;
    opacity: 0.04;
    pointer-events: none;
}

.hdm-newsletter-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hdm-newsletter-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--hdm-white);
    margin-bottom: 12px;
}

.hdm-newsletter-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.hdm-newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.hdm-newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 16px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--hdm-white);
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
}

.hdm-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hdm-newsletter-input:focus {
    outline: none;
    border-color: var(--hdm-gold);
    background: rgba(255, 255, 255, 0.15);
}

.hdm-newsletter-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--hdm-gold) 0%, var(--hdm-gold-dark) 100%);
    color: var(--hdm-white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 6px 20px rgba(200, 151, 55, 0.4);
}

.hdm-newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(200, 151, 55, 0.5);
}

/* ============================================================================
   TRUST BADGES SECTION
   ============================================================================ */

.hdm-trust-section {
    position: relative;
}

.hdm-trust-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.hdm-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hdm-brown);
}

.hdm-trust-icon {
    font-size: 1.5rem;
}

/* ============================================================================
   BLOG SECTION
   ============================================================================ */

.hdm-blog-section {
    position: relative;
}

/* ============================================================================
   RESPONSIVE: DESKTOP L (1920px+)
   ============================================================================ */

@media (min-width: 1920px) {
    .hdm-products-grid.hdm-columns-4 {
        gap: 32px;
    }
    
    .hdm-product-title {
        font-size: 17px;
    }
    
    .hdm-product-price {
        font-size: 19px;
    }
}

/* ============================================================================
   RESPONSIVE: TABLET (768px - 1023px)
   ============================================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
    .hdm-products-grid.hdm-columns-4,
    .hdm-products-grid.hdm-columns-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hdm-products-grid {
        gap: 18px;
    }
    
    .hdm-value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hdm-vendor-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .hdm-product-info {
        padding: 14px 14px 16px;
    }
    
    .hdm-product-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .hdm-product-price {
        font-size: 15px;
    }
    
    .hdm-action-btn {
        padding: 14px 16px;
    }
    
    .hdm-btn-icon {
        font-size: 22px;
    }
    
    .hdm-hero-wrapper::before,
    .hdm-hero-wrapper::after {
        display: none;
    }
}

/* ============================================================================
   RESPONSIVE: MOBILE L (480px - 767px)
   ============================================================================ */

@media (min-width: 480px) and (max-width: 767px) {
    .hdm-products-grid.hdm-columns-3,
    .hdm-products-grid.hdm-columns-4,
    .hdm-products-grid.hdm-columns-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hdm-products-grid {
        gap: 14px;
    }
    
    .hdm-product-overlay {
        display: none !important;
    }
    
    .hdm-mobile-quick-add {
        display: flex !important;
    }
    
    .hdm-value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .hdm-vendor-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
    
    .hdm-product-info {
        padding: 12px 12px 14px;
    }
    
    .hdm-product-title {
        font-size: 13px;
        min-height: 36px;
    }
    
    .hdm-product-price {
        font-size: 14px;
    }
    
    .hdm-hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .hdm-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hdm-hero-wrapper::before,
    .hdm-hero-wrapper::after,
    .hdm-vendor-cta::before,
    .hdm-vendor-cta::after {
        display: none;
    }
}

/* ============================================================================
   RESPONSIVE: MOBILE M (375px - 479px)
   ============================================================================ */

@media (min-width: 375px) and (max-width: 479px) {
    .hdm-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .hdm-product-overlay {
        display: none !important;
    }
    
    .hdm-mobile-quick-add {
        display: flex !important;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .hdm-value-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hdm-value-card {
        padding: 24px 16px;
    }
    
    .hdm-product-info {
        padding: 10px 10px 12px;
    }
    
    .hdm-product-title {
        font-size: 12px;
        min-height: 34px;
    }
    
    .hdm-product-price {
        font-size: 13px;
    }
    
    .hdm-sale-badge,
    .hdm-stock-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .hdm-newsletter-form {
        flex-direction: column;
    }
    
    .hdm-newsletter-input {
        min-width: 100%;
    }
    
    .hdm-trust-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* ============================================================================
   RESPONSIVE: MOBILE S (320px - 374px)
   ============================================================================ */

@media (max-width: 374px) {
    .hdm-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .hdm-product-card {
        border-radius: 10px;
    }
    
    .hdm-product-overlay {
        display: none !important;
    }
    
    .hdm-mobile-quick-add {
        display: flex !important;
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 8px;
        right: 8px;
    }
    
    .hdm-product-info {
        padding: 8px 8px 10px;
    }
    
    .hdm-product-title {
        font-size: 11px;
        min-height: 30px;
    }
    
    .hdm-product-price {
        font-size: 12px;
    }
    
    .hdm-sale-badge {
        font-size: 9px;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
    }
    
    .hdm-stock-badge {
        font-size: 9px;
        padding: 3px 8px;
        top: 8px;
        right: 8px;
    }
    
    .hdm-hero-title {
        font-size: 2rem;
    }
    
    .hdm-hero-subtitle {
        font-size: 1rem;
    }
    
    .hdm-section-title {
        font-size: 1.75rem;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.hdm-product-image-link:focus-visible,
.hdm-action-btn:focus-visible,
.hdm-mobile-quick-add:focus-visible,
.hdm-product-title-link:focus-visible {
    outline: 3px solid var(--hdm-gold);
    outline-offset: 2px;
}

/* ============================================================================
   END HDM HOMEPAGE STYLES v2.0
   ============================================================================ */
