/* ==========================================================================
   PISTON TRIBE: SHOP V9 STYLES (BOXED HEROES)
   ========================================================================== */

/* --- 1. CORE LAYOUT & RESETS --- */
body.woocommerce-shop .site.grid-container,
body.woocommerce-shop #content,
body.woocommerce-shop .site-content {
    max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; float: none !important;
}

.pt-shop-wrapper {
    width: 100%; overflow-x: hidden; 
    background: #fff; /* White BG */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pt-container {
    max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 20px; box-sizing: border-box;
    position: relative; z-index: 2;
}

.pt-section { padding: 20px 0; /* Reduced slightly for boxed look */ }

/* Typography */
.pt-heading-lg {
    font-size: 36px; font-weight: 800; text-transform: uppercase; 
    color: #000; margin: 0 0 10px 0; letter-spacing: -0.5px; line-height: 1.1;
}
.pt-subheading { font-size: 18px; color: #111; margin: 0; }
.pt-separator { width: 60px; height: 4px; background-color: transparent; margin: 20px auto 0; }


/* --- 2. CARD SYSTEMS --- */
.pt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pt-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.pt-nav-card {
    position: relative; height: 350px; display: flex; flex-direction: column; justify-content: flex-end;
    text-decoration: none; overflow: hidden; background: #000; border-radius: 8px; /* Rounded */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}

.pt-nav-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.75; 
    transition: transform 0.5s, opacity 0.5s;
}
.pt-nav-card:hover .pt-nav-bg { opacity: 0.5; transform: scale(1.05); }

.pt-nav-content {
    position: relative; z-index: 2; padding: 30px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    width: 100%; box-sizing: border-box;
}

.pt-nav-subtitle { display: block; color: #fff; opacity: 0.8; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.pt-nav-title { color: #fff; font-size: 28px; font-weight: 800; text-transform: uppercase; margin: 0 0 15px 0; line-height: 1; }
.pt-nav-btn { display: inline-block; color: #fff; font-size: 14px; font-weight: 600; border-bottom: 2px solid #fff; padding-bottom: 2px; }

/* Color Modifiers */
.pt-card-red .pt-nav-content { border-bottom: 4px solid #d00; }
.pt-card-dark .pt-nav-content { border-bottom: 4px solid #fff; }


/* --- 3. VEHICLE SCROLLER --- */
.pt-scroller-track {
    display: flex; 
    gap: 20px; 
    overflow-x: auto; 
    padding-bottom: 20px;
    
    /* Smooth Scroll & Snap */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
    
    /* Hide Scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.pt-scroller-track::-webkit-scrollbar { display: none; }

.pt-cat-card-small {
    /* DESKTOP: 6.5 cards */
    flex: 0 0 calc((100% - 120px) / 6.5);
    
    height: 250px; /* Increased height slightly to fit the new button */
    position: relative; 
    border-radius: 8px; 
    overflow: hidden;
    background: #000; 
    text-decoration: none; 
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom */
}

.pt-cat-card-small .pt-cat-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.7; transition: 0.3s;
}
.pt-cat-card-small:hover .pt-cat-bg { opacity: 0.5; transform: scale(1.05); }

/* Wrapper for Title & Button */
.pt-cat-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.pt-cat-title-small {
    display: block;
    color: #fff; font-weight: 800; text-transform: uppercase; font-size: 18px;
    margin-bottom: 8px; line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.pt-cat-btn {
    display: inline-block;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid #d00; /* Red accent line */
    padding-bottom: 2px;
}

@media (max-width: 1024px) {
    .pt-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pt-grid-2, .pt-grid-3, .pt-grid-4 { grid-template-columns: 1fr; gap: 15px; }

    .pt-cat-card-small {
        /* MOBILE: 2.5 cards */
        flex: 0 0 calc((100% - 40px) / 2.5);
        height: 220px; 
    }
    
    .pt-cat-content { padding: 15px; }
    .pt-cat-title-small { font-size: 15px; }
    .pt-cat-btn { font-size: 11px; }
}


/* --- 4. PROMO HERO (Boxed Version) --- */
.pt-hero-inner-box {
    position: relative; height: 500px; width: 100%;
    background-size: cover; background-position: center;
    border-radius: 8px; overflow: hidden; /* Rounded Corners */
    display: flex; align-items: center; justify-content: center; text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.pt-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 1;
}
.pt-promo-content-centered {
    position: relative; z-index: 2; max-width: 800px; margin: 0 auto; color: #fff;
}
.pt-hero-tag {
    display: inline-block; background: #d00; color: #fff; padding: 5px 10px;
    font-weight: 700; text-transform: uppercase; font-size: 12px; margin-bottom: 15px;
}
.pt-promo-title-lg { font-size: 56px; font-weight: 900; text-transform: uppercase; margin-bottom: 15px; line-height: 1; color: #fff; }
.pt-promo-desc { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }

/* Buttons */
.pt-btn-hero-primary {
    display: inline-block; background: #fff; color: #000; padding: 15px 40px;
    font-weight: 800; text-transform: uppercase; text-decoration: none; border: 2px solid #fff; transition: 0.3s;
}
.pt-btn-hero-primary:hover { background: #ddd; border-color: #ddd; color: #000; }
.pt-btn-hero-primary.pt-btn-inverted { background: #fff; color: #000; border-color: #fff; }
.pt-btn-hero-primary.pt-btn-inverted:hover, 
.pt-btn-hero-primary.pt-btn-inverted:focus { 
    background: #e8e6e6; 
    border-color: #e8e6e6; 
    color: #000000; /* Added: Ensures text turns black so it's readable */
}

/* --- 5. WORK SMARTER BANNER (Boxed) --- */
.pt-mission-grid-box {
    display: flex; min-height: 500px;
    border-radius: 8px; overflow: hidden; /* Rounded */
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.pt-mission-text {
    flex: 1; padding: 80px 60px; display: flex; flex-direction: column; justify-content: center;
    background: #111; color: #fff;
}
.pt-mission-image {
    flex: 1; background-size: cover; background-position: center; min-height: 300px;
}
.pt-label-red { color: #d00; font-weight: 800; text-transform: uppercase; display: block; margin-bottom: 10px; }
.pt-mission-heading { font-size: 48px; font-weight: 900; text-transform: uppercase; margin-bottom: 20px; line-height: 1; color: #fff; }
.pt-mission-body p { font-size: 18px; color: #ccc; margin-bottom: 30px; line-height: 1.6; }


/* --- 6. NEWSLETTER (Boxed) --- */
.newsletter-split-box-inner {
    background-color: #000; 
    border-radius: 8px; /* Rounded */
    padding: 80px 60px;
    display: flex; gap: 50px; align-items: center; justify-content: space-between; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.nl-text-col { flex: 1; }
.nl-title-white { font-size: 32px; font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.nl-desc-white { font-size: 16px; color: #ccc; line-height: 1.5; margin: 0; }

.nl-form-col { flex: 1; }
.nl-form-row { display: flex; gap: 10px; width: 100%; }
.nl-form-row input {
    flex: 1; padding: 15px; border: 1px solid #333; background: #1a1a1a; color: #fff;
}
.nl-form-row button {
    padding: 15px 25px; background: #fff; color: #000; font-weight: 800; text-transform: uppercase; border: none; cursor: pointer;
}
.nl-note-grey { display: block; margin-top: 10px; font-size: 12px; color: #555; }


/* --- 7. CAROUSEL HEADERS & BUTTONS --- */
.pt-section-header-flex {
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; 
    border-bottom: 2px solid #000; padding-bottom: 10px;
}
.pt-section-header-flex .pt-heading-lg { margin-bottom: 0; font-size: 28px; }

.pt-link-arrow {
    font-weight: 700; text-transform: uppercase; font-size: 14px; text-decoration: none; color: #000;
}
.pt-link-arrow:hover { color: #555; }


/* --- 8. PILL BUTTONS (Section Footer) --- */
.pt-section-footer {
    width: 100%; text-align: center; margin-top: 20px; display: flex; justify-content: center;
}

.pt-budget-btn {
    display: inline-block;
    background-color: #000; 
    color: #fff;            
    padding: 12px 40px;     
    border-radius: 100px;   /* Full Pill Shape */
    font-size: 13px;        
    font-weight: 700;       
    text-decoration: none;
    text-transform: uppercase; 
    letter-spacing: 1px;          
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #000;
}

.pt-budget-btn:hover {
    background-color: #333; 
    border-color: #333;
    color: #fff;            
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .pt-grid-2, .pt-grid-3 { grid-template-columns: 1fr; gap: 15px; }
    .pt-nav-card { height: 300px; }
    
    .pt-hero-inner-box { height: 400px; }
    .pt-promo-title-lg { font-size: 32px; }
    
    /* Mission Stack */
    .pt-mission-grid-box { flex-direction: column-reverse; }
    .pt-mission-text { padding: 40px 20px; text-align: center; }
    
    /* Newsletter Stack */
    .newsletter-split-box-inner { flex-direction: column; text-align: center; padding: 40px 20px; gap: 30px; }
    .nl-form-row { flex-direction: column; }
    .nl-form-row button { width: 100%; }

    /* Buttons */
    .pt-budget-btn { width: 80%; padding: 14px 0; }
}