/*
Theme Name: PrimeDrop Storefront
Template: storefront
Description: High-converting modern dropshipping child theme for WooCommerce
Version: 1.0.0
*/

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

:root {
    --pd-primary: #4f46e5;
    --pd-primary-dark: #3730a3;
    --pd-accent: #f97316;
    --pd-dark: #0f172a;
    --pd-slate: #475569;
    --pd-light: #f8fafc;
    --pd-border: #e2e8f0;
    --pd-success: #10b981;
}

body, button, input, select, textarea {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--pd-dark);
    background-color: #f8fafc;
}

/* Hide default Storefront sidebar for full-width modern layout */
#secondary, .widget-area {
    display: none !important;
}
#primary, .content-area {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}
.col-full {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* Top Announcement Bar */
.pd-topbar {
    background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 10px 16px;
    letter-spacing: 0.2px;
}
.pd-topbar span.pd-pill {
    background: var(--pd-accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    margin-right: 8px;
    text-transform: uppercase;
}
.pd-topbar code {
    background: rgba(255,255,255,0.15);
    color: #fde047;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 4px;
}

/* Header Styling */
.site-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--pd-border) !important;
    padding-top: 18px !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 20px -10px rgba(15, 23, 42, 0.06);
}
.site-branding .site-title a {
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, #0f172a 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.site-branding .site-description {
    font-size: 12px !important;
    color: var(--pd-slate) !important;
    margin-top: 2px;
}
.storefront-primary-navigation {
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9;
}
.main-navigation ul li a {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #1e293b !important;
    padding: 14px 16px !important;
}
.main-navigation ul li a:hover {
    color: var(--pd-primary) !important;
}

/* Search Bar */
.site-search .widget_product_search form input[type=search] {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    padding: 11px 20px 11px 42px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

/* Hero Banner */
.pd-hero {
    background: radial-gradient(circle at 85% 20%, #312e81 0%, #0f172a 70%);
    border-radius: 24px;
    padding: 56px 48px;
    margin: 28px 0 32px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.25);
}
.pd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(249, 115, 22, 0.45);
    color: #fdba74;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.pd-hero h1 {
    color: #ffffff !important;
    font-size: 42px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: -1px;
}
.pd-hero h1 span {
    color: #818cf8;
}
.pd-hero p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 28px 0;
    max-width: 560px;
}
.pd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}
.pd-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.5);
    transition: transform 0.2s ease;
}
.pd-btn-primary:hover {
    transform: translateY(-2px);
}
.pd-btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none !important;
    display: inline-block;
}
.pd-hero-stats {
    display: flex;
    gap: 28px;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px;
}
.pd-hero-stat strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}
.pd-hero-stat span {
    font-size: 12px;
    color: #94a3b8;
}
.pd-hero-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}
.pd-hero-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 14px;
}
.pd-hero-card h4 {
    color: #ffffff !important;
    font-size: 17px !important;
    margin: 0 0 6px !important;
    font-weight: 700;
}
.pd-hero-card .pd-deal-price {
    color: #34d399;
    font-size: 20px;
    font-weight: 800;
}
.pd-hero-card .pd-deal-price del {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    margin-right: 6px;
}

/* Trust Badges Grid */
.pd-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}
.pd-trust-item {
    background: #ffffff;
    border: 1px solid var(--pd-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.pd-trust-icon {
    font-size: 26px;
    line-height: 1;
    background: #eef2ff;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pd-trust-item h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    color: var(--pd-dark);
}
.pd-trust-item p {
    font-size: 12.5px;
    color: var(--pd-slate);
    margin: 0;
    line-height: 1.45;
}

/* Category Pills Section */
.pd-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 12px 0 22px;
}
.pd-section-header h2 {
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    letter-spacing: -0.5px;
}
.pd-section-header p {
    margin: 4px 0 0;
    color: var(--pd-slate);
    font-size: 14px;
}
.pd-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 44px;
}
.pd-cat-card {
    background: #ffffff;
    border: 1px solid var(--pd-border);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pd-cat-card:hover {
    border-color: var(--pd-primary);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -10px rgba(79, 70, 229, 0.15);
}
.pd-cat-card h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--pd-dark) !important;
    margin: 0 0 6px !important;
}
.pd-cat-card p {
    font-size: 13px;
    color: var(--pd-slate);
    margin: 0 0 14px;
    line-height: 1.45;
}
.pd-cat-card span.pd-cat-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--pd-primary);
}

/* Product Grid & Cards */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
ul.products::before, ul.products::after {
    display: none !important;
}
ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid var(--pd-border);
    border-radius: 18px;
    padding: 14px 14px 20px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    text-align: left !important;
}
ul.products li.product:hover {
    transform: translateY(-5px);
    border-color: #c7d2fe;
    box-shadow: 0 18px 35px -12px rgba(15, 23, 42, 0.12);
}
ul.products li.product img {
    width: 100% !important;
    height: 230px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin: 0 0 14px 0 !important;
}
ul.products li.product .woocommerce-loop-product__title {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: var(--pd-dark) !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    min-height: 44px;
}
ul.products li.product .star-rating {
    margin: 0 0 8px 0 !important;
    color: #f59e0b !important;
}
ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--pd-primary) !important;
    margin-bottom: 14px !important;
}
ul.products li.product .price del {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    margin-right: 6px !important;
}
ul.products li.product .price ins {
    background: transparent !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}
ul.products li.product .onsale {
    position: absolute !important;
    top: 24px !important;
    left: 24px !important;
    right: auto !important;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 99px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}
ul.products li.product .button {
    width: 100%;
    text-align: center;
    background: var(--pd-dark) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: background 0.2s ease;
    margin-top: auto !important;
}
ul.products li.product .button:hover {
    background: var(--pd-primary) !important;
}

/* Single Product Enhancements */
.single-product div.product .summary .price {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--pd-primary) !important;
}
.single-product div.product form.cart .button {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
}
.pd-product-guarantees {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    font-size: 13px;
    color: #334155;
}
.pd-product-guarantees div {
    margin-bottom: 6px;
}
.pd-product-guarantees div:last-child {
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
    padding: 48px 0 32px !important;
    margin-top: 64px !important;
}
.site-footer a {
    color: #ffffff !important;
}

@media (max-width: 1024px) {
    ul.products, .pd-trust-grid, .pd-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .pd-hero {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }
}
@media (max-width: 640px) {
    ul.products, .pd-trust-grid, .pd-cat-grid {
        grid-template-columns: 1fr !important;
    }
    .pd-hero h1 {
        font-size: 30px !important;
    }
}