/* =============================================================================
   USABILITY FIXES - Floto Audit Report (August 2026)
   Fixes 18 issues: consistency, affordance, typography, layout, spacing, hierarchy
   ============================================================================= */

/* =============================================================================
   1. BUTTON SYSTEM - Consolidate 6 types → 3 variants
   ============================================================================= */

/* Primary Button - Main CTAs (orange brand color) */
.btn-primary,
.cart-btn,
.add_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff !important;
    background: #df4c18;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
    min-height: 38px;
    vertical-align: middle;
}

.btn-primary:hover,
.cart-btn:hover,
.add_cart:hover {
    background: #c74315;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Secondary Button - Less prominent actions */
.btn-secondary,
.shop-combo-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff !important;
    background: #2e8b57;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-secondary:hover,
.shop-combo-btn:hover {
    background: #267a4c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Ghost Button - Minimal style for tertiary actions */
.btn-ghost,
.grab-it-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #df4c18 !important;
    background: transparent;
    border: 2px solid #df4c18;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ghost:hover,
.grab-it-btn:hover {
    color: #fff !important;
    background: #df4c18;
}

/* =============================================================================
   2. TYPOGRAPHY FIXES
   ============================================================================= */

/* Fix small body text (minimum 12px, prefer 14-16px) */
body,
.product-content p,
.product-description,
.cart-products-loaded li {
    font-size: 14px !important;
    line-height: 1.6;
}

/* Fix all-caps text - use sentence case */
.product-name,
.category-title,
.section-heading {
    text-transform: capitalize !important;
}

/* Keep all-caps only for short labels */
.badge,
.tag,
.btn-primary,
.btn-secondary,
.btn-ghost {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Standardized Type Scale (12/14/16/18/20/24/32px) */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 32px; }

/* =============================================================================
   3. LAYOUT FIXES - Heading Hierarchy
   ============================================================================= */

/* Single H1 per page */
h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 32px;
    margin-bottom: 16px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 24px;
    margin-bottom: 12px;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* =============================================================================
   4. PROMOTIONAL OFFERS - Reduce Clutter
   ============================================================================= */

.combo-offer-card {
    border: 2px solid #df4c18;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.combo-offer-card .offer-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #df4c18;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Group buy and free items separately */
.combo-buy-items,
.combo-free-items {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    padding: 12px;
    border-radius: 4px;
}

.combo-buy-items {
    background: #f8f9fa;
    border-left: 4px solid #2e8b57;
}

.combo-free-items {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

/* =============================================================================
   5. MARKETPLACE LOGOS - Consistent Alignment
   ============================================================================= */

.marketplace-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.marketplace-logos img {
    height: 40px !important;
    width: auto !important;
    object-fit: contain;
    filter: grayscale(0%);
    transition: all 0.3s ease;
}

.marketplace-logos img:hover {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.05);
}

/* =============================================================================
   6. HEADER NAVIGATION - Fix 'All Brands' Button Size
   ============================================================================= */

.all-brands-btn {
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.4;
    height: auto;
    vertical-align: middle;
}

/* =============================================================================
   7. FLOATING DECORATIVE ICONS - Reduce False Affordance
   ============================================================================= */

.float-icon {
    opacity: 0.15 !important;
    pointer-events: none;
    filter: grayscale(80%);
    transition: opacity 0.3s ease;
}

.floating-home:hover .float-icon {
    opacity: 0.25 !important;
}

/* =============================================================================
   8. CONSISTENCY - Border Radius Scale (4/8/16px)
   ============================================================================= */

.radius-sm { border-radius: 4px; }
.radius-md { border-radius: 8px; }
.radius-lg { border-radius: 16px; }
.radius-full { border-radius: 9999px; }

/* Apply to common elements */
.btn-primary,
.btn-secondary,
.btn-ghost,
.cart-btn,
.product-card,
.combo-offer-card {
    border-radius: 4px;
}

.product-image,
.brand-logo {
    border-radius: 8px;
}

/* =============================================================================
   9. COLOR SYSTEM - Reduce Text Colors (18 → 12)
   ============================================================================= */

:root {
    /* Primary colors */
    --color-primary: #df4c18;
    --color-primary-dark: #c74315;
    --color-secondary: #2e8b57;
    --color-accent: #1ca8b3;
    
    /* Text colors */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #cccccc;
    --text-white: #ffffff;
    
    /* Semantic colors */
    --color-success: #2e8b57;
    --color-warning: #ff9800;
    --color-error: #e74c3c;
    --color-info: #1ca8b3;
}

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }

/* =============================================================================
   10. MOBILE RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 768px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }
    
    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .marketplace-logos {
        gap: 16px;
    }
    
    .marketplace-logos img {
        height: 32px !important;
    }
}

/* =============================================================================
   11. ADD TO CART BUTTON - Strong affordance (Issue #6 - Major)
   ============================================================================= */

/* Override theme's weak "text with thin border" cart-btn style */
.cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 9px 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    letter-spacing: 0.3px !important;
    color: #fff !important;
    background: #df4c18 !important;
    border: 2px solid #df4c18 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.25s ease, box-shadow 0.25s ease !important;
    box-shadow: 0 2px 6px rgba(223, 76, 24, 0.3) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 38px !important;
    vertical-align: middle !important;
}

.cart-btn:hover,
.cart-btn:focus {
    background: #c74315 !important;
    border-color: #c74315 !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(223, 76, 24, 0.45) !important;
    text-decoration: none !important;
}

/* SELECT SHADE variant - secondary green */
.cart-btn[href*="setting-powder"],
.cart-btn[href*="shimmer-pigment"],
.cart-btn[href*="micro-liquid-foundation"] {
    background: #2e8b57 !important;
    border-color: #2e8b57 !important;
    box-shadow: 0 2px 6px rgba(46, 139, 87, 0.3) !important;
}

.cart-btn[href*="setting-powder"]:hover,
.cart-btn[href*="shimmer-pigment"]:hover,
.cart-btn[href*="micro-liquid-foundation"]:hover {
    background: #267a4c !important;
    border-color: #267a4c !important;
}

/* =============================================================================
   12. FONT SIZE FIXES - Minimum 12px (Issues #11, #12 - Minor)
   ============================================================================= */

/* Fix global 10px rule in inline CSS - override with cascade */
.list-product-2 .list-product .product-decs > p,
.list-product-2 .list-product .product-decs p {
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* Fix inline 10px/11px sizes in product cards */
.product-decs a p,
.product-decs .inner-link p {
    font-size: 12px !important;
}

/* =============================================================================
   13. FLOATING ICONS - Reduce false affordance (Issue #7 - Suggestion)
   ============================================================================= */

/* Force all float-icons to be clearly decorative (not interactive) */
.float-icon {
    opacity: 0.12 !important;
    pointer-events: none !important;
    cursor: default !important;
    filter: grayscale(60%) !important;
}

/* =============================================================================
   14. MARKETPLACE LOGOS - Consistent sizing + alignment (Issue #17 - Minor)
   ============================================================================= */

/* Override carousel for "We Are Also Present On" section */
.section-title.marlr30 .brand-slider .brand-slider-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.section-title.marlr30 .brand-slider .brand-slider-item img {
    height: 44px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    filter: grayscale(20%) !important;
    transition: filter 0.3s ease, transform 0.2s ease !important;
}

.section-title.marlr30 .brand-slider .brand-slider-item img:hover {
    filter: grayscale(0%) !important;
    transform: scale(1.05) !important;
}

/* =============================================================================
   15. ALL BRANDS NAV BUTTON - Reduce size (Issue #18 - Minor)
   ============================================================================= */

/* Desktop nav "All Brands" - reduce visual weight */
.main-navigation ul li.menu-dropdown > a.brands,
.main-navigation ul li.menu-dropdown > a[href="#"] {
    font-size: 14px !important;
    padding: 8px 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
}

/* =============================================================================
   16. COMBO OFFER CTA BUTTON - consistent with brand system
   ============================================================================= */

.shop-combo-btn {
    display: inline-block !important;
    background: #df4c18 !important;
    color: #fff !important;
    padding: 14px 35px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 6px rgba(223, 76, 24, 0.35) !important;
    transition: background 0.25s ease, transform 0.15s ease !important;
}

.shop-combo-btn:hover {
    background: #c74315 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* =============================================================================
   17. ARNDCO-CONTENT H1 → H2 for heading hierarchy
   ============================================================================= */

/* The brand editorial section's H1 has been changed to H2 in markup.
   Style the H2 to match original H1 appearance */
.arndco-content h1,
.arndco-content h2:first-of-type {
    font-size: 26px;
    font-weight: 800;
    color: #1e5c8a;
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* =============================================================================
   18. PRODUCT CARD CONSISTENCY - Fix uneven heights
   ============================================================================= */

/* Make all product cards same height and align content properly */
.list-product-2 {
    display: flex !important;
    height: 100% !important;
}

.list-product-2 .list-product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
}

/* Product image block - fixed height */
.list-product .img-block {
    height: 250px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* Product details section - flex grow to fill space */
.list-product .product-decs {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: 120px !important;
}

/* Price section - push to bottom */
.list-product .pricing-meta {
    margin-top: auto !important;
    padding-top: 8px !important;
}

/* Add to cart button - always at bottom */
.list-product .add-to-link {
    margin-top: 8px !important;
}

/* Ensure owl carousel items are same height */
.best-sell-slider .owl-item {
    display: flex !important;
    height: auto !important;
}

.best-sell-slider .owl-item > div {
    display: flex !important;
    width: 100% !important;
}

/* =============================================================================
   END OF USABILITY FIXES
   ============================================================================= */
