/* --- UPDATED IMAGE & BUTTON STYLES --- */

/* Fixed: Shrinks archive grid images and gives a nice clean border */
.product-thumbnail { 
    height: 180px; /* Reduced from 220px to make it smaller */
    background: #f1f5f9; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    padding: 10px;
}
.product-thumbnail img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; /* Prevents stretching, acts as a clean product display */
}

/* Fixed: Shrinks the massive single product page hero image */
.product-gallery img {
    max-width: 320px !important; /* Forces the main image to be compact */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border: 1px solid #e2e8f0;
    padding: 8px;
    background: #fff;
}

/* Fixed: Forces the action link to display as a vibrant colorful button */
.btn-quote {
    display: inline-block !important; /* Ensures layout properties apply to link element */
    background-color: var(--accent) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 6px rgba(244, 91, 105, 0.2);
    transition: all 0.2s ease;
}
.btn-quote:hover { 
    background-color: #e04a59 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(244, 91, 105, 0.3);
}

/* Cleaner layout framework */
.single-product-layout { 
    display: grid; 
    grid-template-columns: 40% 60%; /* Rebalanced space for smaller image */
    gap: 40px; 
    background: white; 
    padding: 40px; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}
/* --- UNIVERSAL IMAGE LOCKS & RESPONSIVE FIXES --- */

.universal-img-frame {
    max-width: 100%;
    height: 300px; /* Universal uniform height ceiling */
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.universal-img-frame img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important; /* Fits perfectly within the 300px square frame without distorting */
    width: auto !important;
    height: auto !important;
}

/* Ensure shortcode button renders cleanly if inserted inside the block editor content */
.product-description-content .btn-quote {
    margin: 15px 0;
    text-align: center;
    }
    
    /* --- HOMEPAGE LAYOUT AND STYLING RULES --- */

/* Hero Banner Layout */
.hero-banner {
    position: relative;
    background-color: var(--secondary);
    background-image: linear-gradient(135deg, rgba(2, 128, 144, 0.9) 0%, rgba(0, 168, 150, 0.85) 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
}
.hero-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 20px 0;
    font-weight: 700;
}
.hero-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 35px;
    font-weight: 400;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.btn-hero-primary {
    background: var(--accent) !important;
    padding: 14px 28px !important;
    border-radius: 6px !important;
}
.btn-hero-secondary {
    background: transparent !important;
    border: 2px solid white !important;
    padding: 12px 28px !important;
    border-radius: 6px !important;
}
.btn-hero-secondary:hover {
    background: white !important;
    color: var(--secondary) !important;
}

/* Sections Shared Elements */
.home-section {
    padding: 60px 0 20px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 45px;
}
.section-header h2 {
    font-size: 32px;
    color: var(--secondary);
    margin: 0 0 10px 0;
    font-weight: 700;
}
.section-header p {
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

/* Category Grid Structure */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}
.category-card:hover {
    transform: translateY(-4px);
}
.category-img-box {
    width: 100%;
    height: 200px;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
.category-card h3 {
    margin: 0 0 10px 0;
    color: var(--text-main);
    font-size: 20px;
}
.category-card p {
    color: #718096;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Value Strip Features */
.value-proposition-strip {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 50px 0;
    margin: 40px 0;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.value-item {
    text-align: center;
}
.value-icon {
    font-size: 32px;
    margin-bottom: 15px;
}
.value-item h4 {
    margin: 0 0 8px 0;
    color: var(--secondary);
    font-size: 18px;
    font-weight: 600;
}
.value-item p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Overrides */
@media (max-width: 640px) {
    .hero-content h1 { font-size: 30px; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .hero-buttons .btn-quote { width: 100%; box-sizing: border-box; }
}