/*
Theme Name: CEEPax Shop
Theme URI: https://test.ceepax.com/
Description: Astra child theme for the CEEPax storefront homepage.
Author: CEEPax
Template: astra
Version: 1.2.2
Text Domain: ceepax-shop
*/

/* ==========================================================================
   CEEPax Master Color Tokens & Design System
   ========================================================================== */
:root {
    /* Brand Identity */
    --ceepax-orange: #ef7f1a;
    --ceepax-orange-dk: #c8620c;
    --ceepax-green: #5aa83c;
    --ceepax-green-dk: #3f7d28;
    --ceepax-blue: #1e4fd6;

    /* Surfaces & Canvas */
    --ceepax-bg: #f1f3f6;
    --ceepax-card: #ffffff;
    --ceepax-border: #e7e7e7;
    --ceepax-border-light: #f0f0f0;

    /* Typography */
    --ceepax-text-main: #1b1b1b;
    --ceepax-text-muted: #6b6b6b;
    --ceepax-text-strike: #8a8a8a;

    /* E-Commerce Semantics */
    --ceepax-rating-bg: #3f7d28;
    --ceepax-discount: #3f7d28;
    --ceepax-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --ceepax-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --ceepax-radius: 4px;

    /* Legacy Aliases for Backwards Compatibility */
    --ink: var(--ceepax-text-main);
    --sub: var(--ceepax-text-muted);
    --line: var(--ceepax-border);
    --bg: var(--ceepax-bg);
    --card: var(--ceepax-card);
    --brand-orange: var(--ceepax-orange);
    --brand-orange-dk: var(--ceepax-orange-dk);
    --brand-green: var(--ceepax-green);
    --brand-green-dk: var(--ceepax-green-dk);
    --price: var(--ceepax-text-main);
    --strike: var(--ceepax-text-strike);
    --off: var(--ceepax-discount);
    --assured: var(--ceepax-blue);
    --star: #ffffff;
    --star-bg: var(--ceepax-rating-bg);
    --radius: var(--ceepax-radius);
}

/* Base Body Typography & Colors */
body, .site {
    color: var(--ceepax-text-main) !important;
}

/* ===== UNIFIED FLIPKART-STYLE CATEGORY TILES (.ceepax-quicktiles) ===== */
.ceepax-quicktiles {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 14px;
    scrollbar-width: none;
}
.ceepax-quicktiles::-webkit-scrollbar {
    display: none;
}

/* Equal-height individual tile card */
.ceepax-quicktiles > a {
    flex: 0 0 96px;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 8px 8px;
    background: var(--ceepax-card);
    border: 1px solid var(--ceepax-border-light);
    border-radius: var(--ceepax-radius);
    box-shadow: var(--ceepax-shadow-card);
    text-decoration: none;
    color: var(--ceepax-text-main);
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ceepax-quicktiles > a:hover {
    transform: translateY(-2px);
    box-shadow: var(--ceepax-shadow-hover);
    border-color: var(--ceepax-border);
}

/* Standardized Icon Box (Fixed 48px height, vertically & horizontally centered) */
.ceepax-quicktiles .ceepax-category-icon {
    width: 48px;
    height: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 22px;
    overflow: hidden;
    flex-shrink: 0;
}

.ceepax-quicktiles .ceepax-category-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Category Title Box (Clamped to 2 lines, uniform vertical position) */
.ceepax-quicktiles .ceepax-category-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ceepax-text-main) !important;
    min-height: 29px; /* Holds 2 lines so 1-line titles align identically */
    width: 100%;
    background: transparent !important;
    margin: 0;
    padding: 0;
}

.ceepax-quicktiles > a:hover .ceepax-category-name {
    color: var(--ceepax-green) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ceepax-quicktiles > a {
        flex: 0 0 82px;
        min-height: 96px;
        padding: 8px 6px 6px;
    }
    .ceepax-quicktiles .ceepax-category-icon {
        width: 40px;
        height: 40px;
        min-height: 40px;
        font-size: 18px;
    }
    .ceepax-quicktiles .ceepax-category-name {
        font-size: 10.5px;
        min-height: 26px;
    }
}

/* ==========================================================================
   Static Pages (About, Contact, Policies, FAQ) — Clean Section Styling
   ========================================================================== */

/* Outer Container Reset:
   Prevent Astra from enclosing the entire page in a single boxed white container.
   This allows individual Gutenberg sections (hero, counter bars, vision/mission, team)
   to display their own natural background colors and layout. */
.ast-separate-container.page:not(.woocommerce-page) #primary,
.ast-separate-container.page:not(.woocommerce-page) .site-main,
.ast-separate-container.page:not(.woocommerce-page) .ast-article-single,
.ast-separate-container.page:not(.woocommerce-page) .ast-article-post,
.ast-separate-container.page:not(.woocommerce-page) .entry-content,
.page:not(.woocommerce-page) .ast-article-single,
.page:not(.woocommerce-page) #primary .site-main {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.page:not(.woocommerce-page) .entry-content {
    margin: 0 auto;
    width: 100%;
}

/* Page Titles */
.page:not(.ceepax-homepage-active):not(.woocommerce-page) .entry-title,
.single-post .entry-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--ceepax-text-main) !important;
    border-bottom: 2px solid var(--ceepax-border-light);
    padding-bottom: 12px;
    margin-bottom: 20px !important;
}

/* Content Typography & Spacing */
.page:not(.ceepax-homepage-active):not(.woocommerce-page) .entry-content p,
.single-post .entry-content p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ceepax-text-main);
    margin-bottom: 16px;
}

.page:not(.ceepax-homepage-active):not(.woocommerce-page) .entry-content h2,
.page:not(.ceepax-homepage-active):not(.woocommerce-page) .entry-content h3 {
    color: var(--ceepax-text-main);
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
}

/* Forms & Input Controls (Contact / Inquiry) */
.page .wpcf7-form input[type=text],
.page .wpcf7-form input[type=email],
.page .wpcf7-form input[type=tel],
.page .wpcf7-form input[type=url],
.page .wpcf7-form textarea,
.page .wp-block-search__input,
.page input[type=text],
.page input[type=email],
.page textarea {
    border: 1px solid var(--ceepax-border);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--ceepax-text-main);
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page input[type=text]:focus,
.page input[type=email]:focus,
.page textarea:focus {
    border-color: var(--ceepax-orange);
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 127, 26, 0.15);
}

/* Form Buttons */
.page .wpcf7-submit,
.page .wp-block-button__link,
.page input[type=submit] {
    background: var(--ceepax-orange) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 4px !important;
    border: none !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.page .wpcf7-submit:hover,
.page .wp-block-button__link:hover,
.page input[type=submit]:hover {
    background: var(--ceepax-orange-dk) !important;
}

/* Tables & Lists in Static Pages */
.page .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13.5px;
}

.page .entry-content table th,
.page .entry-content table td {
    padding: 10px 14px;
    border: 1px solid var(--ceepax-border);
    text-align: left;
}

.page .entry-content table th {
    background: #f8f9fa;
    font-weight: 700;
    color: var(--ceepax-text-main);
}

.page .entry-content table tr:nth-child(even) td {
    background: #fbfbfb;
}

/* Mobile Responsiveness for Static Pages */
@media (max-width: 768px) {
    .page:not(.ceepax-homepage-active):not(.woocommerce-page) .entry-content {
        padding: 0 14px !important;
    }
    .page:not(.ceepax-homepage-active):not(.woocommerce-page) .entry-title {
        font-size: 20px !important;
    }
}
