/*
Theme Name: The Master Artisan - Knife Sharpening Template
Description: A premium, craftsman-focused WooCommerce template built from the ground up for professional blade sharpening services.
Version: 1.3.6
Author: Gemini Custom Development
Text Domain: artisan-sharpening
Template: storefront
*/

:root {
    --bg-cream: #fdfbf7;
    --text-charcoal: #2b2d2f;
    --accent-leather: #5c4033;
    --accent-brass: #b87333;
    --border-light: #ebe7e0;
    --white: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-charcoal);
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, .beta-serif {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-charcoal);
    font-weight: 700;
}

/* Base structural layout container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Pricing and Services Grid --- */
.pricing-section {
    padding: 80px 0;
    background-color: var(--bg-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: #606266;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: block;
    margin: 0 -15px;
}

.service-card-wrapper {
    display: block;
    float: left;
    width: 33.333%;
    padding: 0 15px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 40px 30px;
    border-radius: 4px;
    position: relative;
    min-height: 520px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(43, 45, 47, 0.06);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 30px;
    background-color: var(--accent-leather);
    color: var(--white);
    padding: 5px 14px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.service-card h3 {
    font-size: 1.8rem;
    margin: 15px 0;
}

.service-card .description {
    color: #606266;
    font-size: 0.95rem;
    margin-bottom: 25px;
    height: 75px;
    overflow: hidden;
}

.service-card .price {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.service-card .price span {
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    color: #808285;
    text-transform: uppercase;
}

.service-card .price small {
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    color: #606266;
}

/* Form Integrations inside Cards */
.cart-form-integration {
    margin-top: auto;
}

.inline-measurement-selector {
    margin-bottom: 20px;
}

.inline-measurement-selector label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--accent-leather);
}

.inline-measurement-selector select,
.inline-measurement-selector input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-cream);
    font-size: 0.95rem;
    border-radius: 4px;
    color: var(--text-charcoal);
}

/* Bullet Points */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.features-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.features-list li::before {
    content: "♦";
    position: absolute;
    left: 0;
    color: var(--accent-brass);
    font-size: 0.8rem;
}

/* Custom Artisan Action Elements */
.btn-artisan-submit {
    display: block;
    width: 100%;
    background-color: var(--accent-brass);
    color: var(--white);
    border: none;
    text-align: center;
    padding: 14px 24px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-artisan-submit:hover {
    background-color: var(--accent-leather);
}

.btn-artisan-secondary {
    display: block;
    width: 100%;
    background-color: transparent;
    color: var(--text-charcoal);
    border: 1px solid var(--text-charcoal);
    text-align: center;
    padding: 14px 24px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-artisan-secondary:hover {
    background-color: var(--text-charcoal);
    color: var(--white);
}

/* --- Explainer Interactive Guide --- */
.measurement-guide {
    background-color: var(--white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 80px 0;
}

.guide-layout-table {
    display: table;
    width: 100%;
}

.guide-column {
    display: table-cell;
    width: 50%;
    vertical-align: middle;
}

.guide-column.visual-pad {
    padding-right: 40px;
}

.guide-column.text-pad {
    padding-left: 40px;
}

.knife-diagram-box {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 4px;
    text-align: center;
}

.knife-svg {
    width: 100%;
    height: auto;
    max-width: 450px;
}

.guide-column h3 {
    font-size: 2.2rem;
    margin: 0 0 15px 0;
}

.guide-column .subtitle {
    color: #606266;
    font-size: 1.05rem;
    margin-bottom: 35px;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    position: relative;
    padding-left: 55px;
    margin-bottom: 30px;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background-color: var(--text-charcoal);
    color: var(--bg-cream);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
}

.steps-list li strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.steps-list li span {
    color: #606266;
    font-size: 0.95rem;
}

.steps-list li em {
    color: var(--accent-leather);
    font-weight: 600;
    font-style: normal;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
/* Vaporize the sidebar container and force a full-width canvas */
#sidebar, 
.widget-area, 
aside[id*="sidebar"] {
    display: none !important;
    width: 0 !important;
}

/* Force the main site container to stop shrinking on the left */
#primary, 
.site-main, 
.content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}

/* Ensure your 3-column services grid can breathe */
.services-grid {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 auto !important;
}

/* --- Sleek Custom Header Banner Controls --- */

/* Shrink the massive parent container spacing */
.woocommerce-products-header,
header.page-header,
.site-header {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

/* Drop the title size down to a clean, minimal accent */
.woocommerce-products-header__title.page-title,
h1.page-title {
    font-size: 1.6rem !important; /* Elegant, scaled down size */
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

/* Optional: If there is a generic description under the title, tighten it up */
.woocommerce-products-header .term-description,
.section-header p {
    margin-top: 8px !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

/* --- CRUSH THE INVISIBLE SIDEBAR COLUMN & CENTER --- */

/* 1. Force the parent theme's main wrapper to use a single-column block layout */
#main, 
.site-main, 
#primary, 
.content-area,
.site-content .container,
#content {
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important; /* Matches our artisan design sweet spot */
    float: none !important;
    margin: 0 auto !important; /* Magic trick that perfectly centers the block */
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 2. Utterly delete any hidden floating container elements on the side */
#sidebar, 
.widget-area, 
aside {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Modernize the services grid wrapper to sit perfectly flush */
.services-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* Centers cards perfectly if they don't fill a full row */
    width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
}

/* 4. Fix card column dimensions on desktop screens */
@media (min-width: 768px) {
    .service-card-wrapper {
        width: 33.333% !important;
        float: left !important; /* Traditional fallback to align cards cleanly */
        box-sizing: border-box !important;
    }
}

/* --- ULTRALIGHT COMPACT HEADER & BANNER HEIGHTS --- */

/* 1. Crush all padding and margins on the main site header (logo/nav zone) */
.site-header,
#masthead,
.site-header-wrapper {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin-bottom: 0 !important;
}

/* 2. Flatten the logo/branding and main navigation containers */
.site-branding,
.site-logo-anchor,
.main-navigation,
.header-widget-region {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 3. Drop the shop banner height to an absolute sliver */
.woocommerce-products-header,
header.page-header,
.section-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important; /* Tiny gap before your 3-column grid starts */
    background: transparent !important; /* Removes any bulky colored background blocks */
}

/* 4. Fix any hidden inner gaps inside the parent theme's page content wrapper */
.site-content,
#content,
.col-full {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* --- ARTISAN HEADER MINIMALISM: REMOVE SEARCH & CENTER LOGO --- */

/* 1. Vaporize the WooCommerce search block completely */
.site-search,
.woocommerce-product-search,
.header-widget-region,
#search-2,
.widget_product_search {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Force the branding/logo container to take up full width and center its contents */
.site-branding {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding-bottom: 5px !important;
}

/* Ensure the text logo or image link centers inside its wrapper */
.site-title,
.site-logo-anchor,
.site-branding a {
    float: none !important;
    display: inline-block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* 3. Center the navigation menu right underneath the centered logo */
.main-navigation {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: block !important;
}

.main-navigation ul.nav-menu,
.main-navigation ul.menu {
    display: inline-flex !important;
    justify-content: center !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* 4. Fix row layouts for parent themes using old float grids (like Storefront) */
.site-header .col-full {
    display: block !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* --- UNLEASH THE HORIZONTAL LAYOUT CANVASES --- */

/* 1. Force all core parent structural wrappers to expand to a wide layout */
.col-full, 
.site-header .col-full, 
.site-content .col-full, 
#content .col-full {
    max-width: 1200px !important; /* Expands the tight container boundaries */
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    float: none !important;
}

/* 2. Break loose any nested wrapper structural grids clamping the homepage */
.storefront-full-width-page .content-area,
.storefront-full-width-page .site-main,
#primary.content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* 3. Ensure your custom 3-column sharpening grid flows wide and centered */
.services-grid {
    display: block !important; /* Reset fallback layout block */
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* 4. Guarantee individual service card rows scale beautifully on desktop screens */
@media (min-width: 768px) {
    .service-card-wrapper {
        width: 33.333% !important; /* Allocates exact layout space for 3 cards side-by-side */
        float: left !important;
        padding: 0 15px !important;
    }
}