/* ============================================
   SPAREPARTSHUB - MAIN STYLESHEET
   Professional Motor Spare Parts Theme
   ============================================ */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
    --sph-primary:       #1a1a2e;
    --sph-secondary:     #16213e;
    --sph-accent:        #e63946;
    --sph-accent-dark:   #c1121f;
    --sph-accent-light:  #ff6b6b;
    --sph-gold:          #f4a261;
    --sph-green:         #2d6a4f;
    --sph-green-light:   #40916c;
    --sph-white:         #ffffff;
    --sph-off-white:     #f8f9fa;
    --sph-light-gray:    #e9ecef;
    --sph-gray:          #6c757d;
    --sph-dark-gray:     #343a40;
    --sph-text:          #212529;
    --sph-text-light:    #6c757d;
    --sph-border:        #dee2e6;
    --sph-shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
    --sph-shadow:        0 4px 15px rgba(0,0,0,0.1);
    --sph-shadow-lg:     0 8px 30px rgba(0,0,0,0.15);
    --sph-shadow-xl:     0 20px 60px rgba(0,0,0,0.2);
    --sph-radius-sm:     6px;
    --sph-radius:        10px;
    --sph-radius-lg:     16px;
    --sph-radius-xl:     24px;
    --sph-transition:    all 0.3s ease;
    --sph-font-main:     'Inter', sans-serif;
    --sph-font-heading:  'Rajdhani', sans-serif;
    --header-height:     70px;
    --bottom-nav-height: 65px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sph-font-main);
    color: var(--sph-text);
    background: var(--sph-off-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--sph-transition);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--sph-font-main);
    border: none;
    outline: none;
    background: none;
}

input, select, textarea {
    font-family: var(--sph-font-main);
    font-size: 1rem;
}

/* ---- CONTAINER ---- */
.sph-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- BUTTONS ---- */
.sph-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--sph-accent);
    color: var(--sph-white);
    border-radius: var(--sph-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--sph-transition);
    border: 2px solid var(--sph-accent);
}
.sph-btn-primary:hover {
    background: var(--sph-accent-dark);
    border-color: var(--sph-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.35);
    color: var(--sph-white);
}

.sph-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--sph-accent);
    border-radius: var(--sph-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--sph-transition);
    border: 2px solid var(--sph-accent);
}
.sph-btn-outline:hover {
    background: var(--sph-accent);
    color: var(--sph-white);
}

.sph-btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: transparent;
    color: var(--sph-primary);
    border-radius: var(--sph-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--sph-transition);
    border: 2px solid var(--sph-primary);
}
.sph-btn-outline-dark:hover {
    background: var(--sph-primary);
    color: var(--sph-white);
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.sph-announcement-bar {
    background: var(--sph-primary);
    color: var(--sph-white);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.sph-announcement-bar p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sph-announcement-bar i {
    color: var(--sph-gold);
}

/* ============================================
   HEADER
   ============================================ */
.sph-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--sph-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.sph-header-inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 16px;
}

/* Hamburger */
.sph-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.sph-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sph-primary);
    border-radius: 2px;
    transition: var(--sph-transition);
}
.sph-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sph-menu-toggle.open span:nth-child(2) { opacity: 0; }
.sph-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo */
.sph-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.sph-logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--sph-accent), var(--sph-accent-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.logo-words {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-primary {
    font-family: var(--sph-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sph-primary);
    letter-spacing: 0.5px;
}
.logo-tagline {
    font-size: 0.65rem;
    color: var(--sph-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header Search */
.sph-header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}
.sph-search-form {
    display: flex;
    align-items: center;
    background: var(--sph-off-white);
    border: 2px solid var(--sph-border);
    border-radius: 50px;
    overflow: visible;
    position: relative;
    transition: var(--sph-transition);
}
.sph-search-form:focus-within {
    border-color: var(--sph-accent);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}
.sph-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--sph-text);
    outline: none;
    min-width: 0;
}
.sph-search-form input::placeholder {
    color: var(--sph-gray);
}
.sph-search-form button {
    padding: 0 16px;
    background: var(--sph-accent);
    color: white;
    border: none;
    height: 100%;
    min-height: 42px;
    border-radius: 0 50px 50px 0;
    transition: var(--sph-transition);
    cursor: pointer;
}
.sph-search-form button:hover {
    background: var(--sph-accent-dark);
}

/* Search Dropdown */
.sph-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--sph-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    box-shadow: var(--sph-shadow-lg);
    z-index: 9999;
    display: none;
    max-height: 380px;
    overflow-y: auto;
}
.sph-search-dropdown.visible {
    display: block;
}
.sph-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--sph-light-gray);
    cursor: pointer;
    transition: background 0.2s;
}
.sph-search-result-item:last-child {
    border-bottom: none;
}
.sph-search-result-item:hover {
    background: var(--sph-off-white);
}
.sph-search-result-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--sph-radius-sm);
    flex-shrink: 0;
}
.sph-search-result-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--sph-text);
    font-weight: 600;
}
.sph-search-result-info span {
    font-size: 0.82rem;
    color: var(--sph-accent);
    font-weight: 600;
}
.sph-search-no-result {
    padding: 16px;
    text-align: center;
    color: var(--sph-gray);
    font-size: 0.9rem;
}

/* Header Actions */
.sph-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.sph-header-cart,
.sph-header-orders {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    padding: 6px 12px;
    border-radius: var(--sph-radius-sm);
    color: var(--sph-primary);
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--sph-transition);
    text-decoration: none;
}
.sph-header-cart i,
.sph-header-orders i {
    font-size: 1.2rem;
}
.sph-header-cart:hover,
.sph-header-orders:hover {
    color: var(--sph-accent);
    background: var(--sph-off-white);
}
.sph-cart-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: var(--sph-accent);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}
.sph-header-action-label {
    font-size: 0.7rem;
}

/* Mobile Search Bar */
.sph-mobile-search-bar {
    display: none;
    background: var(--sph-white);
    padding: 8px 0;
    border-top: 1px solid var(--sph-border);
}
.sph-search-form-mobile {
    display: flex;
    align-items: center;
    background: var(--sph-off-white);
    border: 1.5px solid var(--sph-border);
    border-radius: 50px;
    position: relative;
    overflow: visible;
}
.sph-search-form-mobile input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 14px;
    font-size: 0.88rem;
    outline: none;
    color: var(--sph-text);
}
.sph-search-form-mobile button {
    padding: 0 14px;
    background: var(--sph-accent);
    color: white;
    border-radius: 0 50px 50px 0;
    min-height: 38px;
}

/* Desktop Navigation */
.sph-desktop-nav {
    background: var(--sph-primary);
    display: none;
}
.sph-nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}
.sph-nav-list > li {
    position: relative;
}
.sph-nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--sph-transition);
    white-space: nowrap;
}
.sph-nav-list > li > a:hover,
.sph-nav-list > li.active > a {
    color: var(--sph-white);
    background: rgba(255,255,255,0.08);
}
.sph-nav-list > li.active > a {
    border-bottom: 2px solid var(--sph-accent);
}
.sph-nav-list .arrow {
    font-size: 0.65rem;
    transition: transform 0.3s;
}
.sph-nav-list .has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.sph-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--sph-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    box-shadow: var(--sph-shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--sph-transition);
    z-index: 999;
}
.has-dropdown:hover .sph-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sph-dropdown li a {
    display: block;
    padding: 10px 18px;
    color: var(--sph-text);
    font-size: 0.88rem;
    border-bottom: 1px solid var(--sph-light-gray);
    transition: var(--sph-transition);
}
.sph-dropdown li:last-child a {
    border-bottom: none;
}
.sph-dropdown li a:hover {
    background: var(--sph-off-white);
    color: var(--sph-accent);
    padding-left: 24px;
}

/* Mobile Slide-in Nav */
.sph-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: var(--sph-transition);
}
.sph-mobile-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.sph-mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--sph-primary);
    z-index: 1999;
    transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sph-mobile-nav.open {
    left: 0;
}
.sph-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sph-mobile-nav-title {
    color: white;
    font-family: var(--sph-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sph-mobile-nav-close {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--sph-transition);
}
.sph-mobile-nav-close:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}
.sph-mobile-nav-list {
    flex: 1;
    padding: 10px 0;
}
.sph-mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--sph-transition);
}
.sph-mobile-nav-list li a:hover {
    color: white;
    background: rgba(255,255,255,0.08);
    padding-left: 24px;
}
.sph-mobile-sub {
    background: rgba(0,0,0,0.2);
    display: none;
}
.sph-mobile-sub.open {
    display: block;
}
.sph-mobile-sub li a {
    padding-left: 40px !important;
    font-size: 0.85rem !important;
}
.sph-mobile-nav-footer {
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.sph-mobile-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #25D366;
    color: white !important;
    border-radius: var(--sph-radius);
    font-weight: 600;
    font-size: 0.92rem;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.sph-breadcrumb {
    padding: 12px 0;
    font-size: 0.82rem;
    color: var(--sph-gray);
}
.sph-breadcrumb a {
    color: var(--sph-gray);
}
.sph-breadcrumb a:hover {
    color: var(--sph-accent);
}
.sph-breadcrumb .sep {
    margin: 0 6px;
    color: var(--sph-border);
}

/* ============================================
   HERO SLIDESHOW
   ============================================ */
.sph-hero-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.sph-slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}
.sph-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}
.sph-slide.active {
    opacity: 1;
    z-index: 2;
}
.sph-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(26,26,46,0.4) 100%);
}
.sph-slide-content {
    position: relative;
    z-index: 3;
    max-width: 620px;
    padding: 0 40px;
    color: white;
}
.sph-slide-title {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.sph-slide-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    font-weight: 400;
}
.sph-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--sph-accent);
    color: white;
    border-radius: var(--sph-radius);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--sph-transition);
    text-decoration: none;
}
.sph-slide-btn:hover {
    background: var(--sph-accent-dark);
    transform: translateX(4px);
    color: white;
}

/* Slide Controls */
.sph-slide-prev,
.sph-slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--sph-transition);
    backdrop-filter: blur(4px);
}
.sph-slide-prev { left: 16px; }
.sph-slide-next { right: 16px; }
.sph-slide-prev:hover,
.sph-slide-next:hover {
    background: var(--sph-accent);
}

/* Dots */
.sph-slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.sph-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: var(--sph-transition);
    border: none;
    cursor: pointer;
}
.sph-dot.active {
    background: var(--sph-accent);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   CATEGORY STRIP
   ============================================ */
.sph-category-strip {
    background: var(--sph-white);
    padding: 28px 0;
    box-shadow: var(--sph-shadow-sm);
}
.sph-cat-strip-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.sph-cat-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: var(--sph-radius);
    border: 1.5px solid var(--sph-border);
    transition: var(--sph-transition);
    text-decoration: none;
    color: var(--sph-text);
    background: var(--sph-off-white);
}
.sph-cat-strip-item:hover {
    border-color: var(--sph-accent);
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--sph-shadow);
    color: var(--sph-accent);
}
.sph-cat-strip-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--sph-accent), var(--sph-accent-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--sph-transition);
}
.sph-cat-strip-item:hover .sph-cat-strip-icon {
    transform: scale(1.1);
}
.sph-cat-strip-item span {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.sph-trust-badges {
    background: linear-gradient(135deg, var(--sph-primary) 0%, var(--sph-secondary) 100%);
    padding: 28px 0;
}
.sph-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.sph-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
}
.sph-trust-item i {
    font-size: 2rem;
    color: var(--sph-gold);
    flex-shrink: 0;
}
.sph-trust-item strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
}
.sph-trust-item span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.sph-section-header {
    text-align: center;
    margin-bottom: 32px;
}
.sph-section-title {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--sph-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.sph-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--sph-accent);
    border-radius: 2px;
}
.sph-section-sub {
    color: var(--sph-gray);
    margin-top: 10px;
    font-size: 0.95rem;
}
.sph-section-eyebrow {
    display: inline-block;
    color: var(--sph-accent);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

/* ============================================
   FEATURED PRODUCTS SECTION
   ============================================ */
.sph-featured-products {
    padding: 60px 0;
    background: var(--sph-off-white);
}

/* Shop Bar (Filter + Sort) */
.sph-shop-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.sph-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--sph-white);
    border: 1.5px solid var(--sph-border);
    border-radius: var(--sph-radius);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--sph-text);
    transition: var(--sph-transition);
}
.sph-filter-btn:hover {
    border-color: var(--sph-accent);
    color: var(--sph-accent);
}
.sph-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--sph-gray);
}
.sph-sort-select {
    padding: 9px 14px;
    border: 1.5px solid var(--sph-border);
    border-radius: var(--sph-radius);
    background: var(--sph-white);
    font-size: 0.88rem;
    color: var(--sph-text);
    cursor: pointer;
    outline: none;
    transition: var(--sph-transition);
}
.sph-sort-select:focus {
    border-color: var(--sph-accent);
}
.sph-product-count {
    margin-left: auto;
    font-size: 0.82rem;
    color: var(--sph-gray);
}

/* Products Grid */
.sph-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Product Card */
.sph-product-card {
    background: var(--sph-white);
    border-radius: var(--sph-radius-lg);
    overflow: hidden;
    box-shadow: var(--sph-shadow-sm);
    transition: var(--sph-transition);
    position: relative;
    border: 1px solid var(--sph-border);
}
.sph-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sph-shadow-lg);
    border-color: transparent;
}
.sph-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sph-product-badge.sale {
    background: var(--sph-accent);
    color: white;
}
.sph-product-badge-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    padding: 4px 10px;
    background: rgba(45,106,79,0.9);
    color: white;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.sph-product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--sph-light-gray);
}
.sph-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.sph-product-card:hover .sph-product-img-wrap img {
    transform: scale(1.06);
}
.sph-quick-view-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--sph-primary);
    opacity: 0;
    transform: scale(0.8);
    transition: var(--sph-transition);
    box-shadow: var(--sph-shadow);
}
.sph-product-card:hover .sph-quick-view-btn {
    opacity: 1;
    transform: scale(1);
}
.sph-quick-view-btn:hover {
    background: var(--sph-accent);
    color: white;
}
.sph-product-info {
    padding: 14px 16px 18px;
}
.sph-product-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sph-text);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sph-product-title:hover {
    color: var(--sph-accent);
}
.sph-product-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.sph-product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--sph-accent);
    font-family: var(--sph-font-heading);
}
.sph-product-old-price {
    font-size: 0.82rem;
    color: var(--sph-gray);
    text-decoration: line-through;
}
.sph-product-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.sph-product-stock.instock {
    color: var(--sph-green-light);
}
.sph-product-stock.outofstock {
    color: var(--sph-accent);
}
.sph-product-stock.onorder {
    color: var(--sph-gold);
}
.sph-add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: var(--sph-accent);
    color: white;
    border-radius: var(--sph-radius);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--sph-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--sph-accent);
}
.sph-add-to-cart-btn:hover:not(:disabled) {
    background: var(--sph-accent-dark);
    border-color: var(--sph-accent-dark);
    transform: translateY(-1px);
}
.sph-add-to-cart-btn:disabled {
    background: var(--sph-gray);
    border-color: var(--sph-gray);
    cursor: not-allowed;
}
.sph-add-to-cart-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

/* No Products */
.sph-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--sph-gray);
}
.sph-no-products i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: var(--sph-border);
}

/* Load More */
.sph-load-more-wrap {
    text-align: center;
    margin-top: 36px;
}
.sph-load-more-btn {
    padding: 13px 36px;
    background: var(--sph-white);
    border: 2px solid var(--sph-primary);
    border-radius: var(--sph-radius);
    color: var(--sph-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--sph-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sph-load-more-btn:hover {
    background: var(--sph-primary);
    color: white;
}

.sph-shop-all-wrap {
    text-align: center;
    margin-top: 24px;
}

/* ============================================
   ABOUT SNIPPET
   ============================================ */
.sph-about-snippet {
    padding: 70px 0;
    background: var(--sph-white);
}
.sph-about-snippet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sph-about-snippet-img img {
    width: 100%;
    border-radius: var(--sph-radius-lg);
    box-shadow: var(--sph-shadow-xl);
    object-fit: cover;
    height: 400px;
}
.sph-about-snippet-content h2 {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 16px;
    line-height: 1.25;
}
.sph-about-snippet-content p {
    color: var(--sph-text-light);
    margin-bottom: 14px;
    line-height: 1.75;
    font-size: 0.95rem;
}
.sph-about-features {
    margin: 20px 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.sph-about-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sph-text);
}
.sph-about-features li i {
    color: var(--sph-green-light);
    font-size: 0.9rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.sph-cta-section {
    background: linear-gradient(135deg, var(--sph-accent) 0%, var(--sph-accent-dark) 100%);
    padding: 60px 0;
}
.sph-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.sph-cta-content h2 {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}
.sph-cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}
.sph-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.sph-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: #25D366;
    color: white;
    border-radius: var(--sph-radius);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--sph-transition);
    text-decoration: none;
}
.sph-cta-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    color: white;
}
.sph-cta-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: var(--sph-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--sph-transition);
    text-decoration: none;
    backdrop-filter: blur(4px);
}
.sph-cta-contact:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.sph-footer {
    background: var(--sph-primary);
    color: rgba(255,255,255,0.8);
}
.sph-footer-top {
    padding: 60px 0 40px;
}
.sph-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.sph-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.sph-footer-logo-icon {
    font-size: 2rem;
    color: var(--sph-accent);
}
.sph-footer-logo-name {
    display: block;
    font-family: var(--sph-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}
.sph-footer-logo-tagline {
    display: block;
    font-size: 0.68rem;
    color: var(--sph-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.sph-footer-about {
    font-size: 0.85rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.62);
    margin-bottom: 20px;
}
.sph-footer-social {
    display: flex;
    gap: 10px;
}
.sph-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: white;
    transition: var(--sph-transition);
    text-decoration: none;
}
.sph-social-btn.whatsapp { background: #25D366; }
.sph-social-btn.facebook { background: #1877f2; }
.sph-social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sph-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}
.sph-footer-title {
    font-family: var(--sph-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sph-accent);
    display: inline-block;
}
.sph-footer-links li {
    margin-bottom: 8px;
}
.sph-footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.62);
    transition: var(--sph-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sph-footer-links a i {
    font-size: 0.65rem;
    color: var(--sph-accent);
}
.sph-footer-links a:hover {
    color: white;
    padding-left: 4px;
}
.sph-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sph-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}
.sph-footer-contact li i {
    color: var(--sph-accent);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.sph-footer-contact a {
    color: rgba(255,255,255,0.7);
}
.sph-footer-contact a:hover {
    color: var(--sph-accent);
}
.sph-footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 16px 0;
}
.sph-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.sph-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--sph-white);
    display: flex;
    border-top: 1px solid var(--sph-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    height: var(--bottom-nav-height);
}
.sph-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--sph-gray);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--sph-transition);
    position: relative;
    text-decoration: none;
    padding: 6px 2px;
}
.sph-bottom-nav-item i {
    font-size: 1.2rem;
    transition: var(--sph-transition);
}
.sph-bottom-nav-item.active,
.sph-bottom-nav-item:hover {
    color: var(--sph-accent);
}
.sph-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--sph-accent);
    border-radius: 0 0 3px 3px;
}
.sph-bottom-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    background: var(--sph-accent);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
}
.sph-bottom-cart {
    background: transparent;
}

/* ============================================
   FILTER PANEL
   ============================================ */
.sph-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--sph-transition);
}
.sph-filter-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.sph-filter-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    max-height: 80vh;
    background: var(--sph-white);
    border-radius: 20px 20px 0 0;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: bottom 0.4s cubic-bezier(0.4,0,0.2,1);
}
.sph-filter-panel.open {
    bottom: 0;
}
.sph-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--sph-border);
}
.sph-filter-panel-header h3 {
    font-family: var(--sph-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sph-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sph-filter-close {
    color: var(--sph-gray);
    font-size: 1.1rem;
    padding: 4px 8px;
}
.sph-filter-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sph-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sph-filter-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sph-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sph-filter-select,
.sph-filter-input {
    padding: 10px 14px;
    border: 1.5px solid var(--sph-border);
    border-radius: var(--sph-radius);
    font-size: 0.9rem;
    color: var(--sph-text);
    background: var(--sph-off-white);
    outline: none;
    transition: var(--sph-transition);
}
.sph-filter-select:focus,
.sph-filter-input:focus {
    border-color: var(--sph-accent);
    background: white;
}
.sph-price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sph-price-range input {
    flex: 1;
}
.sph-price-range span {
    color: var(--sph-gray);
    font-weight: 600;
}
.sph-filter-panel-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--sph-border);
}
.sph-filter-panel-footer .sph-btn-outline,
.sph-filter-panel-footer .sph-btn-primary {
    flex: 1;
    justify-content: center;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.sph-toast {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--sph-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.35s ease;
    white-space: nowrap;
    box-shadow: var(--sph-shadow-lg);
    pointer-events: none;
}
.sph-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.sph-toast i {
    color: #25D366;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE - TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .sph-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sph-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .sph-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sph-cat-strip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sph-about-snippet-grid {
        gap: 40px;
    }
    .sph-desktop-nav {
        display: block;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .sph-announcement-bar {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* Header on mobile: hide desktop search, show hamburger */
    .sph-header-search {
        display: none;
    }
    .sph-mobile-search-bar {
        display: block;
    }
    .sph-header-orders .sph-header-action-label {
        display: none;
    }
    .sph-desktop-nav {
        display: none;
    }

    /* Slideshow */
    .sph-slideshow-wrapper {
        height: 280px;
    }
    .sph-slide-content {
        padding: 0 24px;
    }
    .sph-slide-prev, .sph-slide-next {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    /* Category Strip */
    .sph-cat-strip-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .sph-cat-strip-item {
        padding: 12px 6px;
    }
    .sph-cat-strip-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .sph-cat-strip-item span {
        font-size: 0.7rem;
    }

    /* Trust */
    .sph-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .sph-trust-item i {
        font-size: 1.5rem;
    }

    /* Products */
    .sph-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .sph-product-card {
        border-radius: var(--sph-radius);
    }

    /* About */
    .sph-about-snippet-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sph-about-snippet-img img {
        height: 250px;
    }
    .sph-about-features {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .sph-cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .sph-cta-actions {
        justify-content: center;
    }

    /* Footer */
    .sph-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .sph-footer-top {
        padding: 40px 0 28px;
    }
    .sph-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Filter panel becomes full width */
    .sph-filter-panel {
        max-height: 90vh;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .sph-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .sph-product-info {
        padding: 10px 12px 14px;
    }
    .sph-product-price {
        font-size: 0.9rem;
    }
    .sph-add-to-cart-btn {
        font-size: 0.8rem;
        padding: 8px;
    }
    .sph-cat-strip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sph-trust-grid {
        grid-template-columns: 1fr 1fr;
    }
    .sph-trust-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .sph-slideshow-wrapper {
        height: 240px;
    }
    .sph-slide-content {
        padding: 0 16px;
    }
}

/* ============================================
   DESKTOP ONLY (min 1025px)
   ============================================ */
@media (min-width: 1025px) {
    body {
        padding-bottom: 0;
    }
    .sph-bottom-nav {
        display: none;
    }
    .sph-desktop-nav {
        display: block;
    }
    .sph-header-search {
        display: flex;
    }
    .sph-mobile-search-bar {
        display: none;
    }
    .sph-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .sph-filter-panel {
        /* On desktop, show as sidebar */
        top: auto;
        bottom: -100%;
        max-height: 80vh;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sph-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: sph-spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes sph-spin {
    to { transform: rotate(360deg); }
}

.sph-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Loading skeleton */
.sph-skeleton {
    background: linear-gradient(90deg, var(--sph-light-gray) 25%, #e0e0e0 50%, var(--sph-light-gray) 75%);
    background-size: 200% 100%;
    animation: sph-shimmer 1.5s infinite;
    border-radius: var(--sph-radius-sm);
}
@keyframes sph-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}





















/* ============================================
   PHASE 2 STYLES
   Cart, Checkout, Confirmation, Track, Single
   ============================================ */

/* ---- PAGE TITLE ---- */
.sph-page-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.sph-page-title {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--sph-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.sph-page-title i {
    color: var(--sph-accent);
}
.sph-cart-item-count {
    background: var(--sph-light-gray);
    color: var(--sph-gray);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ============================================
   CART PAGE
   ============================================ */
.sph-page-cart {
    padding: 30px 0 60px;
    min-height: 60vh;
}

/* Empty Cart */
.sph-empty-cart {
    text-align: center;
    padding: 80px 20px;
}
.sph-empty-cart-icon {
    width: 100px;
    height: 100px;
    background: var(--sph-light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.sph-empty-cart-icon i {
    font-size: 2.5rem;
    color: var(--sph-gray);
}
.sph-empty-cart h2 {
    font-family: var(--sph-font-heading);
    font-size: 1.6rem;
    color: var(--sph-primary);
    margin-bottom: 10px;
}
.sph-empty-cart p {
    color: var(--sph-gray);
    margin-bottom: 28px;
}

/* Cart Layout */
.sph-cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

/* Cart Table Header */
.sph-cart-table-header {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.2fr 1fr 40px;
    gap: 12px;
    padding: 12px 20px;
    background: var(--sph-primary);
    border-radius: var(--sph-radius) var(--sph-radius) 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
}

/* Cart Item */
.sph-cart-item {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.2fr 1fr 40px;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    background: var(--sph-white);
    border-bottom: 1px solid var(--sph-border);
    transition: background 0.2s;
}
.sph-cart-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--sph-radius) var(--sph-radius);
}
.sph-cart-item:hover {
    background: var(--sph-off-white);
}
.sph-cart-items {
    background: var(--sph-white);
    border-radius: var(--sph-radius);
    border: 1px solid var(--sph-border);
    overflow: hidden;
    box-shadow: var(--sph-shadow-sm);
}
.sph-cart-item-product {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sph-cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--sph-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--sph-border);
}
.sph-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sph-cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sph-text);
    line-height: 1.4;
    display: block;
}
.sph-cart-item-name:hover {
    color: var(--sph-accent);
}
.sph-cart-item-stock {
    font-size: 0.75rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sph-cart-item-stock.instock {
    color: var(--sph-green-light);
}
.sph-cart-item-price span {
    font-weight: 700;
    color: var(--sph-text);
    font-size: 0.92rem;
}
.sph-cart-item-subtotal-val {
    font-weight: 800;
    color: var(--sph-accent);
    font-size: 0.95rem;
    font-family: var(--sph-font-heading);
}

/* Qty Control */
.sph-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--sph-border);
    border-radius: var(--sph-radius);
    overflow: hidden;
    width: fit-content;
}
.sph-qty-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sph-off-white);
    color: var(--sph-text);
    font-size: 0.75rem;
    transition: var(--sph-transition);
    border: none;
    cursor: pointer;
}
.sph-qty-btn:hover {
    background: var(--sph-accent);
    color: white;
}
.sph-qty-input {
    width: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--sph-border);
    border-right: 1px solid var(--sph-border);
    padding: 6px 4px;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}
.sph-qty-input::-webkit-outer-spin-button,
.sph-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Larger qty for single product */
.sph-qty-lg .sph-qty-btn {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
}
.sph-qty-lg .sph-qty-input {
    width: 60px;
    font-size: 1rem;
}

/* Remove Button */
.sph-remove-item-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sph-light-gray);
    color: var(--sph-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: var(--sph-transition);
}
.sph-remove-item-btn:hover {
    background: var(--sph-accent);
    color: white;
}

/* Cart Actions */
.sph-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.sph-clear-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1.5px solid var(--sph-border);
    border-radius: var(--sph-radius);
    color: var(--sph-gray);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--sph-transition);
}
.sph-clear-cart-btn:hover {
    border-color: var(--sph-accent);
    color: var(--sph-accent);
}

/* Cart Summary */
.sph-cart-summary-card {
    background: var(--sph-white);
    border-radius: var(--sph-radius-lg);
    border: 1px solid var(--sph-border);
    padding: 24px;
    box-shadow: var(--sph-shadow);
    position: sticky;
    top: calc(var(--header-height) + 20px);
}
.sph-cart-summary-title {
    font-family: var(--sph-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--sph-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sph-cart-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.sph-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sph-light-gray);
}
.sph-cart-summary-row:last-child {
    border-bottom: none;
}
.sph-cart-summary-total {
    padding-top: 4px;
    font-size: 1.05rem;
}
.sph-shipping-info {
    font-size: 0.82rem;
    color: var(--sph-gray);
    font-style: italic;
}
.sph-cart-note {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--sph-radius);
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: #7a6200;
    line-height: 1.5;
}
.sph-cart-note i {
    color: #f0a500;
    flex-shrink: 0;
    margin-top: 2px;
}
.sph-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--sph-accent);
    color: white;
    border-radius: var(--sph-radius);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--sph-transition);
    text-decoration: none;
    margin-bottom: 16px;
}
.sph-checkout-btn:hover {
    background: var(--sph-accent-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.35);
}
.sph-cart-trust {
    display: flex;
    justify-content: space-around;
    padding: 14px 0;
    border-top: 1px solid var(--sph-border);
    border-bottom: 1px solid var(--sph-border);
    margin-bottom: 14px;
}
.sph-cart-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--sph-gray);
    text-align: center;
}
.sph-cart-trust-item i {
    font-size: 1.2rem;
    color: var(--sph-primary);
}
.sph-whatsapp-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: #25D366;
    color: white;
    border-radius: var(--sph-radius);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--sph-transition);
    text-decoration: none;
}
.sph-whatsapp-help:hover {
    background: #1da851;
    color: white;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.sph-page-checkout {
    padding: 30px 0 60px;
    min-height: 60vh;
}
.sph-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}

/* Form Sections */
.sph-form-section {
    background: var(--sph-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--sph-shadow-sm);
}
.sph-form-section-title {
    font-family: var(--sph-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sph-form-step {
    width: 28px;
    height: 28px;
    background: var(--sph-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sph-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.sph-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sph-form-group.full {
    grid-column: 1 / -1;
}
.sph-form-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--sph-text);
}
.required {
    color: var(--sph-accent);
}
.optional {
    color: var(--sph-gray);
    font-weight: 400;
    font-size: 0.8rem;
}
.sph-form-input {
    padding: 11px 14px;
    border: 1.5px solid var(--sph-border);
    border-radius: var(--sph-radius);
    font-size: 0.92rem;
    color: var(--sph-text);
    background: var(--sph-off-white);
    outline: none;
    transition: var(--sph-transition);
    width: 100%;
}
.sph-form-input:focus {
    border-color: var(--sph-accent);
    background: var(--sph-white);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}
.sph-form-input.error {
    border-color: var(--sph-accent);
    background: #fff5f5;
}
.sph-form-input.success {
    border-color: var(--sph-green-light);
}
.sph-address2 {
    margin-top: 8px;
}
.sph-form-textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--sph-border);
    border-radius: var(--sph-radius);
    font-size: 0.92rem;
    color: var(--sph-text);
    background: var(--sph-off-white);
    outline: none;
    resize: vertical;
    min-height: 100px;
    width: 100%;
    transition: var(--sph-transition);
    line-height: 1.6;
}
.sph-form-textarea:focus {
    border-color: var(--sph-accent);
    background: var(--sph-white);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}
.sph-select-wrap {
    position: relative;
}
.sph-form-select {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 1.5px solid var(--sph-border);
    border-radius: var(--sph-radius);
    font-size: 0.92rem;
    color: var(--sph-text);
    background: var(--sph-off-white);
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: var(--sph-transition);
}
.sph-form-select:focus {
    border-color: var(--sph-accent);
    background: var(--sph-white);
}
.sph-select-wrap i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sph-gray);
    font-size: 0.8rem;
    pointer-events: none;
}
.sph-field-error {
    font-size: 0.78rem;
    color: var(--sph-accent);
    font-weight: 600;
    display: none;
}
.sph-field-error.visible {
    display: block;
}
.sph-field-hint {
    font-size: 0.78rem;
    color: var(--sph-gray);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}
.sph-field-hint i {
    color: var(--sph-accent);
    margin-top: 1px;
    flex-shrink: 0;
}

/* Checkbox */
.sph-ship-toggle-wrap {
    margin-bottom: 8px;
}
.sph-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sph-primary);
    user-select: none;
}
.sph-checkbox {
    display: none;
}
.sph-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--sph-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--sph-transition);
    background: var(--sph-white);
}
.sph-checkbox:checked + .sph-checkbox-custom {
    background: var(--sph-accent);
    border-color: var(--sph-accent);
}
.sph-checkbox:checked + .sph-checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 0.65rem;
}
.sph-ship-different-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--sph-border);
}
.sph-ship-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sph-text);
    margin-bottom: 16px;
}

/* Checkout Summary Card */
.sph-checkout-summary-card {
    background: var(--sph-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    padding: 24px;
    box-shadow: var(--sph-shadow);
    position: sticky;
    top: calc(var(--header-height) + 20px);
}
.sph-checkout-summary-title {
    font-family: var(--sph-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--sph-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sph-checkout-items {
    margin-bottom: 16px;
}
.sph-checkout-items-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sph-gray);
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sph-border);
    margin-bottom: 10px;
}
.sph-checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--sph-light-gray);
    font-size: 0.85rem;
}
.sph-checkout-item:last-child {
    border-bottom: none;
}
.sph-checkout-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.sph-checkout-item-img {
    width: 40px;
    height: 40px;
    border-radius: var(--sph-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--sph-border);
}
.sph-checkout-item-name {
    font-weight: 600;
    color: var(--sph-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    font-size: 0.82rem;
}
.sph-checkout-item-qty {
    font-size: 0.75rem;
    color: var(--sph-gray);
    display: block;
}
.sph-checkout-item-total {
    font-weight: 700;
    color: var(--sph-text);
    white-space: nowrap;
    font-size: 0.85rem;
}
.sph-checkout-totals {
    border-top: 2px solid var(--sph-border);
    padding-top: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sph-checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--sph-text);
}
.sph-checkout-total-row.grand-total {
    font-size: 1rem;
    padding-top: 10px;
    border-top: 1px solid var(--sph-border);
    color: var(--sph-primary);
}
.sph-shipping-note {
    font-size: 0.78rem;
    color: var(--sph-gray);
    font-style: italic;
}
.sph-payment-info {
    background: #f0f7ff;
    border: 1px solid #bee3f8;
    border-radius: var(--sph-radius);
    padding: 14px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: #2c5282;
    line-height: 1.5;
}
.sph-payment-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 8px;
}
.sph-payment-info-header i {
    color: #3182ce;
}
.sph-place-order-btn {
    width: 100%;
    padding: 15px;
    background: var(--sph-accent);
    color: white;
    border-radius: var(--sph-radius);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--sph-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}
.sph-place-order-btn:hover:not(:disabled) {
    background: var(--sph-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.35);
}
.sph-place-order-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.sph-checkout-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: var(--sph-radius);
    padding: 12px 14px;
    color: var(--sph-accent);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.sph-checkout-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--sph-gray);
    margin-top: 10px;
}
.sph-checkout-secure i {
    color: var(--sph-green-light);
}

/* ============================================
   ORDER CONFIRMATION PAGE
   ============================================ */
.sph-page-confirmation {
    padding: 40px 0 80px;
    min-height: 60vh;
    background: var(--sph-off-white);
}
.sph-confirmation-card {
    background: var(--sph-white);
    border-radius: var(--sph-radius-xl);
    padding: 48px 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--sph-shadow-xl);
    border: 1px solid var(--sph-border);
}
.sph-confirmation-icon {
    text-align: center;
    margin-bottom: 24px;
}
.sph-success-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: sph-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes sph-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.sph-success-circle i {
    color: white;
    font-size: 2.5rem;
}
.sph-error-circle {
    width: 90px;
    height: 90px;
    background: var(--sph-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.sph-error-circle i {
    color: white;
    font-size: 2.5rem;
}
.sph-confirmation-title {
    text-align: center;
    font-family: var(--sph-font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 10px;
}
.sph-confirmation-subtitle {
    text-align: center;
    color: var(--sph-gray);
    font-size: 1rem;
    margin-bottom: 32px;
}
.sph-order-id-banner {
    background: linear-gradient(135deg, var(--sph-primary), var(--sph-secondary));
    border-radius: var(--sph-radius-lg);
    padding: 24px 28px;
    text-align: center;
    margin-bottom: 24px;
}
.sph-order-id-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}
.sph-order-id-value {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.sph-copy-order-id {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--sph-transition);
}
.sph-copy-order-id:hover {
    background: rgba(255,255,255,0.25);
}
.sph-confirmation-notice {
    background: #f0f7ff;
    border: 1px solid #bee3f8;
    border-radius: var(--sph-radius);
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #2c5282;
    margin-bottom: 32px;
    line-height: 1.6;
}
.sph-confirmation-notice i {
    color: #3182ce;
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 2px;
}
.sph-confirmation-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.sph-confirmation-col {
    background: var(--sph-off-white);
    border-radius: var(--sph-radius);
    padding: 18px;
    border: 1px solid var(--sph-border);
}
.sph-confirmation-col h3 {
    font-family: var(--sph-font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sph-confirmation-col h3 i {
    color: var(--sph-accent);
}
.sph-confirmation-col ul li {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    font-size: 0.84rem;
}
.sph-confirmation-col ul li span {
    color: var(--sph-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.sph-confirmation-col ul li strong {
    color: var(--sph-text);
    font-weight: 600;
}
.sph-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}
.sph-status-badge.pending      { background: #fff8e1; color: #e65100; }
.sph-status-badge.processing   { background: #e8f4fd; color: #1565c0; }
.sph-status-badge.shipped      { background: #e8f5e9; color: #2e7d32; }
.sph-status-badge.delivered    { background: #e8f5e9; color: #1b5e20; }
.sph-status-badge.cancelled    { background: #ffebee; color: #c62828; }
.sph-total-highlight {
    color: var(--sph-accent);
    font-size: 1rem;
}
.sph-confirmation-items {
    margin-bottom: 28px;
}
.sph-confirmation-items h3 {
    font-family: var(--sph-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sph-confirmation-items-list {
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    overflow: hidden;
}
.sph-confirmation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sph-light-gray);
    font-size: 0.88rem;
}
.sph-confirmation-item:last-child {
    border-bottom: none;
}
.sph-confirmation-item.total-row {
    background: var(--sph-off-white);
    justify-content: flex-end;
    gap: 20px;
    font-size: 0.92rem;
}
.sph-confirmation-item-img {
    width: 50px;
    height: 50px;
    border-radius: var(--sph-radius-sm);
    object-fit: cover;
    border: 1px solid var(--sph-border);
    flex-shrink: 0;
}
.sph-confirmation-item-info {
    flex: 1;
}
.sph-confirmation-item-name {
    display: block;
    font-weight: 600;
    color: var(--sph-text);
}
.sph-confirmation-item-qty {
    font-size: 0.78rem;
    color: var(--sph-gray);
    display: block;
}
.sph-confirmation-item-price {
    font-weight: 700;
    color: var(--sph-accent);
    white-space: nowrap;
}
.sph-confirmation-notes {
    background: var(--sph-off-white);
    border-radius: var(--sph-radius);
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 0.88rem;
}
.sph-confirmation-notes strong {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sph-primary);
    margin-bottom: 6px;
}

/* Next Steps */
.sph-next-steps {
    margin-bottom: 32px;
}
.sph-next-steps h3 {
    font-family: var(--sph-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 18px;
}
.sph-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.sph-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.sph-step-num {
    width: 32px;
    height: 32px;
    background: var(--sph-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.sph-step-content strong {
    display: block;
    font-size: 0.88rem;
    color: var(--sph-primary);
    margin-bottom: 4px;
}
.sph-step-content p {
    font-size: 0.78rem;
    color: var(--sph-gray);
    line-height: 1.5;
}
.sph-confirmation-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
}
.sph-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #25D366;
    color: white;
    border-radius: var(--sph-radius);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--sph-transition);
    text-decoration: none;
}
.sph-btn-whatsapp:hover {
    background: #1da851;
    color: white;
}

/* ============================================
   TRACK ORDER PAGE
   ============================================ */
.sph-page-track {
    padding: 40px 0 80px;
    min-height: 70vh;
    background: var(--sph-off-white);
}
.sph-track-layout {
    max-width: 720px;
    margin: 0 auto;
}
.sph-track-card {
    background: var(--sph-white);
    border-radius: var(--sph-radius-xl);
    padding: 40px;
    box-shadow: var(--sph-shadow-lg);
    border: 1px solid var(--sph-border);
    margin-bottom: 28px;
}
.sph-track-card-header {
    text-align: center;
    margin-bottom: 32px;
}
.sph-track-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--sph-accent), var(--sph-accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.sph-track-icon i {
    font-size: 2rem;
    color: white;
}
.sph-track-title {
    font-family: var(--sph-font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 10px;
}
.sph-track-subtitle {
    color: var(--sph-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}
.sph-track-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sph-track-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--sph-accent);
    color: white;
    border: none;
    border-radius: var(--sph-radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--sph-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.sph-track-submit-btn:hover:not(:disabled) {
    background: var(--sph-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.35);
}
.sph-track-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.sph-track-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: var(--sph-radius);
    padding: 12px 14px;
    color: var(--sph-accent);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sph-track-help {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--sph-border);
}
.sph-track-help p {
    font-size: 0.85rem;
    color: var(--sph-gray);
    margin-bottom: 10px;
}
.sph-track-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #25D366;
    color: white;
    border-radius: var(--sph-radius);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}
.sph-track-whatsapp:hover {
    background: #1da851;
    color: white;
}

/* Track Results */
.sph-track-results {
    background: var(--sph-white);
    border-radius: var(--sph-radius-xl);
    padding: 32px;
    box-shadow: var(--sph-shadow-lg);
    border: 1px solid var(--sph-border);
}
.sph-track-results-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--sph-border);
}
.sph-track-results-header h2 {
    font-family: var(--sph-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sph-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sph-track-results-header h2 span {
    color: var(--sph-accent);
}
.sph-track-results-sub {
    color: var(--sph-gray);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Order Card (in track results) */
.sph-order-card {
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    transition: var(--sph-transition);
}
.sph-order-card:hover {
    box-shadow: var(--sph-shadow);
    border-color: var(--sph-accent);
}
.sph-order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--sph-off-white);
    border-bottom: 1px solid var(--sph-border);
    flex-wrap: wrap;
    gap: 10px;
}
.sph-order-card-id {
    font-family: var(--sph-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--sph-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sph-order-card-id i {
    color: var(--sph-accent);
}
.sph-order-card-date {
    font-size: 0.78rem;
    color: var(--sph-gray);
}
.sph-order-card-body {
    padding: 14px 18px;
}
.sph-order-card-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.sph-order-card-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}
.sph-order-card-item-img {
    width: 40px;
    height: 40px;
    border-radius: var(--sph-radius-sm);
    object-fit: cover;
    border: 1px solid var(--sph-border);
    flex-shrink: 0;
}
.sph-order-card-item-name {
    flex: 1;
    font-weight: 600;
    color: var(--sph-text);
}
.sph-order-card-item-qty {
    color: var(--sph-gray);
    font-size: 0.78rem;
}
.sph-order-card-item-price {
    font-weight: 700;
    color: var(--sph-accent);
    white-space: nowrap;
}
.sph-order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--sph-off-white);
    border-top: 1px solid var(--sph-border);
    flex-wrap: wrap;
    gap: 8px;
}
.sph-order-card-total {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--sph-primary);
}
.sph-order-card-total span {
    color: var(--sph-accent);
    font-family: var(--sph-font-heading);
    font-size: 1rem;
}
.sph-track-results-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */
.sph-page-single-product {
    padding: 24px 0 60px;
}
.sph-single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}

/* Gallery */
.sph-gallery-main {
    position: relative;
    border-radius: var(--sph-radius-lg);
    overflow: hidden;
    background: var(--sph-light-gray);
    aspect-ratio: 4/3;
    border: 1px solid var(--sph-border);
}
.sph-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}
.sph-gallery-main-img:hover {
    transform: scale(1.04);
}
.sph-gallery-no-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--sph-gray);
    height: 100%;
}
.sph-gallery-no-img i {
    font-size: 3rem;
    color: var(--sph-border);
}
.sph-gallery-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.sph-gallery-badge.sale {
    background: var(--sph-accent);
    color: white;
}
.sph-gallery-badge-stock {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    padding: 5px 12px;
    background: rgba(45,106,79,0.9);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.sph-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.sph-gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--sph-radius-sm);
    overflow: hidden;
    border: 2px solid var(--sph-border);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--sph-transition);
}
.sph-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sph-gallery-thumb.active {
    border-color: var(--sph-accent);
}
.sph-gallery-thumb:hover {
    border-color: var(--sph-accent);
    transform: translateY(-2px);
}

/* Single Product Info */
.sph-single-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.sph-single-cat-tag {
    padding: 3px 10px;
    background: var(--sph-light-gray);
    color: var(--sph-gray);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: var(--sph-transition);
}
.sph-single-cat-tag:hover {
    background: var(--sph-accent);
    color: white;
}
.sph-single-title {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: var(--sph-primary);
    line-height: 1.25;
    margin-bottom: 12px;
}
.sph-single-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.sph-single-sku {
    font-size: 0.8rem;
    color: var(--sph-gray);
    padding: 4px 10px;
    background: var(--sph-light-gray);
    border-radius: 20px;
}
.sph-single-price-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--sph-border);
    border-bottom: 1px solid var(--sph-border);
}
.sph-single-price {
    font-family: var(--sph-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--sph-accent);
}
.sph-single-old-price {
    font-size: 1rem;
    color: var(--sph-gray);
    text-decoration: line-through;
}
.sph-single-discount {
    background: var(--sph-accent);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}
.sph-single-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.sph-single-stock.sph-stock-instock   { color: var(--sph-green-light); }
.sph-single-stock.sph-stock-outofstock { color: var(--sph-accent); }
.sph-single-stock.sph-stock-onorder   { color: var(--sph-gold); }
.sph-single-excerpt {
    color: var(--sph-text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.sph-single-compat {
    background: var(--sph-off-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    padding: 14px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.sph-single-compat strong {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sph-primary);
    margin-bottom: 6px;
}
.sph-single-compat i {
    color: var(--sph-accent);
}
.sph-single-compat p {
    color: var(--sph-text-light);
    line-height: 1.6;
}
.sph-single-cart-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.sph-single-qty-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sph-single-add-to-cart {
    padding: 14px 24px;
    background: var(--sph-accent);
    color: white;
    border: none;
    border-radius: var(--sph-radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--sph-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.sph-single-add-to-cart:hover:not(:disabled) {
    background: var(--sph-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.35);
}
.sph-single-add-to-cart:disabled {
    background: var(--sph-gray);
    cursor: not-allowed;
}
.sph-view-cart-btn {
    padding: 12px 24px;
    background: var(--sph-primary);
    color: white;
    border-radius: var(--sph-radius);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--sph-transition);
    text-decoration: none;
    animation: fadeIn 0.3s ease;
}
.sph-view-cart-btn:hover {
    background: var(--sph-secondary);
    color: white;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.sph-whatsapp-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: #f6fff8;
    border: 1.5px solid #25D366;
    border-radius: var(--sph-radius);
    color: #1da851;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--sph-transition);
    margin-bottom: 16px;
}
.sph-whatsapp-order i {
    font-size: 1.1rem;
    color: #25D366;
}
.sph-whatsapp-order:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}
.sph-whatsapp-order:hover i {
    color: white;
}
.sph-single-trust {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.sph-single-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--sph-gray);
    font-weight: 600;
}
.sph-single-trust-item i {
    color: var(--sph-accent);
}

/* Tabs */
.sph-single-tabs {
    margin-bottom: 48px;
}
.sph-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--sph-border);
    margin-bottom: 0;
    overflow-x: auto;
}
.sph-tab-btn {
    padding: 13px 22px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sph-gray);
    cursor: pointer;
    transition: var(--sph-transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sph-tab-btn.active {
    color: var(--sph-accent);
    border-bottom-color: var(--sph-accent);
}
.sph-tab-btn:hover {
    color: var(--sph-accent);
}
.sph-tab-content {
    display: none;
}
.sph-tab-content.active {
    display: block;
}
.sph-tab-body {
    background: var(--sph-white);
    border: 1px solid var(--sph-border);
    border-top: none;
    border-radius: 0 0 var(--sph-radius) var(--sph-radius);
    padding: 28px;
    color: var(--sph-text-light);
    line-height: 1.8;
    font-size: 0.92rem;
}
.sph-compat-list h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sph-compat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sph-compat-tag {
    padding: 5px 14px;
    background: var(--sph-off-white);
    border: 1px solid var(--sph-border);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sph-text);
}
.sph-shipping-info-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sph-shipping-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.sph-shipping-row i {
    font-size: 1.5rem;
    color: var(--sph-accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.sph-shipping-row strong {
    display: block;
    color: var(--sph-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

/* Related Products */
.sph-related-products {
    padding-top: 20px;
}

/* ============================================
   SHOP PAGE (Archive)
   ============================================ */
.sph-page-shop {
    padding: 24px 0 60px;
}
.sph-shop-header {
    margin-bottom: 24px;
}
.sph-shop-desc {
    color: var(--sph-gray);
    margin-top: 8px;
    font-size: 0.92rem;
}
.sph-shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}
.sph-shop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 16px);
}
.sph-sidebar-card {
    background: var(--sph-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--sph-shadow-sm);
}
.sph-sidebar-title {
    font-family: var(--sph-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sph-sidebar-cats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sph-sidebar-cats li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--sph-radius-sm);
    font-size: 0.85rem;
    color: var(--sph-text);
    font-weight: 500;
    transition: var(--sph-transition);
    text-decoration: none;
}
.sph-sidebar-cats li a:hover,
.sph-sidebar-cats li.active a {
    background: var(--sph-accent);
    color: white;
    padding-left: 14px;
}
.sph-sidebar-cats li a i {
    font-size: 0.65rem;
    color: var(--sph-gray);
}
.sph-sidebar-cats li.active a i,
.sph-sidebar-cats li a:hover i {
    color: rgba(255,255,255,0.7);
}
.sph-cat-count {
    background: var(--sph-light-gray);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sph-gray);
}
.sph-sidebar-cats li.active a .sph-cat-count,
.sph-sidebar-cats li a:hover .sph-cat-count {
    background: rgba(255,255,255,0.25);
    color: white;
}
.sph-sidebar-price-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sph-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sph-price-inputs input {
    flex: 1;
    min-width: 0;
}
.sph-price-inputs span {
    color: var(--sph-gray);
    font-weight: 600;
    flex-shrink: 0;
}
.sph-sidebar-filter-btn {
    width: 100%;
    padding: 10px;
    background: var(--sph-primary);
    color: white;
    border-radius: var(--sph-radius);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--sph-transition);
}
.sph-sidebar-filter-btn:hover {
    background: var(--sph-accent);
}
.sph-sidebar-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--sph-primary), var(--sph-secondary));
    border-color: transparent;
}
.sph-sidebar-cta i {
    font-size: 2rem;
    color: #25D366;
    margin-bottom: 8px;
    display: block;
}
.sph-sidebar-cta h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.sph-sidebar-cta p {
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
    margin-bottom: 14px;
}
.sph-sidebar-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #25D366;
    color: white;
    border-radius: var(--sph-radius);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--sph-transition);
}
.sph-sidebar-whatsapp:hover {
    background: #1da851;
    color: white;
}

/* Pagination */
.sph-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.sph-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--sph-radius-sm);
    border: 1.5px solid var(--sph-border);
    color: var(--sph-text);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--sph-transition);
    text-decoration: none;
}
.sph-pagination .page-numbers:hover {
    border-color: var(--sph-accent);
    color: var(--sph-accent);
}
.sph-pagination .page-numbers.current {
    background: var(--sph-accent);
    border-color: var(--sph-accent);
    color: white;
}
.sph-pagination .page-numbers.prev,
.sph-pagination .page-numbers.next {
    width: auto;
    padding: 0 14px;
    gap: 6px;
}

/* ============================================
   RESPONSIVE - PHASE 2
   ============================================ */
@media (max-width: 1024px) {
    /* Cart */
    .sph-cart-layout {
        grid-template-columns: 1fr;
    }
    .sph-cart-table-header {
        display: none;
    }
    .sph-cart-item {
        grid-template-columns: 1fr;
        position: relative;
        padding: 16px;
    }
    .sph-cart-item-price,
    .sph-cart-item-qty,
    .sph-cart-item-subtotal {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .sph-cart-item-price::before   { content: attr(data-label) ': '; font-weight: 700; font-size: 0.78rem; color: var(--sph-gray); }
    .sph-cart-item-qty::before     { content: attr(data-label) ': '; font-weight: 700; font-size: 0.78rem; color: var(--sph-gray); }
    .sph-cart-item-subtotal::before { content: attr(data-label) ': '; font-weight: 700; font-size: 0.78rem; color: var(--sph-gray); }
    .sph-cart-item-remove {
        position: absolute;
        top: 14px;
        right: 14px;
    }

    /* Checkout */
    .sph-checkout-layout {
        grid-template-columns: 1fr;
    }
    .sph-checkout-summary-card {
        position: static;
        order: -1;
    }

    /* Single */
    .sph-single-product-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Shop */
    .sph-shop-layout {
        grid-template-columns: 1fr;
    }
    .sph-shop-sidebar {
        display: none;
    }

    /* Confirmation */
    .sph-confirmation-details {
        grid-template-columns: 1fr;
    }
    .sph-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Confirmation card */
    .sph-confirmation-card {
        padding: 28px 20px;
        border-radius: var(--sph-radius-lg);
    }
    .sph-steps-grid {
        grid-template-columns: 1fr;
    }
    .sph-confirmation-actions {
        flex-direction: column;
    }
    .sph-confirmation-actions a,
    .sph-confirmation-actions button {
        width: 100%;
        justify-content: center;
    }

    /* Track */
    .sph-track-card {
        padding: 24px 18px;
    }

    /* Form */
    .sph-form-grid {
        grid-template-columns: 1fr;
    }
    .sph-form-group.full {
        grid-column: 1;
    }
    .sph-form-section {
        padding: 20px 16px;
    }

    /* Cart */
    .sph-cart-summary-card {
        position: static;
    }
}

@media (max-width: 480px) {
    .sph-single-price {
        font-size: 1.6rem;
    }
    .sph-single-product-layout {
        gap: 20px;
    }
    .sph-tab-btn {
        padding: 10px 14px;
        font-size: 0.82rem;
    }
    .sph-tab-body {
        padding: 18px 14px;
    }
}










/* ============================================
   PHASE 3 STYLES
   About, Contact, 404, Final Polish
   ============================================ */

/* ============================================
   ABOUT PAGE
   ============================================ */
.sph-page-about {
    background: var(--sph-off-white);
}

/* About Hero */
.sph-about-hero {
    position: relative;
    background: linear-gradient(135deg, var(--sph-primary) 0%, #0f3460 100%);
    padding: 80px 0;
    overflow: hidden;
}
.sph-about-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(230,57,70,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244,162,97,0.1) 0%, transparent 40%);
    pointer-events: none;
}
.sph-about-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.sph-about-hero-content .sph-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.sph-about-hero-title {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--sph-white);
    line-height: 1.2;
    margin-bottom: 20px;
}
.sph-about-hero-text {
    color: rgba(255,255,255,0.78);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 28px;
}
.sph-about-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.sph-about-hero-img-wrap {
    position: relative;
    border-radius: var(--sph-radius-xl);
    overflow: hidden;
    box-shadow: var(--sph-shadow-xl);
}
.sph-about-hero-img-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.sph-about-hero-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--sph-accent);
    border-radius: var(--sph-radius-lg);
    padding: 16px 20px;
    box-shadow: var(--sph-shadow-lg);
}
.sph-about-hero-badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}
.sph-badge-num {
    font-family: var(--sph-font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.sph-badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
}

/* Stats */
.sph-about-stats {
    background: var(--sph-white);
    padding: 40px 0;
    box-shadow: var(--sph-shadow);
}
.sph-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.sph-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--sph-radius-lg);
    border: 1px solid var(--sph-border);
    transition: var(--sph-transition);
}
.sph-stat-item:hover {
    border-color: var(--sph-accent);
    box-shadow: var(--sph-shadow);
    transform: translateY(-3px);
}
.sph-stat-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--sph-accent), var(--sph-accent-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sph-stat-icon i {
    font-size: 1.3rem;
    color: white;
}
.sph-stat-content {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.sph-stat-number {
    font-family: var(--sph-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--sph-primary);
    line-height: 1;
}
.sph-stat-plus {
    display: inline;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sph-accent);
}
.sph-stat-label {
    font-size: 0.78rem;
    color: var(--sph-gray);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Our Story */
.sph-about-story {
    padding: 80px 0;
    background: var(--sph-off-white);
}
.sph-about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sph-about-story-images {
    position: relative;
}
.sph-story-img-main {
    border-radius: var(--sph-radius-xl);
    overflow: hidden;
    box-shadow: var(--sph-shadow-xl);
}
.sph-story-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.sph-story-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    border-radius: var(--sph-radius-lg);
    overflow: hidden;
    box-shadow: var(--sph-shadow-xl);
    border: 4px solid white;
}
.sph-story-img-secondary img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.sph-about-story-content .sph-section-eyebrow {
    margin-bottom: 12px;
    display: block;
}
.sph-about-story-title {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 18px;
    line-height: 1.25;
}
.sph-about-story-content p {
    color: var(--sph-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
}
.sph-story-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0 28px;
}
.sph-story-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sph-text);
}
.sph-story-highlight i {
    color: var(--sph-green-light);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Values */
.sph-about-values {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--sph-primary) 0%, #0f3460 100%);
}
.sph-about-values .sph-section-title,
.sph-about-values .sph-section-sub {
    color: white;
}
.sph-about-values .sph-section-title::after {
    background: var(--sph-accent);
}
.sph-about-values .sph-section-sub {
    color: rgba(255,255,255,0.7);
}
.sph-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.sph-value-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--sph-radius-xl);
    padding: 36px 28px;
    text-align: center;
    transition: var(--sph-transition);
    backdrop-filter: blur(8px);
}
.sph-value-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.sph-value-card.featured {
    background: var(--sph-accent);
    border-color: var(--sph-accent);
    transform: scale(1.04);
}
.sph-value-card.featured:hover {
    transform: scale(1.04) translateY(-5px);
    background: var(--sph-accent-dark);
}
.sph-value-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: white;
}
.sph-value-card h3 {
    font-family: var(--sph-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}
.sph-value-card p {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    line-height: 1.75;
}
.sph-value-card.featured p {
    color: rgba(255,255,255,0.9);
}

/* Why Choose Us */
.sph-about-why {
    padding: 80px 0;
    background: var(--sph-white);
}
.sph-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.sph-why-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    transition: var(--sph-transition);
    background: var(--sph-off-white);
}
.sph-why-item:hover {
    border-color: var(--sph-accent);
    background: white;
    box-shadow: var(--sph-shadow);
    transform: translateY(-3px);
}
.sph-why-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--sph-accent), var(--sph-accent-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    transition: var(--sph-transition);
}
.sph-why-item:hover .sph-why-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}
.sph-why-content h4 {
    font-family: var(--sph-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 6px;
}
.sph-why-content p {
    font-size: 0.85rem;
    color: var(--sph-text-light);
    line-height: 1.7;
}

/* What We Stock */
.sph-about-stock {
    padding: 80px 0;
    background: var(--sph-off-white);
}
.sph-about-stock-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sph-about-stock-content .sph-section-eyebrow {
    display: block;
    margin-bottom: 12px;
}
.sph-about-stock-content h2 {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 16px;
}
.sph-about-stock-content p {
    color: var(--sph-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
}
.sph-stock-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}
.sph-stock-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--sph-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sph-text);
    transition: var(--sph-transition);
}
.sph-stock-cat:hover {
    border-color: var(--sph-accent);
    color: var(--sph-accent);
}
.sph-stock-cat i {
    color: var(--sph-accent);
    width: 16px;
    text-align: center;
}
.sph-about-stock-image {
    border-radius: var(--sph-radius-xl);
    overflow: hidden;
    box-shadow: var(--sph-shadow-xl);
}
.sph-about-stock-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.sph-about-stock-image:hover img {
    transform: scale(1.03);
}

/* How It Works */
.sph-how-it-works {
    padding: 80px 0;
    background: var(--sph-white);
}
.sph-how-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    margin-top: 40px;
}
.sph-how-step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
}
.sph-how-step-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sph-accent);
    color: white;
    font-family: var(--sph-font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
    z-index: 2;
}
.sph-how-step-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--sph-primary), #0f3460);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px auto 18px;
    font-size: 1.6rem;
    color: white;
    box-shadow: 0 8px 24px rgba(26,26,46,0.3);
    transition: var(--sph-transition);
}
.sph-how-step:hover .sph-how-step-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--sph-accent), var(--sph-accent-dark));
}
.sph-how-step h4 {
    font-family: var(--sph-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 8px;
}
.sph-how-step p {
    font-size: 0.82rem;
    color: var(--sph-gray);
    line-height: 1.7;
}
.sph-how-connector {
    flex-shrink: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--sph-accent), transparent);
    margin-top: 50px;
    position: relative;
}
.sph-how-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--sph-accent);
    border-right: 2px solid var(--sph-accent);
    transform: rotate(45deg);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.sph-page-contact {
    background: var(--sph-off-white);
    padding-bottom: 0;
}

/* Contact Hero */
.sph-contact-hero {
    background: linear-gradient(135deg, var(--sph-primary) 0%, #0f3460 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sph-contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(230,57,70,0.2) 0%, transparent 60%);
    pointer-events: none;
}
.sph-contact-hero-inner {
    position: relative;
    z-index: 1;
}
.sph-contact-hero-title {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: white;
    margin: 12px 0 14px;
}
.sph-contact-hero-sub {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Contact Layout */
.sph-contact-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    padding: 48px 0 60px;
    align-items: start;
}

/* Contact Cards */
.sph-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.sph-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--sph-radius-lg);
    text-decoration: none;
    transition: var(--sph-transition);
    position: relative;
    border: 1.5px solid transparent;
}
.sph-contact-card:hover {
    transform: translateX(5px);
    box-shadow: var(--sph-shadow);
}
.sph-contact-card.whatsapp {
    background: #f6fff8;
    border-color: #b7efc5;
}
.sph-contact-card.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}
.sph-contact-card.whatsapp:hover * {
    color: white !important;
}
.sph-contact-card.facebook {
    background: #f0f5ff;
    border-color: #bdd1f8;
}
.sph-contact-card.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}
.sph-contact-card.facebook:hover * {
    color: white !important;
}
.sph-contact-card.instagram {
    background: #fff0f8;
    border-color: #f7c0e0;
}
.sph-contact-card.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}
.sph-contact-card.instagram:hover * {
    color: white !important;
}
.sph-contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.sph-contact-card.whatsapp .sph-contact-card-icon { background: #25D366; color: white; }
.sph-contact-card.facebook .sph-contact-card-icon { background: #1877f2; color: white; }
.sph-contact-card.instagram .sph-contact-card-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}
.sph-contact-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sph-contact-card-content strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sph-text);
}
.sph-contact-card-content span {
    font-size: 0.85rem;
    color: var(--sph-gray);
}
.sph-contact-card-content small {
    font-size: 0.72rem;
    color: var(--sph-gray);
}
.sph-contact-card-arrow {
    color: var(--sph-gray);
    font-size: 0.75rem;
}

/* Business Info */
.sph-contact-business-info {
    background: var(--sph-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--sph-shadow-sm);
}
.sph-contact-info-title {
    font-family: var(--sph-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sph-contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sph-contact-info-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.sph-contact-info-icon {
    width: 36px;
    height: 36px;
    background: var(--sph-off-white);
    border: 1px solid var(--sph-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sph-contact-info-icon i {
    color: var(--sph-accent);
    font-size: 0.9rem;
}
.sph-contact-info-list li > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sph-contact-info-list li > div strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sph-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sph-contact-info-list li > div span,
.sph-contact-info-list li > div a {
    font-size: 0.85rem;
    color: var(--sph-gray);
    text-decoration: none;
}
.sph-contact-info-list li > div a:hover {
    color: var(--sph-accent);
}

/* Response Badge */
.sph-response-badge {
    background: linear-gradient(135deg, var(--sph-primary), #0f3460);
    border-radius: var(--sph-radius-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}
.sph-response-badge i {
    font-size: 1.5rem;
    color: var(--sph-gold);
    flex-shrink: 0;
}
.sph-response-badge strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.sph-response-badge span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
}

/* Contact Form Card */
.sph-contact-form-card {
    background: var(--sph-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-xl);
    padding: 36px;
    box-shadow: var(--sph-shadow);
}
.sph-contact-form-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sph-border);
}
.sph-contact-form-header h2 {
    font-family: var(--sph-font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sph-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.sph-contact-form-header h2 i {
    color: var(--sph-accent);
}
.sph-contact-form-header p {
    color: var(--sph-gray);
    font-size: 0.88rem;
}
.sph-contact-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--sph-accent);
    color: white;
    border: none;
    border-radius: var(--sph-radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--sph-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}
.sph-contact-submit-btn:hover:not(:disabled) {
    background: var(--sph-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.35);
}
.sph-contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.sph-contact-success {
    margin-top: 16px;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: var(--sph-radius);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #276749;
    font-size: 0.88rem;
}
.sph-contact-success i {
    font-size: 1.3rem;
    color: #48bb78;
    flex-shrink: 0;
}
.sph-contact-success strong {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}
.sph-contact-success p {
    color: #2f855a;
    font-size: 0.82rem;
    margin: 0;
}
.sph-contact-error {
    margin-top: 12px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: var(--sph-radius);
    padding: 12px 14px;
    color: var(--sph-accent);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FAQ Section */
.sph-faq-section {
    padding: 80px 0;
    background: var(--sph-off-white);
}
.sph-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
}
.sph-faq-item {
    background: var(--sph-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    overflow: hidden;
    transition: var(--sph-transition);
}
.sph-faq-item:hover {
    border-color: var(--sph-accent);
    box-shadow: var(--sph-shadow);
}
.sph-faq-item.open {
    border-color: var(--sph-accent);
}
.sph-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sph-primary);
    transition: var(--sph-transition);
}
.sph-faq-question:hover {
    color: var(--sph-accent);
}
.sph-faq-icon {
    flex-shrink: 0;
    color: var(--sph-accent);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}
.sph-faq-item.open .sph-faq-icon {
    transform: rotate(45deg);
}
.sph-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.sph-faq-answer.open {
    max-height: 300px;
}
.sph-faq-answer p {
    padding: 0 20px 18px;
    color: var(--sph-text-light);
    font-size: 0.88rem;
    line-height: 1.75;
    border-top: 1px solid var(--sph-border);
    padding-top: 14px;
    margin: 0;
}
.sph-faq-answer a {
    color: var(--sph-accent);
    text-decoration: underline;
}

/* ============================================
   404 PAGE
   ============================================ */
.sph-page-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: var(--sph-off-white);
}
.sph-404-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.sph-404-visual {
    margin-bottom: 28px;
}
.sph-404-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.n4-left, .n4-right {
    font-family: var(--sph-font-heading);
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 800;
    color: var(--sph-primary);
    line-height: 1;
}
.sph-404-gear-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sph-gear-spin {
    font-size: clamp(5rem, 12vw, 8rem);
    color: var(--sph-accent);
    animation: sph-gear-rotate 4s linear infinite;
}
@keyframes sph-gear-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.sph-404-title {
    font-family: var(--sph-font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 14px;
}
.sph-404-subtitle {
    color: var(--sph-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.sph-404-search {
    margin-bottom: 36px;
}
.sph-404-search-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--sph-border);
    background: white;
    transition: var(--sph-transition);
}
.sph-404-search-form:focus-within {
    border-color: var(--sph-accent);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}
.sph-404-search-input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    outline: none;
    font-size: 0.92rem;
    background: transparent;
    color: var(--sph-text);
}
.sph-404-search-form button {
    padding: 12px 22px;
    background: var(--sph-accent);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 0 50px 50px 0;
    transition: var(--sph-transition);
}
.sph-404-search-form button:hover {
    background: var(--sph-accent-dark);
}
.sph-404-links {
    margin-bottom: 32px;
}
.sph-404-links h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sph-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}
.sph-404-link-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.sph-404-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid var(--sph-border);
    border-radius: var(--sph-radius);
    color: var(--sph-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--sph-transition);
    background: white;
}
.sph-404-link-item:hover {
    border-color: var(--sph-accent);
    color: var(--sph-accent);
    background: #fff5f5;
    transform: translateY(-2px);
}
.sph-404-link-item.whatsapp {
    border-color: #25D366;
    color: #25D366;
}
.sph-404-link-item.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}
.sph-404-link-item i {
    font-size: 1rem;
}

/* ============================================
   GLOBAL POLISH & ANIMATIONS
   ============================================ */

/* Fade-in on scroll */
.sph-animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.sph-animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.sph-animate-in.delay-1 { transition-delay: 0.1s; }
.sph-animate-in.delay-2 { transition-delay: 0.2s; }
.sph-animate-in.delay-3 { transition-delay: 0.3s; }
.sph-animate-in.delay-4 { transition-delay: 0.4s; }

/* Smooth scrollbar */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--sph-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Back to top button */
.sph-back-to-top {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    right: 16px;
    width: 42px;
    height: 42px;
    background: var(--sph-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--sph-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--sph-transition);
    z-index: 900;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.sph-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sph-back-to-top:hover {
    background: var(--sph-accent-dark);
    transform: translateY(-3px);
    color: white;
}

/* Scrolled header */
.sph-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Print styles */
@media print {
    .sph-header,
    .sph-footer,
    .sph-bottom-nav,
    .sph-toast,
    .sph-filter-panel,
    .sph-filter-overlay,
    .sph-back-to-top {
        display: none !important;
    }
    body {
        padding-bottom: 0;
    }
}

/* ============================================
   PHASE 3 RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    /* About */
    .sph-about-hero-inner    { grid-template-columns: 1fr; gap: 32px; }
    .sph-about-hero-image    { max-width: 480px; margin: 0 auto; }
    .sph-stats-grid          { grid-template-columns: repeat(2, 1fr); }
    .sph-about-story-grid    { grid-template-columns: 1fr; gap: 40px; }
    .sph-story-img-secondary { display: none; }
    .sph-values-grid         { grid-template-columns: 1fr; gap: 16px; }
    .sph-value-card.featured { transform: none; }
    .sph-why-grid            { grid-template-columns: repeat(2, 1fr); }
    .sph-about-stock-inner   { grid-template-columns: 1fr; gap: 32px; }
    .sph-how-steps           { flex-wrap: wrap; justify-content: center; gap: 28px; }
    .sph-how-connector       { display: none; }
    .sph-how-step            { width: calc(50% - 28px); flex: none; }

    /* Contact */
    .sph-contact-layout      { grid-template-columns: 1fr; }

    /* FAQ */
    .sph-faq-grid            { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* About */
    .sph-about-hero          { padding: 50px 0; }
    .sph-about-hero-title    { font-size: 1.8rem; }
    .sph-about-hero-img-wrap img { height: 280px; }
    .sph-about-hero-badge    { padding: 12px 16px; }
    .sph-stats-grid          { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sph-stat-item           { padding: 14px; }
    .sph-why-grid            { grid-template-columns: 1fr; }
    .sph-story-highlights    { grid-template-columns: 1fr; }
    .sph-stock-categories    { grid-template-columns: 1fr; }
    .sph-how-step            { width: 100%; }

    /* Contact */
    .sph-contact-form-card   { padding: 22px 16px; }
    .sph-contact-hero        { padding: 40px 0; }

    /* 404 */
    .n4-left, .n4-right      { font-size: 5rem; }
    .sph-gear-spin           { font-size: 4rem; }
    .sph-404-link-grid       { gap: 8px; }
    .sph-404-link-item       { padding: 8px 14px; font-size: 0.8rem; }
}

@media (min-width: 1025px) {
    /* About */
    .sph-values-grid         { grid-template-columns: repeat(3, 1fr); }

    /* Contact */
    .sph-contact-layout      { grid-template-columns: 380px 1fr; }

    /* FAQ */
    .sph-faq-grid            { grid-template-columns: 1fr 1fr; }

    /* Back to top on desktop - no bottom nav offset */
    .sph-back-to-top {
        bottom: 24px;
    }
}








/* ============================================
   PHASE 4 STYLES
   Search, Taxonomy, Legal, WhatsApp Float
   ============================================ */

/* ============================================
   SEARCH PAGE
   ============================================ */
.sph-page-search {
    padding: 30px 0 60px;
    min-height: 60vh;
}
.sph-search-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--sph-border);
}
.sph-search-query {
    color: var(--sph-accent);
    font-style: italic;
}
.sph-search-count {
    color: var(--sph-gray);
    font-size: 0.9rem;
    margin-top: 6px;
}
.sph-search-page-form {
    flex: 1;
    max-width: 460px;
    flex-shrink: 0;
}
.sph-search-form-full {
    display: flex;
    align-items: center;
    border: 2px solid var(--sph-border);
    border-radius: 50px;
    overflow: hidden;
    background: var(--sph-white);
    transition: var(--sph-transition);
}
.sph-search-form-full:focus-within {
    border-color: var(--sph-accent);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}
.sph-search-page-input {
    flex: 1;
    padding: 11px 18px;
    border: none;
    outline: none;
    font-size: 0.92rem;
    color: var(--sph-text);
    background: transparent;
}
.sph-search-form-full button {
    padding: 11px 20px;
    background: var(--sph-accent);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--sph-transition);
    white-space: nowrap;
}
.sph-search-form-full button:hover {
    background: var(--sph-accent-dark);
}

/* No Results */
.sph-search-no-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}
.sph-no-results-icon {
    width: 90px;
    height: 90px;
    background: var(--sph-light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.sph-no-results-icon i {
    font-size: 2.2rem;
    color: var(--sph-gray);
}
.sph-search-no-results h2 {
    font-family: var(--sph-font-heading);
    font-size: 1.4rem;
    color: var(--sph-primary);
    margin-bottom: 10px;
}
.sph-search-no-results > p {
    color: var(--sph-gray);
    margin-bottom: 24px;
    font-size: 0.92rem;
}
.sph-no-results-suggestions {
    background: var(--sph-off-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    padding: 20px 24px;
    text-align: left;
    margin-bottom: 28px;
}
.sph-no-results-suggestions h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sph-no-results-suggestions ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sph-no-results-suggestions li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--sph-text);
}
.sph-no-results-suggestions li i {
    color: var(--sph-green-light);
    font-size: 0.8rem;
}
.sph-no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.sph-popular-cats {
    margin-top: 20px;
}
.sph-popular-cats h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================
   TAXONOMY PAGES
   ============================================ */
.sph-taxonomy-header {
    margin-bottom: 28px;
    padding: 28px;
    background: linear-gradient(135deg, var(--sph-primary) 0%, #0f3460 100%);
    border-radius: var(--sph-radius-xl);
    color: white;
}
.sph-taxonomy-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}
.sph-taxonomy-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}
.sph-taxonomy-icon.brand-icon {
    background: var(--sph-accent);
}
.sph-taxonomy-header .sph-page-title {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}
.sph-taxonomy-header .sph-page-title i {
    color: rgba(255,255,255,0.6);
}
.sph-taxonomy-desc {
    color: rgba(255,255,255,0.72);
    font-size: 0.88rem;
    margin-top: 4px;
}
.sph-sub-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.sph-sub-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--sph-transition);
}
.sph-sub-cat-tag:hover {
    background: var(--sph-accent);
    border-color: var(--sph-accent);
    color: white;
}
.sph-sub-cat-tag span {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 0.72rem;
}

/* ============================================
   DEFAULT PAGE & POST
   ============================================ */
.sph-page-default {
    padding: 32px 0 60px;
    min-height: 50vh;
}
.sph-default-article {
    max-width: 860px;
}
.sph-default-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--sph-border);
}
.sph-post-meta {
    display: flex;
    gap: 16px;
    color: var(--sph-gray);
    font-size: 0.82rem;
    margin-top: 8px;
}
.sph-post-meta i {
    color: var(--sph-accent);
}
.sph-post-thumbnail {
    margin-bottom: 28px;
    border-radius: var(--sph-radius-lg);
    overflow: hidden;
}
.sph-post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.sph-default-content {
    color: var(--sph-text);
    font-size: 0.95rem;
    line-height: 1.85;
}
.sph-default-content h1,
.sph-default-content h2,
.sph-default-content h3,
.sph-default-content h4 {
    font-family: var(--sph-font-heading);
    color: var(--sph-primary);
    margin: 24px 0 12px;
}
.sph-default-content p { margin-bottom: 16px; }
.sph-default-content ul, .sph-default-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.sph-default-content ul li { list-style: disc; margin-bottom: 6px; }
.sph-default-content ol li { list-style: decimal; margin-bottom: 6px; }
.sph-default-content a {
    color: var(--sph-accent);
    text-decoration: underline;
}
.sph-default-content img {
    max-width: 100%;
    border-radius: var(--sph-radius);
    margin: 16px 0;
}
.sph-default-content blockquote {
    border-left: 4px solid var(--sph-accent);
    padding: 14px 20px;
    background: var(--sph-off-white);
    border-radius: 0 var(--sph-radius) var(--sph-radius) 0;
    margin: 20px 0;
    font-style: italic;
    color: var(--sph-text-light);
}
.sph-default-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.sph-default-content table th,
.sph-default-content table td {
    padding: 10px 14px;
    border: 1px solid var(--sph-border);
    font-size: 0.88rem;
}
.sph-default-content table th {
    background: var(--sph-primary);
    color: white;
    font-weight: 700;
}
.sph-default-content table tr:nth-child(even) td {
    background: var(--sph-off-white);
}

/* ============================================
   LEGAL PAGES (Privacy & Terms)
   ============================================ */
.sph-page-legal {
    padding: 32px 0 80px;
    background: var(--sph-off-white);
}
.sph-legal-wrap {
    max-width: 820px;
    margin: 0 auto;
}
.sph-legal-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--sph-border);
}
.sph-legal-updated {
    color: var(--sph-gray);
    font-size: 0.82rem;
    margin-top: 6px;
}
.sph-legal-intro {
    background: #f0f7ff;
    border: 1px solid #bee3f8;
    border-radius: var(--sph-radius-lg);
    padding: 18px 22px;
    margin-bottom: 28px;
    font-size: 0.92rem;
    color: #2c5282;
    line-height: 1.7;
}
.sph-legal-section {
    background: var(--sph-white);
    border: 1px solid var(--sph-border);
    border-radius: var(--sph-radius-lg);
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: var(--sph-shadow-sm);
}
.sph-legal-section h2 {
    font-family: var(--sph-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sph-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sph-legal-section h2 span {
    width: 28px;
    height: 28px;
    background: var(--sph-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
}
.sph-legal-section p {
    color: var(--sph-text-light);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 12px;
}
.sph-legal-section p:last-child { margin-bottom: 0; }
.sph-legal-section ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}
.sph-legal-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--sph-text);
    line-height: 1.6;
}
.sph-legal-section ul li i {
    color: var(--sph-accent);
    font-size: 0.6rem;
    margin-top: 5px;
    flex-shrink: 0;
}
.sph-legal-section a {
    color: var(--sph-accent);
    text-decoration: underline;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.sph-whatsapp-float {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 70px);
    right: 16px;
    width: 52px;
    height: 52px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    z-index: 890;
    text-decoration: none;
    transition: var(--sph-transition);
    animation: sph-pulse 2.5s infinite;
}
.sph-whatsapp-float:hover {
    background: #1da851;
    transform: scale(1.1);
    color: white;
    animation: none;
}
@keyframes sph-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.12); }
}
.sph-whatsapp-float-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    background: var(--sph-primary);
    color: white;
    padding: 6px 12px;
    border-radius: var(--sph-radius);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: var(--sph-shadow);
}
.sph-whatsapp-float-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--sph-primary);
}
.sph-whatsapp-float:hover .sph-whatsapp-float-tooltip {
    opacity: 1;
}

@media (min-width: 1025px) {
    .sph-whatsapp-float {
        bottom: 84px;
        right: 24px;
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }
}

/* ============================================
   UPDATED FOOTER WITH LEGAL LINKS
   ============================================ */
.sph-footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.sph-footer-legal a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.sph-footer-legal a:hover {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   PHASE 4 RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sph-search-page-header {
        flex-direction: column;
    }
    .sph-search-page-form {
        width: 100%;
        max-width: 100%;
    }
    .sph-taxonomy-header {
        padding: 20px;
    }
    .sph-taxonomy-header-inner {
        gap: 12px;
    }
    .sph-taxonomy-header .sph-page-title {
        font-size: 1.2rem;
    }
    .sph-legal-section {
        padding: 18px 16px;
    }
    .sph-whatsapp-float {
        bottom: calc(var(--bottom-nav-height) + 60px);
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }
    .sph-whatsapp-float-tooltip {
        display: none;
    }
}

















/* ============================================
   UPDATED GALLERY STYLES
   ============================================ */

/* Gallery Counter */
.sph-gallery-counter {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    z-index: 5;
}

/* Gallery Nav Arrows */
.sph-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    color: var(--sph-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: var(--sph-shadow);
    border: none;
    cursor: pointer;
    transition: var(--sph-transition);
    opacity: 0;
}
.sph-gallery-main:hover .sph-gallery-nav {
    opacity: 1;
}
.sph-gallery-nav-prev { left: 10px; }
.sph-gallery-nav-next { right: 10px; }
.sph-gallery-nav:hover {
    background: var(--sph-accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Fullscreen Button */
.sph-gallery-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 34px;
    height: 34px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    border: none;
    cursor: pointer;
    transition: var(--sph-transition);
    opacity: 0;
    backdrop-filter: blur(4px);
}
.sph-gallery-main:hover .sph-gallery-fullscreen {
    opacity: 1;
}
.sph-gallery-fullscreen:hover {
    background: var(--sph-accent);
    transform: scale(1.1);
}

/* Updated Thumbs Strip */
.sph-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--sph-accent) var(--sph-light-gray);
}
.sph-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.sph-gallery-thumbs::-webkit-scrollbar-track {
    background: var(--sph-light-gray);
    border-radius: 2px;
}
.sph-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--sph-accent);
    border-radius: 2px;
}
.sph-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--sph-radius-sm);
    overflow: hidden;
    border: 2.5px solid var(--sph-border);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--sph-transition);
    position: relative;
}
.sph-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.sph-gallery-thumb:hover img {
    transform: scale(1.08);
}
.sph-gallery-thumb.active {
    border-color: var(--sph-accent);
    box-shadow: 0 0 0 2px rgba(230,57,70,0.2);
}
.sph-gallery-thumb:hover {
    border-color: var(--sph-accent);
    transform: translateY(-2px);
}
.sph-gallery-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(230,57,70,0);
    transition: background 0.2s;
}
.sph-gallery-thumb.active::after {
    background: rgba(230,57,70,0.08);
}

/* Gallery Dots (mobile) */
.sph-gallery-dots {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.sph-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sph-border);
    cursor: pointer;
    transition: var(--sph-transition);
}
.sph-gallery-dot.active {
    background: var(--sph-accent);
    width: 20px;
    border-radius: 4px;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.sph-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.sph-lightbox.open {
    display: flex;
}
.sph-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.94);
    backdrop-filter: blur(6px);
    cursor: zoom-out;
}
.sph-lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
}
.sph-lightbox-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80vw;
    max-height: 70vh;
    min-width: 200px;
    min-height: 200px;
}
#sph-lightbox-img {
    max-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--sph-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: opacity 0.25s ease;
    display: block;
}
#sph-lightbox-img.loading {
    opacity: 0;
}
.sph-lightbox-loader {
    position: absolute;
    color: white;
    font-size: 2rem;
    display: none;
}
.sph-lightbox-loader.visible {
    display: block;
}
.sph-lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--sph-transition);
    z-index: 3;
}
.sph-lightbox-close:hover {
    background: var(--sph-accent);
    transform: scale(1.1);
}
.sph-lightbox-prev,
.sph-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--sph-transition);
    z-index: 3;
    backdrop-filter: blur(4px);
}
.sph-lightbox-prev { left: 16px; }
.sph-lightbox-next { right: 16px; }
.sph-lightbox-prev:hover,
.sph-lightbox-next:hover {
    background: var(--sph-accent);
    border-color: var(--sph-accent);
}
.sph-lightbox-counter {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 14px;
    letter-spacing: 1px;
}
.sph-lightbox-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    max-width: 80vw;
    padding: 4px 2px;
}
.sph-lightbox-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--sph-transition);
    opacity: 0.6;
}
.sph-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sph-lightbox-thumb.active,
.sph-lightbox-thumb:hover {
    border-color: var(--sph-accent);
    opacity: 1;
}

/* Responsive gallery */
@media (max-width: 768px) {
    .sph-gallery-thumbs {
        display: none;
    }
    .sph-gallery-dots {
        display: flex;
    }
    .sph-gallery-nav {
        opacity: 1;
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    .sph-gallery-fullscreen {
        opacity: 1;
    }
    .sph-lightbox-prev { left: 8px; }
    .sph-lightbox-next { right: 8px; }
    .sph-lightbox-prev,
    .sph-lightbox-next {
        width: 38px;
        height: 38px;
    }
    #sph-lightbox-img {
        max-width: 95vw;
        max-height: 60vh;
    }
    .sph-lightbox-thumbs {
        max-width: 95vw;
    }
}