/* =============================================================================
 * EcommPaaS Starter Theme
 *
 * Clean, modern storefront design. Professional blue color scheme
 * with clear typography and generous whitespace.
 * ============================================================================= */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --st-primary: #2563eb;
    --st-primary-dark: #1d4ed8;
    --st-primary-light: #3b82f6;
    --st-secondary: #0f172a;
    --st-accent: #f59e0b;
    --st-accent-dark: #d97706;
    --st-text: #1e293b;
    --st-text-light: #64748b;
    --st-text-muted: #94a3b8;
    --st-bg: #f8fafc;
    --st-bg-white: #ffffff;
    --st-border: #e2e8f0;
    --st-success: #22c55e;
    --st-danger: #ef4444;
    --st-radius: 8px;
    --st-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --st-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --st-transition: 200ms ease;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--st-text);
    background: var(--st-bg);
    line-height: 1.6;
}

a {
    color: var(--st-primary);
    transition: color var(--st-transition);
}

a:hover {
    color: var(--st-primary-dark);
}

/* ── Header ────────────────────────────────────────────────── */
.page-header {
    background: var(--st-bg-white);
    border-bottom: 1px solid var(--st-border);
    box-shadow: var(--st-shadow);
}

.page-header .header.content {
    padding: 16px 20px;
}

.logo img {
    max-height: 40px;
    width: auto;
}

/* ── Navigation ────────────────────────────────────────────── */
.navigation {
    background: var(--st-secondary);
}

.navigation .level0 > .level-top {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 20px;
    transition: background var(--st-transition);
}

.navigation .level0:hover > .level-top,
.navigation .level0.active > .level-top {
    background: var(--st-primary);
    color: #ffffff;
}

.navigation .level0 .submenu {
    background: var(--st-bg-white);
    border: 1px solid var(--st-border);
    border-radius: 0 0 var(--st-radius) var(--st-radius);
    box-shadow: var(--st-shadow-md);
    min-width: 220px;
}

.navigation .level0 .submenu a {
    color: var(--st-text);
    padding: 10px 20px;
    font-size: 14px;
}

.navigation .level0 .submenu a:hover {
    background: var(--st-bg);
    color: var(--st-primary);
}

/* ── Search ────────────────────────────────────────────────── */
.block-search .control {
    border-radius: var(--st-radius);
    overflow: hidden;
}

.block-search input {
    border: 2px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 10px 16px;
    font-size: 14px;
    transition: border-color var(--st-transition);
}

.block-search input:focus {
    border-color: var(--st-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ── Buttons ───────────────────────────────────────────────── */
.action.primary,
button.action.primary {
    background: var(--st-primary);
    border: none;
    border-radius: var(--st-radius);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    text-transform: none;
    letter-spacing: 0;
    transition: background var(--st-transition), transform var(--st-transition);
}

.action.primary:hover,
button.action.primary:hover {
    background: var(--st-primary-dark);
    transform: translateY(-1px);
}

.action.primary:active,
button.action.primary:active {
    transform: translateY(0);
}

/* ── Product Cards ─────────────────────────────────────────── */
.products-grid .product-item {
    margin-bottom: 24px;
}

.products-grid .product-item-info {
    background: var(--st-bg-white);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    overflow: hidden;
    transition: box-shadow var(--st-transition), transform var(--st-transition);
    padding: 0;
}

.products-grid .product-item-info:hover {
    box-shadow: var(--st-shadow-md);
    transform: translateY(-2px);
}

.products-grid .product-item-photo {
    display: block;
    overflow: hidden;
}

.products-grid .product-item-photo img {
    transition: transform 300ms ease;
}

.products-grid .product-item-info:hover .product-item-photo img {
    transform: scale(1.03);
}

.products-grid .product-item-details {
    padding: 16px;
}

.products-grid .product-item-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
}

.products-grid .product-item-name a {
    color: var(--st-text);
}

.products-grid .product-item-name a:hover {
    color: var(--st-primary);
}

/* ── Prices ────────────────────────────────────────────────── */
.price-box .price {
    color: var(--st-text);
    font-weight: 700;
    font-size: 18px;
}

.price-box .old-price .price {
    color: var(--st-text-muted);
    font-size: 14px;
    font-weight: 400;
}

.price-box .special-price .price {
    color: var(--st-danger);
}

/* ── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumbs {
    padding: 12px 0;
}

.breadcrumbs .items {
    font-size: 13px;
    color: var(--st-text-light);
}

.breadcrumbs a {
    color: var(--st-text-light);
}

.breadcrumbs a:hover {
    color: var(--st-primary);
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar .block-title strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--st-secondary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--st-primary);
    display: block;
}

.sidebar .filter-options-title {
    font-weight: 600;
    color: var(--st-text);
    padding: 12px 0;
    border-bottom: 1px solid var(--st-border);
}

/* ── Footer ────────────────────────────────────────────────── */
.page-footer {
    background: var(--st-secondary);
    color: #cbd5e1;
    padding: 48px 0 24px;
}

.page-footer a {
    color: #e2e8f0;
    transition: color var(--st-transition);
}

.page-footer a:hover {
    color: var(--st-primary-light);
}

.footer.content .footer-column-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Messages ──────────────────────────────────────────────── */
.message.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--st-radius);
    color: #166534;
}

.message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--st-radius);
    color: #991b1b;
}

.message.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--st-radius);
    color: #1e40af;
}

/* ── Forms ─────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    border: 2px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color var(--st-transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--st-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ── Minicart ──────────────────────────────────────────────── */
.minicart-wrapper .action.showcart .counter.qty {
    background: var(--st-primary);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 11px;
}

/* ── Pages ─────────────────────────────────────────────────── */
.page-main {
    padding-top: 24px;
    padding-bottom: 48px;
}

.page-title-wrapper .page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--st-secondary);
    margin-bottom: 16px;
}

/* ── Product Page ──────────────────────────────────────────── */
.product-info-main .page-title-wrapper .page-title {
    font-size: 24px;
}

.product-info-main .product-add-form .action.tocart {
    border-radius: var(--st-radius);
    font-size: 16px;
    padding: 14px 32px;
}

.product.info.detailed .data.item.title {
    font-weight: 600;
}

/* ── Rating Stars ──────────────────────────────────────────── */
.rating-result > span:before {
    color: var(--st-accent);
}

/* ── Toolbar ───────────────────────────────────────────────── */
.toolbar-products {
    padding: 12px 0;
    border-bottom: 1px solid var(--st-border);
    margin-bottom: 24px;
}

.pages .action {
    border-radius: var(--st-radius);
}

.pages .action.current {
    background: var(--st-primary);
    color: #ffffff;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 767px) {
    .page-header .header.content {
        padding: 12px 16px;
    }

    .navigation .level0 > .level-top {
        padding: 10px 16px;
    }

    .products-grid .product-item-details {
        padding: 12px;
    }

    .page-title-wrapper .page-title {
        font-size: 22px;
    }

    .page-footer {
        padding: 32px 0 16px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid .product-item {
        width: 33.33%;
    }
}

@media (min-width: 1024px) {
    .products-grid .product-item {
        width: 25%;
    }
}
