/* ============================================
   SEAPENG Custom Theme - EXACT MATCH to seapengs.com
   ============================================ */

:root {
    --sp-primary: #0344A9;
    --sp-primary-dark: #0344A9;
    --sp-price: #D21936;
    --sp-price-original: #999;
    --sp-discount-bg: #AE2238;
    --sp-text: #22304a;
    --sp-text-medium: #676767;
    --sp-text-low: #888;
    --sp-text-title: #232323;
    --sp-ink: #22304a;
    --sp-bg: #fff;
    --sp-bg-soft: #f5f7fa;
    --sp-border: #ddd;
    --sp-container: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; color: var(--sp-ink); background: var(--sp-bg); }
a { color: var(--sp-primary); text-decoration: none; }
a:hover { color: var(--sp-primary-dark); }
h1, h2, h3, h4, h5, h6 { font-family: 'Arimo', Arial, Helvetica, sans-serif; font-weight: 700; color: var(--sp-text-title); margin: 0 0 10px; }
img { max-width: 100%; height: auto; }
.sp-container { max-width: var(--sp-container); margin: 0 auto; padding: 0 50px; }

/* TOP BAR */
.sp-topbar { background: var(--sp-ink); color: #fff; font-size: 13px; line-height: 36px; height: 36px; overflow: hidden; }
.sp-topbar .sp-container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.sp-topbar-social { display: flex; gap: 10px; }
.sp-topbar-social a { color: rgba(255,255,255,0.7); display: flex; align-items: center; }
.sp-topbar-social a:hover { color: #fff; }

/* HEADER */
.sp-header { background: var(--sp-bg); border-bottom: 1px solid #eee; }
.sp-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 30px; }
.sp-logo { flex-shrink: 0; }
.sp-logo img { max-height: 50px; width: auto; }
.sp-search { flex: 1; max-width: 500px; }
.sp-search form { display: flex; position: relative; }
.sp-search-input { width: 100%; padding: 10px 40px 10px 15px; border: 1px solid #ddd; border-radius: 2px; background: #f6f6f6; font-size: 14px; outline: none; }
.sp-search-input:focus { border-color: var(--sp-primary); background: #fff; }
.sp-search-btn { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 36px; border: none; background: var(--sp-primary); color: #fff; border-radius: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sp-header-icons { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.sp-icon { color: var(--sp-ink); position: relative; display: flex; }
.sp-icon:hover { color: var(--sp-primary); }
.sp-cart-count { position: absolute; top: -8px; right: -8px; background: var(--sp-primary); color: #fff; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* NAVIGATION */
.sp-nav { background: var(--sp-bg); border-bottom: 1px solid #eee; }
.sp-nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.sp-nav-menu li { position: relative; }
.sp-nav-menu a { display: block; padding: 6px 6px; color: #232323; font-size: 14px !important; font-weight: 700; text-transform: none !important; letter-spacing: normal; text-decoration: none; transition: color 0.2s; font-family: 'Arimo', Arial, Helvetica, sans-serif; }
.sp-nav-menu a:hover, .sp-nav-menu .current-menu-item a { color: var(--sp-primary); }

/* SITE CONTENT */
.sp-site-content { padding: 0; }

/* FOOTER */
.sp-footer { background: var(--sp-bg-soft); padding: 50px 0 0; margin-top: 40px; }
.sp-footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 30px; }
.sp-footer-title { font-size: 14px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #232323; margin-bottom: 20px; }
.sp-footer-links { list-style: none; margin: 0; padding: 0; }
.sp-footer-links li { margin-bottom: 8px; }
.sp-footer-links a { color: #676767; font-size: 14px; }
.sp-footer-links a:hover { color: var(--sp-primary); }
.sp-footer-social { display: flex; gap: 12px; }
.sp-footer-social a { color: #676767; }
.sp-footer-social a:hover { color: var(--sp-primary); }
.sp-footer-payment { text-align: center; padding: 20px 0; border-top: 1px solid #e0e0e0; margin-top: 30px; }
.sp-footer-payment img { height: 30px; margin: 0 8px; opacity: 0.6; }
.sp-footer-copyright { text-align: center; padding: 15px 0 25px; font-size: 13px; color: #888; }

/* HERO */
.sp-home-hero { position: relative; min-height: 500px; overflow: hidden; display: flex; align-items: center; }
.sp-home-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.sp-home-hero-overlay { position: absolute; inset: 0; background: #22304a; opacity: 0.5; z-index: 1; }
.sp-home-hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; width: 100%; }
.sp-home-hero-left { flex: 1; }
.sp-home-hero-left h1 { color: #fff; font-size: 68px; font-weight: 700; line-height: 1.1; margin: 0 0 20px; font-family: 'Arimo', Arial, Helvetica, sans-serif; }
.sp-home-hero-left p { color: rgba(255,255,255,0.8); font-size: 16px; line-height: 1.6; margin-bottom: 25px; }
.sp-home-hero-right { flex: 0 0 320px; }
.sp-featured-product { background: #fff; border-radius: 8px; padding: 20px; text-align: center; box-shadow: 0 18px 50px rgba(34,48,74,0.10); }
.sp-featured-product img { max-width: 100%; height: auto; border-radius: 4px; margin-bottom: 15px; }
.sp-featured-product h2 { font-size: 20px; font-weight: 700; color: #232323; margin-bottom: 15px; font-family: Arial, Helvetica, sans-serif; }
.sp-home-hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sp-home-hero-buttons strong { display: inline-block; width: 1px; height: 20px; background: rgba(255,255,255,0.3); }

/* BUTTONS */
.sp-btn { display: inline-block; padding: 12px 28px; font-size: 14px; font-weight: 400; border-radius: 2px; text-decoration: none; transition: all 0.2s; font-family: Arial, Helvetica, sans-serif; }
.sp-btn-primary { background: #0344A9; color: #fff !important; }
.sp-btn-primary:hover { background: #0344A9; }
.sp-btn-outline { border: 2px solid rgba(255,255,255,0.8); color: #fff !important; background: transparent; }
.sp-btn-outline:hover { background: rgba(255,255,255,0.1); }

/* SECTIONS */
.sp-section { padding: 80px 0; }
.sp-section-title { font-size: 28px; font-weight: 700; color: #232323; text-align: center; margin: 0 0 40px; font-family: 'Arimo', Arial, Helvetica, sans-serif; }
.sp-subsection-title { font-size: 22px; font-weight: 700; color: #232323; text-align: center; margin: 0 0 10px; font-family: 'Arimo', Arial, Helvetica, sans-serif; }
.sp-section-footer { text-align: center; margin-top: 30px; }
.sp-divider { border: none; border-top: 1px solid #ddd; max-width: 100px; margin: 0 auto; }
.sp-text-center { text-align: center; }

/* GRIDS */
.sp-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.sp-cat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sp-cat-item { padding: 20px; border-radius: 8px; background: rgba(255,255,255,0.92); box-shadow: 0 18px 50px rgba(34,48,74,0.10); text-align: center; }
.sp-cat-item img { width: 100%; max-width: 300px; height: auto; border-radius: 4px; margin-bottom: 15px; }
.sp-cat-item h3 { font-size: 19px; font-weight: 700; color: #232323; margin: 18px 0 8px; font-family: 'Arimo', Arial, Helvetica, sans-serif; }
.sp-cat-item p { font-size: 14px; color: #676767; margin-bottom: 15px; }
.sp-cat-item .sp-btn { font-size: 14px; padding: 10px 20px; }
.sp-features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.sp-feature { padding: 20px; border-radius: 8px; background: rgba(255,255,255,0.92); box-shadow: 0 18px 50px rgba(34,48,74,0.10); text-align: center; }
.sp-feature h3 { font-size: 20px; font-weight: 700; color: #232323; margin: 0 0 10px; }
.sp-feature p { font-size: 14px; color: #676767; }
.sp-image-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sp-image-row img { width: 100%; height: auto; border-radius: 4px; }
.sp-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sp-faq-item { padding: 20px; border-radius: 8px; background: rgba(255,255,255,0.92); box-shadow: 0 18px 50px rgba(34,48,74,0.10); }
.sp-faq-item h3 { font-size: 19px; font-weight: 700; color: #232323; margin: 0 0 10px; }
.sp-faq-item p { font-size: 14px; color: #676767; }

/* WOOCOMMERCE PRODUCT GRID */
.sp-section ul.products { margin: 0 -10px !important; }
.sp-section li.product { width: calc(25% - 20px) !important; margin: 0 10px 20px !important; padding: 15px; background: #fff; border-radius: 8px; box-shadow: 0 18px 50px rgba(34,48,74,0.10); text-align: center; list-style: none; }
.sp-section li.product:hover { box-shadow: 0 18px 50px rgba(34,48,74,0.18); }
.sp-product-card { padding: 15px; background: #fff; border-radius: 8px; text-align: center; }
.sp-product-thumb { display: block; overflow: hidden; border-radius: 4px; }
.sp-product-thumb img { width: 100%; height: auto; }
.sp-product-title { font-size: 14px !important; font-weight: 700; color: #232323; margin: 12px 0 6px; }
.sp-product-title a { color: #232323; text-decoration: none; }
.sp-product-title a:hover { color: var(--sp-primary); }
.sp-product-price { display: block; font-size: 14px !important; font-weight: 700; color: var(--sp-price); margin-bottom: 10px; }
.sp-product-price del { color: var(--sp-price-original); font-size: 14px; font-weight: 400; }
.sp-product-price ins { text-decoration: none; }
.sp-product-btn .button { background: var(--sp-primary) !important; color: #fff !important; border-radius: 2px !important; font-size: 13px !important; padding: 8px 16px !important; }

/* SALE BADGE */
.woocommerce span.onsale { background: var(--sp-discount-bg) !important; color: #fff !important; border-radius: 2px; font-size: 12px; font-weight: 700; text-transform: none !important; padding: 4px 8px; min-height: auto; min-width: auto; line-height: 1.2; }

/* WOOCOMMERCE ARCHIVE */
.sp-section { padding: 40px 0; }
.woocommerce .woocommerce-ordering { margin-bottom: 20px; }
.woocommerce .woocommerce-ordering select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 2px; }

/* WOOCOMMERCE SINGLE PRODUCT */
.woocommerce div.product div.images { width: 48% !important; float: left !important; }
.woocommerce div.product div.summary { width: 48% !important; float: right !important; padding-left: 30px; }
.woocommerce div.product .product_title { font-size: 28px; font-weight: 700; color: #232323; }
.woocommerce div.product p.price { font-size: 24px; color: var(--sp-price) !important; font-weight: 700; }
.woocommerce div.product p.price del { font-size: 18px; color: #999; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product form.cart .button { background: var(--sp-primary) !important; color: #fff !important; border-radius: 2px !important; padding: 10px 24px !important; }
.woocommerce div.product .woocommerce-tabs { clear: both; margin-top: 40px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { margin-bottom: 20px; border-bottom: 2px solid #ddd; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: none !important; background: none !important; margin: 0 5px -2px 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 600; padding: 10px 20px; color: #676767; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--sp-primary); border-bottom: 2px solid var(--sp-primary); }
.woocommerce div.product .woocommerce-tabs .panel { padding: 20px 0; }
.woocommerce div.product .woocommerce-tabs table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.woocommerce div.product .woocommerce-tabs table th, .woocommerce div.product .woocommerce-tabs table td { padding: 10px 15px; border: 1px solid #eee; text-align: left; }
.woocommerce div.product .woocommerce-tabs table th { background: #f6f6f6; width: 30%; }
.product_meta { margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; font-size: 13px; color: #676767; }
.woocommerce .related, .woocommerce .upsells { clear: both; margin-top: 50px; }
.woocommerce .related h2, .woocommerce .upsells h2 { font-size: 22px; font-weight: 700; color: #232323; margin-bottom: 20px; }

/* SOCIAL SHARE */
.social-share { margin: 20px 0; display: flex; gap: 10px; }
.social-share a { display: inline-block; padding: 6px 14px; border-radius: 2px; color: #fff; font-size: 13px; text-decoration: none; }
.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-pinterest { background: #bd081c; }
.share-email { background: #676767; }

/* PAGINATION */
.woocommerce nav.woocommerce-pagination { margin-top: 30px; }
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li { margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { padding: 8px 14px; border-radius: 2px; border: 1px solid #ddd; color: #22304a; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); }

/* GUTENBERG COLORS */
.has-ink-background-color { background-color: #22304a !important; }
.has-primary-background-color { background-color: #0344A9 !important; }
.has-white-color { color: #fff !important; }

/* SP-NAV-TOGGLE HIDE ON DESKTOP */
.sp-nav-toggle { display: none !important; }

/* RESPONSIVE */
@media (max-width: 1024px) { .sp-cat-grid { grid-template-columns: repeat(3, 1fr); } .sp-cat-grid-4 { grid-template-columns: repeat(2, 1fr); } .sp-features-grid { grid-template-columns: repeat(3, 1fr); } li.product { width: calc(33.33% - 20px) !important; } .sp-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .sp-container { padding: 0 20px; } .sp-topbar-social { display: none; } .sp-header-inner { flex-wrap: wrap; gap: 15px; } .sp-search { order: 3; max-width: 100%; flex-basis: 100%; } .sp-home-hero-inner { flex-direction: column; } .sp-home-hero-left h1 { font-size: 32px; } .sp-home-hero-right { flex: none; width: 100%; max-width: 320px; } .sp-nav-menu { display: none; flex-direction: column; width: 100%; } .sp-nav-menu.active { display: flex; } .sp-nav-menu a { font-size: 14px; padding: 10px; } .sp-cat-grid { grid-template-columns: repeat(2, 1fr); } .sp-features-grid { grid-template-columns: repeat(2, 1fr); } .sp-image-row { grid-template-columns: 1fr; } .sp-faq-grid { grid-template-columns: 1fr; } .sp-section { padding: 40px 0; } li.product { width: calc(50% - 20px) !important; } .sp-footer-inner { grid-template-columns: 1fr; } .woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; padding-left: 0; } }
@media (max-width: 480px) { .sp-cat-grid { grid-template-columns: 1fr; } .sp-features-grid { grid-template-columns: 1fr; } li.product { width: 100% !important; margin: 0 0 15px !important; } }
/* ===== DESIGNER FIXES ===== */
.sp-home-hero { min-height: 650px; }
.sp-home-hero-overlay { 
    background: linear-gradient(90deg, rgba(245,247,250,.98) 0%, rgba(245,247,250,.20) 100%);
    opacity: 1;
}
.sp-home-hero-left h1 { color: #22304a; line-height: 1.02; }
.sp-home-hero-left p { color: #3f4852; font-size: 19px; }
.sp-home-hero-inner { max-width: min(1180px, 100% - 40px); margin: 0 auto; padding: 0 20px; }
.sp-btn { border-radius: 6px; min-height: 44px; }
.sp-btn-primary { background: #064cad; }
.sp-btn-outline { border-color: #064cad; color: #064cad !important; background: transparent; }
.sp-btn-outline:hover { background: rgba(6,76,173,0.1); }
.sp-home-hero-buttons strong { display: none; }
.sp-home-hero-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.sp-home-hero-eyebrow-dot { width: 8px; height: 8px; background: #d9342b; border-radius: 50%; display: inline-block; }
.sp-home-hero-eyebrow-text { font-size: 14px; color: #676767; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.sp-trust-row { display: flex; gap: 20px; margin-top: 30px; }
.sp-trust-card { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.sp-trust-card svg { flex-shrink: 0; }
.sp-trust-card span { font-size: 13px; color: #22304a; font-weight: 600; }
.sp-featured-product .sp-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; justify-content: center; }
.sp-featured-product .sp-spec { padding: 4px 12px; background: #f5f7fa; border-radius: 999px; font-size: 12px; color: #676767; }

/* ===== FIX: Nav wrapping ===== */
.sp-nav-menu { justify-content: flex-start; }
.sp-nav-menu a { padding: 6px 6px !important; white-space: nowrap !important; }

/* ===== FIX: Product card equal height ===== */
.sp-section li.product { display: flex; flex-direction: column; }
.sp-section li.product .sp-product-card { flex: 1; display: flex; flex-direction: column; }
.sp-section li.product .sp-product-thumb { flex-shrink: 0; }
.sp-section li.product .sp-product-title { flex: 1; }
.sp-section li.product .sp-product-btn { flex-shrink: 0; }
.sp-section li.product .sp-product-btn .button { min-height: 36px; display: inline-flex; align-items: center; }

/* ===== FIX: Equal height product cards ===== */
.sp-section ul.products { display: flex; flex-wrap: wrap; }
.sp-section li.product { display: flex !important; }
.sp-section li.product .sp-product-card { flex: 1; display: flex; flex-direction: column; }
.sp-section li.product .sp-product-thumb { flex-shrink: 0; }
.sp-section li.product .sp-product-title { min-height: 44px; flex: 1; display: flex; align-items: flex-start; }
.sp-section li.product .sp-product-btn { flex-shrink: 0; margin-top: auto; }

/* ===== FIX: Sale badge position ===== */
.woocommerce ul.products li.product .onsale {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 10;
}
.sp-section li.product { position: relative; overflow: visible; }
.sp-product-thumb { position: relative; }

/* ===== FIX: Equal height cards ===== */
.sp-section ul.products { display: flex; flex-wrap: wrap; align-items: stretch; }
.sp-section li.product { display: flex !important; flex-direction: column; }
.sp-section li.product .sp-product-card { flex: 1; display: flex; flex-direction: column; height: 100%; }
.sp-section li.product .sp-product-thumb { flex-shrink: 0; }
.sp-section li.product .sp-product-title { 
    min-height: 44px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    overflow: hidden;
}
.sp-section li.product .sp-product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sp-section li.product .sp-product-btn { flex-shrink: 0; margin-top: auto; }

/* ===== FIX: Equal card height ===== */
.sp-section li.product { min-height: 460px; }
.sp-section li.product .sp-product-title { min-height: 44px; }

/* ===== FIX: Sale badge on image ===== */
.sp-section li.product .onsale {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 10;
}

/* ===== PRODUCT GALLERY ===== */
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.flex-viewport { margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
.flex-control-thumbs { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.flex-control-thumbs li { flex: 1; max-width: 80px; cursor: pointer; }
.flex-control-thumbs li img { width: 100%; height: auto; border-radius: 4px; opacity: 0.6; transition: opacity 0.2s; border: 2px solid transparent; }
.flex-control-thumbs li img.flex-active, .flex-control-thumbs li img:hover { opacity: 1; border-color: #064cad; }

/* ===== QUANTITY INPUT ===== */
.woocommerce div.product form.cart .quantity { float: left; margin-right: 10px; }
.woocommerce .quantity .qty {
    width: 60px;
    height: 42px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 14px;
    text-align: center;
    background: #fff;
}
.woocommerce div.product form.cart .button { float: left; }
