﻿c/* --- 1. GLOBAL RESET --- */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    /* Use 'clip' instead of 'hidden' to keep sticky headers working */
    overflow-x: clip; 
    font-family: Arial, sans-serif;
    background-color: #ffffff !important;
}

/* --- BODY CONTENT LINK STYLES (Excludes Header/Footer) --- */

/* Targets links inside your About and FAQ sections */
.about-story-container a, 
.faq-section-container a,
.story-text-block a {
    color: #a52a2a !important; /* Madison's Red */
    text-decoration: underline !important;
    transition: color 0.3s ease;
}

/* Hover state for Body Links (Burnt Orange) */
.about-story-container a:hover, 
.faq-section-container a:hover,
.story-text-block a:hover {
    color: #d16200 !important; /* Burnt Orange */
    text-decoration: none !important;
}

/* Ensure visited links in the body don't turn purple */
.about-story-container a:visited, 
.faq-section-container a:visited,
.story-text-block a:visited {
    color: #a52a2a !important;
}


* {
    box-sizing: border-box; /* Crucial for preventing width blowouts */
}

/* --- 2. TOP CART BAR ---
.top-cart-bar {
    background: #333;
    color: white;
    padding: 10px 40px; 
    display: flex;

    justify-content: space-between; 
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    
} */

.top-cart-bar {
    background: #333;
    color: white;
    
    /* THE MAGIC: Keeps content in a 1200px 'safe zone' on big screens */
    /* 10px Top/Bottom | Sides calculated to keep center clear */
    padding: 10px max(40px, (100% - 1200px) / 2) !important; 
    
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box; /* This keeps the math accurate */
}

/* Tagline styling: smaller and softer white */
.tagline {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #cccccc; /* A soft light gray/off-white so it's not too bright */
    letter-spacing: 0.5px;
    font-style: italic;
}

/* Container to keep them perfectly level */
.cart-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; 
}

/* 1. THE SHOP BUTTON (Now using the Yellow/Gold look) */
.top-shop-btn {
    background: #ffc439 !important; /* PayPal Yellow */
    color: #000 !important;
    border: 1px solid #d2a600 !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.2;
}

.top-shop-btn:hover {
    background: #ffed66 !important; /* Bright Butter Yellow Glow */
    border-color: #ffc439 !important;
    box-shadow: 0 0 8px rgba(255, 196, 57, 0.4);
}

/* 2. THE CART BUTTON (The New Amber/Orange - No Pink) */
.view-cart-btn {
    background: #ff9e42 !important; /* Base Honey Amber (Golden Orange)f4a460 */
    color: #222 !important;          
    border: 1px solid #d48340;       
    padding: 8px 15px !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none !important;
    font-size: 13px !important;      
    transition: all 0.2s ease;
}

.view-cart-btn:hover {
    background: #ffc107 !important; /* VIVID AMBER GLOW (Bright & Bold, No Pink) */
    border-color: #ffca2c !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5); /* Stronger glow for the final action */
}


/* Ensure the PayPal form doesn't add extra space */
.top-cart-bar form {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
}







/* --- 3. UPDATED STICKY HEADER & NAV (VERSION #3 RE-STYLED) ---
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 15px 40px; 
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 38px; 
    z-index: 999;
    transition: all 0.3s ease-in-out !important;
    will-change: padding, background-color;   
    backface-visibility: hidden;             


    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;    
    
} */

/* --- 3. UPDATED STICKY HEADER (STABILIZED & CENTERED) --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    
    /* THE FIX: Full-width white background, but centered content */
    width: 100% !important;
    padding: 15px max(40px, (100% - 1200px) / 2) !important; 
    box-sizing: border-box !important;

    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 38px; 
    z-index: 999;
    
    /* Smooth transitions */
    transition: all 0.3s ease-in-out !important;
    will-change: padding, background-color;
    backface-visibility: hidden;
}

/* 
   FIX: When sticky, we reduce the overall padding 
   but add a bit extra to the TOP to push the logo/links down 
*/
.site-header.sticky-active {
    padding: 14px 40px 8px 40px; /* Top 12px, Right 40, Bottom 8, Left 40 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 300px; 
    height: auto;
    display: block; 
    transition: max-width 0.3s ease;
}

/* Shrink logo but keep it centered */
.site-header.sticky-active .logo img {
    max-width: 180px;
    margin: 0; 
}

/* Navigation Centering */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    margin-left: 30px;
    font-size: 15px; 
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #b12704;
}



/* --- MOBILE HAMBURGER STYLES --- */
.mobile-toggle {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}


/* MAIN BRAND LOGO HEADER */
.brand-logo-header {
    border-bottom: none !important; /* Forces the logo's line OFF */
    margin-top: 0 !important;      /* Pulls logo up */
    margin-bottom: 2px;             /* Tucks the logo closer to the red text */
    padding-bottom: 0;
}

.brand-logo-header img {
    width: 280px;      /* Smaller, cleaner brand size */
    height: auto;
    display: block;
}

/* --- NEW: STANDARD PAGE HEADER (About, Policies, FAQs) --- */
/* --- COMPACT STANDARD PAGE HEADER --- */
.standard-header-area {
    text-align: center;
    /* Reduced top padding from 40px to 15px */
    padding: 15px 20px 5px 20px; 
    max-width: 900px;
    margin: 0 auto;
}

.standard-title {
    font-family: "Georgia", serif;
    font-size: 42px;
    font-weight: 300;
    color: #333;
    letter-spacing: -1px;
    margin-top: 0 !important;
    margin-bottom: 10px; /* Tighter gap to the red line */
}

.title-accent-line {
    width: 60px;
    height: 4px;
    background-color: #a52a2a;
    margin: 0 auto 15px auto; /* Tighter gap below the line */
    border-radius: 2px;
}

.intro-pages-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px;
    max-width: 1150px;
    margin: 40px auto;
    padding: 0 40px;
    align-items: flex-start;
}


/* --- 4. INTRO SPLIT-SCREEN LAYOUT --- */
.intro-split-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 50px;
    max-width: 1150px;
    margin: 40px auto;
    padding: 0 40px;
    align-items: flex-start;
}

.intro-left {
    flex: 1.8; 
    min-width: 320px;
    text-align: left;
}

.intro-left h1 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 24px;      /* Keep it at your preferred 24px */
    font-weight: 600;     /* Medium weight - not too heavy, not too thin */
    text-transform: none; /* No all-caps */
    color: #a52a2a;       /* Deep "Brownish Red" - very vintage/classic */
    margin-top: 0;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #f0f0f0; /* Thin light-grey line underneath */
    letter-spacing: 0.2px;
}

/* OPTIONAL: Adds a tiny bit of space under your new subtitle
.intro-left p strong {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 17px; 
    color: #333;
} */

/* SUBTITLE (Styled like Polishing H2) */
.intro-subtitle {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 22px;
    color: #a52a2a;       /* Vintage Red */
    font-weight: 500;
    margin-top: 0 !important;      /* PULLS RED TEXT UP TO LOGO */
    
    /* THE LINE LOGIC */
    border-bottom: 2px solid #f0f0f0 !important; /* Clean accent line ON */
    padding-bottom: 12px;  /* Space between the red text and the line */
    margin-bottom: 8px;   /* Space between the line and the paragraph */
    text-align: left;
}

.intro-left p {
    font-size: 16px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
}

.intro-highlight {
    font-weight: bold;
    color: #333;
    display: block;
    margin-top: 20px;
}

/* --- SMOOTH SCROLLING --- */
html {
    scroll-behavior: smooth;
}

/* --- THE PERFECTED SHOP BUTTON --- */
.jump-to-shop {
    /* Use flex to align the text and the caret on the same invisible center line */
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    
    background-color: #a52a2a !important; 
    color: #ffffff !important;
    
    /* TIGHT MARGINS */
    margin: 5px 0 10px 0 !important;
    
    /* SYMMETRICAL PADDING */
    padding: 10px 22px !important; 
    
    text-decoration: none !important;
    font-family: Arial, sans-serif !important;
    font-weight: bold !important;
    font-size: 16px !important;
    border-radius: 4px !important;
    box-shadow: 0 3px 5px rgba(0,0,0,0.15) !important;
}

/* THE BOLD CARET */
.btn-caret {
    display: inline-block !important;
    margin-left: 10px;    /* Space between 'Finishes' and the caret */
    font-size: 10px;      /* Carets are naturally large, so 10px looks 'bold' but right-sized */
    line-height: 1;
    
    /* This 1px nudge usually fixes the "optical" center for Serif/Sans fonts */
    transform: translateY(1px); 
    
    transition: transform 0.2s ease;
}

/* HOVER EFFECT: The caret 'bounces' down */
.jump-to-shop:hover .btn-caret {
    transform: translateY(3px);
}

.jump-to-shop:hover {
    background-color: #8b0000 !important;
}


/* --- UNIQUE STORY PAGE BUTTON --- */
.story-cta-btn {
    display: inline-block !important;
    background-color: #ff9e42 !important; /* Vivid Madison Amber */
    color: #111 !important;               /* Deep charcoal text */
    padding: 14px 30px !important;        /* Nice large clickable area */
    font-family: 'Arial', sans-serif;
    font-size: 17px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border: 1px solid #d98411 !important; /* Your logo orange for the border */
    border-radius: 5px !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.story-cta-btn:hover {
    background-color: #ffb366 !important; /* Brighter glow on hover */
    box-shadow: 0 5px 12px rgba(217, 132, 17, 0.3);
    transform: translateY(-1px);          /* Subtle professional lift */
    color: #000 !important;
}

/* Container to center it below your text */
.cta-wrapper {
    width: 100%;
    text-align: center;
    margin: 40px 0;
}

/* THE ANCHOR OFFSET LOGIC */
.anchor-offset {
    display: block;
    position: relative;
    top: -220px;       /* Pulls the landing point up 220 pixels */
    visibility: hidden;
    height: 0;         /* Ensures it takes up no physical space */
    margin: 0;
}

/* --- 5. SIDEBAR (VIDEO & GUIDE) --- */
.intro-right {
    flex: 1;
    /* Change 350px to 300px so it fits small screens better */
    min-width: 300px; 
    padding: 25px;            
    background-color: #F5F5F5;
    border-radius: 8px;       
    border: 1px solid #EAEAEA;
    display: flex;
    flex-direction: column;   
    gap: 20px;
    box-sizing: border-box; /* This keeps padding inside the width */
}

/* RESOURCE SECTION TITLE */
.resource-title {
    font-family: Arial, sans-serif;
    font-size: 16px;      /* Slightly smaller than your red subtitle */
    font-weight: 600;     /* Extra bold to stand out in the grey box */
    color: #000000;       /* Solid Black */
    text-transform: uppercase;
    /*letter-spacing: 1px;*/
    margin-top: 0;
    margin-bottom: 2px;  /* Space between title and video */
    text-align: center;   /* Center it to match the video below */
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.sidebar-guide {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    transition: transform 0.2s;
}

.sidebar-guide:hover {
    transform: scale(1.03);
}

/* --- 6. POLISHING SECTION (MATCHED TO VIDEO BOX) --- */
.polishing-section {
    width: 95%;            /* Use 95% instead of a fixed px width */
    max-width: 1100px;     /* Keeps it from getting too big on huge monitors */
    margin: 40px auto;     /* 'auto' is the secret to perfect centering */    /* Adding the subtle grey background and framing */
    background-color: #F9F9F9; 
    padding: 30px 40px;      /* Balanced padding inside the box */
    border-radius: 8px;      /* Soft corners like the video box */
    border: 1px solid #EAEAEA; 
    box-sizing: border-box;
}

.polishing-pkg-box {
    overflow: hidden;
    display: block;
}

.polishing-img {
    float: left; 
    margin-right: 25px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    background-color: #fff; /* Makes the image stand out against the grey */
    padding: 5px;           /* Subtle "frame" for the photo */
}

/* STYLING FOR THE POLISHING PACKAGE TITLE (MATCHED TO TOP) */
.polishing-pkg-box h2 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 17px;      /* YOUR PREFERRED SIZE */
    font-weight: 600;
    text-transform: none;
    color: #a52a2a;       /* Vintage Red */
    margin-top: 0;
    margin-bottom: 12px;  
    border-bottom: none !important;
    padding-bottom: 0;
}

/* STYLING FOR THE POLISHING PACKAGE TEXT (BOLD & DARK) */
.polishing-pkg-box p {
    font-family: Arial, sans-serif;
    /* Using 17px or 18px makes it feel 'larger' and more readable */
    font-size: 16px !important; 
    line-height: 1.2 !important;
    color: #111 !important;     /* Deep charcoal/black for authority */
    font-weight: 500 !important; /* Slightly thicker than normal text */
    margin-top: 0;
    -webkit-font-smoothing: antialiased; /* Keeps dark text looking sharp */
}

/* --- 7. POLICY PAGE CARDS --- */

.policy-card {
    max-width: 1100px;
    /* TIGHTER GAP: Pulls boxes closer together */
    margin: 5px auto !important; 
    background-color: #F9F9F9; 
    padding: 25px 40px;      
    border-radius: 6px;      
    border: 1px solid #EAEAEA; 
    box-sizing: border-box;
}

.policy-box h2 {
    font-family: "Georgia", serif;
    font-size: 20px;      
    font-weight: 500;
    color: #a52a2a; 
    margin-top: 0;
    margin-bottom: 12px;
}

.policy-box p {
    color: #111; 
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* --- 8. ABOUT PAGE STORYBOOK LAYOUT --- */

/* 1. PULL TAGLINE DOWN */
.standard-header-area {
    text-align: center;
    padding: 15px 20px 0 20px !important; 
    max-width: 900px;
    margin: 0 auto;
}

/* 1. PUSH TAGLINE DOWN */
.standard-tagline {
    color: #808080; 
    font-size: 14px; 
    max-width: 700px; 
    margin: 0 auto !important;     /* ZERO bottom margin */
    padding-bottom: 0 !important;  /* ZERO bottom padding */
    line-height: 1.1 !important;   /* REMOVES 'AIR' BELOW LETTERS */
    text-align: center;
}

/* 2. PINCH THE DIVIDER LINE */
.story-divider {
    width: 100%;
    height: 1px;
    background-color: #eee;
    /* NEGATIVE margins pull BOTH elements inward */
    margin: -2px auto -15px auto !important; 
    max-width: 1150px;
    border: none;
    display: block;
}

.about-story-container {
    max-width: 1150px;
    /* CHANGE: Reduced 60px to 10px or 15px to close the gap */
    margin: 0px auto 15px auto !important; 
    padding: 0 10px;
}

/* 3. PULL SUBTITLE UP */
.story-text-block p.story-lead {
    font-family: "Georgia", serif !important;
    font-size: 22px !important;    
    font-weight: 500 !important;   
    color: #a52a2a !important;     
    margin-top: 0 !important; 
    padding-top: 0 !important;
    line-height: 1.1 !important;
    display: block !important;
}

/* THE THANK YOU TITLE: Elegant, Red, and Centered */
.story-text-block p.thank-you-title {
    font-family: "Georgia", serif !important;
    font-size: 19px !important;    
    font-weight: 500 !important;   
    color: #a52a2a !important;     
    text-align: center !important; 
    margin-bottom: 15px !important;
    font-style: italic !important;
    display: block !important;
}

/* THE THANK YOU TITLE: Keeping it elegant at 19px */
.story-text-block p.thank-you-title {
    font-family: "Georgia", serif !important;
    font-size: 19px !important;    
    font-weight: 500 !important;   
    color: #a52a2a !important;     /* VINTAGE RED */
    text-align: center !important; 
    margin-bottom: 15px !important;
    font-style: italic !important;
    display: block !important;
}
/* THE BODY PARAGRAPHS */
.story-text-block p {
    font-family: Arial, sans-serif;
    font-size: 16px !important;    
    font-weight: 400 !important;   
    line-height: 1.7 !important;   
    margin-bottom: 20px;
    color: #333 !important;        
    text-align: left;
}

.story-image-block {
    text-align: center;
    margin-bottom: 40px;
}
.about-photo {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
}

/* Ensure Ben's portrait is a professional size */
.about-photo-portrait {
    max-width: 320px;              /* Slightly smaller for a cleaner look */
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    padding: 5px;
    background: #fff;
}

.legacy-quote {
    font-style: italic;
    background: #f9f9f9;
    padding: 30px;
    border-left: 4px solid #a52a2a;
    margin: 20px 0;
    font-size: 16px;
    color: #555;
}

.quote-signature {
    display: block;
    text-align: right;
    font-weight: bold;
    margin-top: 15px;
    color: #333;
}

/* --- 7. SHIPPING ALERT --- */
.shipping-alert {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    padding: 15px;
    margin: 20px 40px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
}

.shipping-alert input {
    transform: scale(1.2);
    margin-right: 10px;
    cursor: pointer;
}

/* --- 8. PRODUCT GALLERY GRID (Added Back) --- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px; /* Aligns with your header padding */
}

.finish-card {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background: #fff;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.finish-card:hover { 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

.finish-image { 
    max-width: 100%; 
    height: auto; 
    margin-bottom: 10px; 
}

.color-name { 
    font-variant: small-caps; 
    font-weight: bold; 
    margin-bottom: 5px; 
}

.price { 
    color: #b12704; 
    font-size: 1.1em; 
    font-weight: bold; 
    margin: 10px 0; 
}

.desc { 
    font-size: 11px; 
    color: #666; 
    line-height: 1.4; 
    margin-top: 10px; 
}

.qty-row { 
    margin: 10px 0; 
    font-size: 13px; 
}

.btn-add { 
    cursor: pointer; 
    border: none; 
    background: none; 
}

/* --- 9. PRODUCT INFO SECTION (WHITE BKG) --- */
.product-info-section {
    max-width: 1150px;
    margin: 60px auto 20px auto;
    padding: 40px;
    border-top: 2px solid #f0f0f0;
    font-family: Arial, sans-serif;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.info-col {
    flex: 1;
    min-width: 280px;
}

/* Matching your Vintage Red headers */
.info-col h2 {
    font-family: "Georgia", serif;
    font-size: 20px;
    color: #a52a2a;
    margin-bottom: 15px;
    text-transform: none;
}

.info-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.info-col a {
    color: #b12704;
    font-weight: bold;
    text-decoration: none;
}

.info-guide img {
    margin-top: 15px;
    border: 1px solid #ddd;
}

/* --- 10. TWO-TIERED FOOTER (RE-STYLING) --- */
.site-footer {
    width: 100%;
    margin-top: 60px;
    font-family: Arial, sans-serif;
}

/* TOP TIER: Medium Grey */
.footer-nav-tier {
    background-color: #444;
    padding: 35px 20px;
    border-bottom: 1px solid #555;
    text-align: center;
    
        /* ADD THESE TWO LINES ONLY */
    box-sizing: border-box !important;
    width: 100% !important;
}

/* NAVIGATION LINKS ROW */
.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

/* Base Link Styling */
.footer-links-row a {
    color: #bbbbbb; /* Softer light grey */
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s ease;
}

/* Standard Link Hover */
.footer-links-row a:not(.policies-btn):hover {
    color: #ffffff;
}

/* POLICIES BUTTON: LIGHT OUTLINE (High Visibility) */
.footer-links-row a.policies-btn {
    background-color: transparent;
    border: 1px solid #999; /* Light grey outline shows better on #444 */
    padding: 8px 20px;
    border-radius: 4px;
    color: #ffffff; 
    font-size: 12px;
    transition: all 0.3s ease;
}

/* Button Hover: Turns Solid Red */
.footer-links-row a.policies-btn:hover {
    background-color: #a52a2a; 
    border-color: #a52a2a;
    color: #ffffff;
}

/* FACEBOOK ICON ROW
.footer-social-row {
    display: flex;
    justify-content: center;
}

.footer-fb-link {
    color: #999;
    transition: color 0.3s, transform 0.2s;
}

.footer-fb-link:hover {
    color: #1877F2; 
    transform: scale(1.1);
} */

/* --- FOOTER SOCIAL ICONS --- */

.footer-social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 15px;
}

/* FACEBOOK: Restore the Blue Hover */
.footer-fb-link {
    color: rgba(255, 255, 255, 0.6); /* Ghosted white default */
    transition: all 0.3s ease;
}

.footer-fb-link:hover {
    color: #1877F2 !important; /* Official Facebook Blue */
    transform: scale(1.1);      /* Slight pop effect */
}

/* EBAY: Clean White to Full Color */
.footer-ebay-link img {
    /* Turns the colored GIF into a clean white/ghosted icon */
    filter: brightness(0) invert(1) opacity(0.6) !important;
    transition: all 0.3s ease !important;
    vertical-align: middle;
}

.footer-ebay-link:hover img {
    /* 1. Kills the white filter to show original colors */
    filter: none !important;
    opacity: 1 !important;
    /* 2. Fixes the 'messy' edges if the GIF transparency is rough */
    background: white; 
    border-radius: 4px;
    padding: 2px;
}

/* BOTTOM TIER: DARK COPYRIGHT BAR */
.footer-copyright-tier {
    background-color: #222; /* Very dark grey */
    color: #bbb;            /* Dimmed text */
    text-align: center;
    padding: 20px;
    font-size: 12px;
    
    /* ADD THESE TWO LINES ONLY */
    box-sizing: border-box !important;
    width: 100% !important;
}

.footer-copyright-tier p {
    margin: 0; /* Removes extra spacing */
    letter-spacing: 0.5px;
}

/* --- TOP NAVIGATION SOCIAL ICONS (CLEAN) --- */
.social-nav-group {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    padding-left: 15px;
    border-left: 1px solid #ddd; /* Subtle separator line */
    vertical-align: middle;
}

.nav-social-icon {
    margin-left: 12px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.nav-social-icon:hover {
    transform: scale(1.1); /* Subtle grow effect on hover */
}

/* BASE STYLE FOR ALL NAV ICONS */
.nav-social-icon img {
    display: block;
    border: none !important;
    transition: all 0.3s ease;
    vertical-align: middle;
}

/* FACEBOOK: Keep it slightly muted (0.8) by default */
.nav-social-icon img[alt*="Facebook"] {
    opacity: 0.8;
}

/* EBAY: Force it to 1.0 (Full Brightness) so it's not faded */
.nav-social-icon img[alt*="eBay"] {
    opacity: 1.0 !important;
}

/* HOVER EFFECT: Everything goes to full brightness and grows */
.nav-social-icon:hover img {
    opacity: 1 !important;
    transform: scale(1.1);
}

/* --- UPDATED TO 1024px TO ACCOMMODATE THE NEW 'FAQs' LINK --- */
@media screen and (max-width: 1024px) {
    .mobile-toggle { 
        display: flex !important; 
    }
    
    .main-nav {
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%;
        background: #fff; 
        flex-direction: column; 
        padding: 20px 0;
        border-top: 1px solid #eee; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center; 
        z-index: 1001;
    }
    
    .main-nav.mobile-active { 
        display: flex !important; 
    }
    
    /* Ensure the logo stays a safe size as the menu snaps */
    .logo img { 
        max-width: 180px !important; 
    }
    
    
}

/* --- NEW: THE "EARLY STACK" (1000px) --- */
/* This stops the text from getting squashed on iPads/small laptops */
@media screen and (max-width: 1000px) {
    .intro-split-container {
        display: block !important; 
        width: 100% !important;
        padding: 0 20px !important;
    }


    .intro-left, .intro-right {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .intro-right {
        margin-top: 30px !important; /* Space between text and video box */
        /* Forces the YouTube box to match the width of the one below */
        box-sizing: border-box !important; 
    }
    
    .polishing-section {
        width: auto !important;     /* Changed from 100% to auto to allow margins to work */
        padding: 20px !important;  
        /* Use 20px on the sides to match your intro-split-container and USA box */
        margin: 20px 20px !important; 
        box-sizing: border-box !important;
    } 
    /* THE BUTTON CENTERING FIX */
    .jump-to-shop {
        display: block !important;
        width: fit-content !important; /* Shrinks the hit-area to the button size */
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
        float: none !important; /* Kills any desktop side-float */
        margin-bottom: 22px;

    }  
 
   
}

/* --- THE "QUICK STACK" FIX FOR POLISHING SECTION --- */
@media screen and (max-width: 950px) {
    .polishing-img {
        float: none !important;      /* Stops the text from wrapping */
        display: block !important;
        margin: 0 auto 20px auto !important; /* Centers the image and adds bottom space */
        max-width: 100%;             /* Ensures it doesn't overflow on tablets */
        height: auto;
    }

    .polishing-pkg-box h2 {
        text-align: center;          /* Optional: Centers text under the centered image */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .polishing-pkg-box p {
        text-align: left;          /* Optional: Centers text under the centered image */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Landscape: Safe areas and wider gutters */
@media screen and (max-width: 900px) and (orientation: landscape) {
    @media (max-height: 500px) {
        .site-header { position: relative !important; top: 0 !important; }
    }
    
    .intro-pages-container { 
        padding: 10px 40px !important; 
        margin-top: 10px !important;
    }

    .intro-split-container { 
        padding: 10px 40px !important; 
        margin-top: 10px !important;
    }

    /* THE FIX: Pulls Gracey's Title right to the top */
    .intro-left h1 {
        margin-top: 0 !important; 
        padding-top: 5px !important;
        margin-bottom: 0 !important; /* Removes gap BELOW Gracey's */
    }

    /* THE FIX: Pulls "Do-it-Yourself" right under Gracey's */
    .intro-left p:first-of-type {
        margin-top: 0 !important; 
        padding-top: 14px !important;
    }

    .gallery-container, .polishing-section { 
        padding-left: 40px !important; 
        padding-right: 40px !important; 
    }
    
   /* THE FIX: Increase padding to show more of the grey background */
    .intro-right {
        max-width: 540px !important;   /* Slightly wider to allow for more padding */
        padding: 25px 45px !important; /* 25px Top/Bottom, 45px Left/Right */
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        background-color: #f5f5f5;
       
		margin-bottom: 5px !important; /* Reduces the gap FROM the video box */
        padding-bottom: 15px !important; /* Tightens the internal space of the video box */
    }

    .video-wrapper {
        width: 100% !important;        /* Fills the space inside the 45px padding */
        margin-bottom: 25px !important;
    }   

    /* Ensure the image doesn't have a conflicting top margin */
    .intro-right img {
        margin-top: 0 !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
       
    .shipping-alert { margin: 0 40px 20px 40px !important; }

    /* 1. Tighter Card Layout to see more products */
    .finish-card {
        padding: 10px 12px !important;
        margin-bottom: 0 !important;
    }

    /* 2. ENLARGED DESCRIPTION TEXT: Easier to read */
    .finish-card .desc, 
    .finish-card p,
    .finish-card .fine-print {
        font-size: 15px !important; /* Increased for better legibility */
        line-height: 1.3 !important;
        margin-top: 8px !important;
        color: #333 !important;    /* Darker for higher contrast */
        text-align: center;
    }

    /* 3. Button & Quantity Row: Compact vertical gap */
    .qty-row {
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }
    
    .jump-to-shop {
        display: block !important;
        float: none !important;
        width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
        
        /* THE FIX: Pull up toward video, push down away from USA box */
        margin-top: 0px !important;    
        margin-bottom: 20px !important;
        text-align: center; 
    }

    /* Ensure the USA box isn't adding its own extra top margin here */
    .shipping-alert {
        margin-top: 0 !important; 
    }    
}


/* ==========================================
   FINAL CONSOLIDATED MOBILE OPTIMIZATION (Under 768px)
   ========================================== */
@media screen and (max-width: 768px) {
    /* 1. Header & Bars Alignment */
    
    .top-cart-bar, .site-header {
        width: 100% !important;
        padding: 8px 15px !important;
        box-sizing: border-box !important;
        display: flex !important; 
        justify-content: space-between !important;
        align-items: center !important;
    }

    .top-cart-bar .tagline {
        flex: 1 !important;           
        font-size: 14px !important;    
        line-height: 1.2 !important;
        margin-right: 14px !important;
        margin-left:4px !important;
        text-align: left !important;
    }


    .cart-actions-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;              
        flex-shrink: 0 !important;
    }
    
    
   


    .top-shop-btn, 
    .view-cart-btn {
        display: block !important;
        white-space: nowrap !important; 
        font-size: 11px !important;      
        padding: 5px 8px !important;     
        text-align: center !important;
        width: 100% !important;           
    }

   

/* Disable Sticky on Phones specifically */
 @media (max-width: 600px) {
        .site-header { 
        position: relative !important;
        top: 0 !important; 
     }
}


/* 1. Fix the Text Link Spacing (Home, Shop, About) */
    .main-nav a {
        display: block !important;
        margin: 12px 0 !important; /* Adds vertical breathing room between words */
        font-size: 18px !important;
        width: 100%;
        text-align: center;
    }

    /* Ensure the container is a tight, centered row */
    .social-nav-group {
        display: flex !important;
        flex-direction: row !important; /* Force side-by-side */
        justify-content: center !important; /* Center the pair */
        align-items: center !important;
        width: 100% !important;
        margin: 20px 0 0 0 !important;
        padding: 15px 0 !important;
        border-top: 1px solid #eee;
        border-left: none !important;
    }

    /* Target the links specifically to stop them from stretching */
    .social-nav-group a {
        display: inline-flex !important; /* Prevents link from being full-width */
        width: auto !important; 
        margin: 0 15px !important; /* Space between the two icons */
        padding: 0 !important;
    }

 
        /* Keep Facebook at the current size */
    .nav-social-icon img[alt*="Facebook"] {
        width: 32px !important;
    }

    /* Make eBay larger to balance the horizontal shape */
    .nav-social-icon img[alt*="eBay"] {
        width: 45px !important; /* Increased from 32px */
        height: auto !important;
        margin-top: 2px; /* Slight nudge to align centers vertically */
    }
    /* 2. Intro Section: Vertical Stacking & Spacing Fixes */



    /* .footer-ebay-link img {
        filter: brightness(0) invert(1) opacity(0.6) !important;
    }
    Keep Facebook ghosted on mobile too 
    .footer-fb-link {
        color: rgba(255, 255, 255, 0.6) !important;
    }*/

    /* 1. GHOSTED EBAY & SPACING FIX (MOBILE) */
    .footer-ebay-link img {
        /* Fixes 'Ghosted' look for iPhones/Mobile Chrome */
        -webkit-filter: brightness(0) invert(1) opacity(0.6) !important;
        filter: brightness(0) invert(1) opacity(0.6) !important;
        
        /* Adds space between eBay and Facebook icon */
        margin-left: 15px !important; 
        
        /* Ensures vertical alignment stays centered */
        vertical-align: middle !important;
    }

    /* 2. GHOSTED FACEBOOK (MOBILE) */
    .footer-fb-link {
        color: rgba(255, 255, 255, 0.6) !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
      
    .intro-pages-container {
        display: block !important;
        width: 100% !important;
        /* FIXED: Tightened top/bottom padding to remove large gaps */
        padding: 5px 20px 0 20px !important; 
        margin-bottom: 0 !important; 
        box-sizing: border-box !important;
    }

    .intro-split-container {
        display: block !important;
        width: 100% !important;
        /* FIXED: Tightened top/bottom padding to remove large gaps */
        padding: 5px 20px 0 20px !important; 
        margin-bottom: 0 !important; 
        box-sizing: border-box !important;
    }
    
    .brand-logo-header {
        display: flex;
        justify-content: center; /* Forces the H1 container to center its contents */
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .brand-logo-header img {
        width: 190px;       /* Slightly smaller for mobile screens */
        margin: 0 auto;     /* Physical centering of the image */
    }

    .intro-left h1 { 
        /* FIXED: 0 top margin pulls title up toward the logo */
        margin-top: 0 !important; 
        margin-bottom: 15px !important;
        font-size: 24px !important;
    }
    
    .intro-subtitle {
        text-align: center; /* Centers with the logo on phones */
        font-size: 20px;    /* Slightly smaller for mobile screens */
    }

    /* THE GREY BOX */
    .intro-right {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        /* FIXED: Tightened margin above grey box */
        margin: 10px 0 !important; 
        padding: 20px !important; 
        background-color: #f5f5f5;
        box-sizing: border-box !important;
        float: none !important;    
    }
    

    .resource-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .video-wrapper {
        margin-bottom: 15px !important; 
    }
    
    .policy-card {
        /* Pushes boxes closer to screen edge (12px instead of 20px) */
        margin: 3px 12px !important; 
        /* Boxes almost touch vertically */
        padding: 15px 20px; 
    }
    
    /*.standard-header-area {
        padding-top: 10px !important;
    }*/
    
    /* --- UNIVERSAL PAGE HEADER (Policies, About, FAQs) --- */
.standard-header-area {
    text-align: center;
    padding: 15px 20px 0 20px !important; 
    max-width: 900px;
    margin: 0 auto;
}
    .standard-title {
        font-size: 32px !important;
        margin-bottom: 8px !important;
    }
     /*.title-accent-line {
        margin-bottom: 12px !important;
    }
    .standard-tagline {
        font-size: 16px !important;
        margin-bottom: 5px !important;
    } */   
    
/* 1. THE RED TITLE LINE (FORCED) */
.title-accent-line {
    width: 60px !important;
    height: 4px !important;         /* Explicit height */
    min-height: 4px !important;     /* Prevents collapse */
    background-color: #a52a2a !important; 
    margin: 10px auto 15px auto !important;
    border-radius: 2px;
    display: block !important;      /* Forces it to take up space */
    clear: both;                    /* Ensures no floats interfere */
}

 .about-story-container {
        /* Reduce 30px down to 15px so text has more room on phones */
        padding: 0 15px !important; 
        
        /* Ensure the container fills the screen width */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Optional: Ensure the text blocks inside don't have hidden margins */
    .story-text-block {
        width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

/* 2. THE TAGLINE: Sits tight on the grey line */
.standard-tagline {
    color: #808080; 
    font-size: 16px; 
    max-width: 700px; 
    margin: 0 auto 2px auto !important; /* Pulls tagline down */
    line-height: 1.4;
}

.line-light-grey {
    /* 1. Reset everything */
    display: block !important;
    height: 0 !important;
    padding: 0 !important;
    
    /* 2. Create the line using a TOP BORDER */
    /* This makes it 4px thick and very soft grey (rgba is 6% black) */
    border-top: 4px solid rgba(0,0,0,0.06) !important; 
    
    /* 3. Your specific dimensions */
    width: 130px !important;
    margin: 10px auto 30px auto !important; /* Centered with breathing room */
    
    /* 4. Ensure it's not hidden by any parent styles */
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
}

/* 2. THE GREY TAGLINE LINE (FORCED)
.tagline-underline {
    width: 120px !important;
    height: 1px !important;     
    min-height: 1px !important;    
    background-color: #eee !important; 
    margin: 5px auto 30px auto !important;
    display: block !important;    
    clear: both;
}  */   
        /* 3. THE USA BOX: Pulled up flush with the Grey Box above */
    .shipping-alert {
        width: auto !important;
        /* FIXED: 0px top margin and 20px side margin for centering */
        margin: 0 20px 20px 20px !important; 
        padding: 20px !important; 
        box-sizing: border-box !important;
        display: block !important;
    }

    /* 4. PRODUCT GRID */
    .gallery-container {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important;
        padding: 10px 20px !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .polishing-section {
        width: auto !important;
        margin: 20px 20px !important; /* Changed from 15px to 20px to match everything else */
        padding: 20px !important;
        box-sizing: border-box !important;
    }
    
    /* 5. old POLISHING SECTION
    .polishing-section {
        padding: 20px 20px !important; 
        margin-top: 0 !important;
        margin-bottom: 2px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    } */

    /* 1. Force the tier to stay within the screen and show the 20px padding */
    .footer-nav-tier {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* 2. Fix the link row so it doesn't push past the side margins */
    .footer-links-row {
        display: flex !important;
        flex-wrap: wrap !important;   /* Crucial: allows links to stack if too wide */
        justify-content: center !important;
        gap: 12px !important;         /* Space between the individual links */
        width: 100% !important;
    }
}

/* 5. LANDSCAPE FIX: Side-by-Side when turned sideways
@media screen and (max-width: 768px) and (orientation: landscape) {
    .cart-actions-wrapper {
        flex-direction: row !important; 
        gap: 8px !important;
    }
    .top-shop-btn, .view-cart-btn {
        width: auto !important; 
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
} */

/* 5. LANDSCAPE FIX: Side-by-Side + Larger Tagline */
@media screen and (max-width: 768px) and (orientation: landscape) {

    .top-cart-bar .tagline {
        font-size: 14px !important; 
        font-weight: bold !important;
        display: flex !important;
        align-items: center !important;
    }
    .cart-actions-wrapper {
        flex-direction: row !important; 
        gap: 10px !important;
    }


    .top-shop-btn, .view-cart-btn {
        width: auto !important; 
        font-size: 12px !important;
        padding: 6px 12px !important;
    }   
    
}

/* Portrait: Fix the "Leaning" Grey Box, Title Gap, and USA Box Gap */
@media screen and (max-width: 480px) and (orientation: portrait) {
    
    /* 1. Pull the Brand Title UP (Removes top gap) */
    .intro-pages-container {
        padding-top: 15px !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
    }

    /* 1. Pull the Brand Title UP (Removes top gap) */
    .intro-split-container {
        padding-top: 15px !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
    }

    .intro-left h1 {
        margin-top: 0 !important; /* Removes gap under the logo */
        padding-top: 10px !important;
        margin-bottom: 10px !important;
    }

    /* 2. THE GREY BOX: Fixes the "leaning" by removing all side-push */
    .intro-right {
        min-width: 0 !important;   /* REMOVES THE 350px LIMIT */
        width: 100% !important;     /* Forces it to stay in the lines */
        margin: 15px 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
    
    /* 3. THE USA BOX: Pulls it UP flush with the grey box */
    .shipping-alert {
        margin-top: 5px !important; /* Tight 5px gap below the video section */
        width: auto !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        box-sizing: border-box !important;
    }
    
    /* 1. Unlock the container holding the tagline */
    .standard-header-area {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;  /* Tiny buffer so text doesn't touch the glass */
        padding-right: 10px !important;
        margin: 0 !important;
    }

    /* 2. Force the tagline to use that new space */
    .standard-tagline {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto 5px auto !important;
        font-size: 16px !important;
    }  
    
    /* STACK buttons only on narrow portrait phones */
    .cart-actions-wrapper {
        flex-direction: column !important;
        gap: 4px !important;
        align-items: flex-end !important;
    }
    .top-shop-btn, .view-cart-btn {
        width: 100% !important;
        min-width: 135px !important; /* Keeps them equal width */
        font-size: 11px !important;
        padding: 5px 8px !important;
    } 
}

/* Very Small Phones: 1 Column Store
@media screen and (max-width: 400px) { */
/*    .gallery-container { grid-template-columns: 1fr !important; }    This was for 1 column product on small mobile*/


/* --- TEST: 2 COLUMNS ON SMALL PHONES --- */
@media screen and (max-width: 400px) {
    .gallery-container { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 8px !important;    /* Tighter gap to save screen space */
        padding: 10px !important;
    }

    /* Shrink text slightly so long color names don't break the box */
    .color-name { 
        font-size: 12px !important; 
        line-height: 1.1 !important;
        margin-bottom: 4px !important;
    }

    .price { 
        font-size: 14px !important; 
    }

    .finish-card {
        padding: 8px !important; /* Tighter internal padding */
    }
 
  /* ... existing 2-column styles ... */

    /* Make the descriptive text below the button bigger */
    .finish-card .desc, 
    .finish-card p,
    .finish-card .fine-print {
        font-size: 14px !important; /* Increased from 11px/12px */
        line-height: 1.3 !important;
        margin-top: 8px !important;
        color: #444 !important; /* Slightly darker for better contrast */
    }

}