/*
Theme Name: Stockup Premium (AIO v4)
Theme URI: https://stockup.kosoado.info/
Author: Antigravity Leader AI
Description: Pro-Catalog Theme with AIO/GEO Optimization, Calc-Fields, and Auto-Badges.
Version: 4.0.0
License: GNU General Public License v2 or later
Text Domain: stockup-premium
*/

:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --success-color: #27ae60;
    --bg-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f2f4f7;
    --border-color: #e1e8ed;
    --font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.8;
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header & Navigation */
header {
    background: #fff;
    border-bottom: 2px solid var(--light-gray);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: bold;
    font-size: 0.95rem;
}

.nav-menu a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Catalog Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    padding: 30px 0;
}

.product-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.product-item:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}

.product-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
}

/* Feature Badges over Thumbnail */
.aio-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.aio-badge-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-item .product-info {
    padding: 15px;
}

.product-item .product-title {
    font-size: 1rem;
    margin-bottom: 8px;
    height: 3em;
    overflow: hidden;
}

.product-item .unit-price-badge {
    display: inline-block;
    background: var(--light-gray);
    color: var(--accent-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Single Product Page */
.product-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

@media (max-width: 768px) {
    .product-hero-section { grid-template-columns: 1fr; gap: 30px; }
}

.product-main-image img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.product-summary-card {
    background: #fff;
}

.price-box {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.price-main {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
}

.unit-price-main {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 5px;
    font-weight: bold;
}

/* Pro Spec Table */
.pro-specs-group {
    margin: 30px 0;
}

.pro-specs-title {
    font-size: 1.2rem;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 15px;
    background: var(--light-gray);
    padding-top: 5px;
    padding-bottom: 5px;
}

.pro-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.pro-specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.pro-specs-table th {
    width: 35%;
    background: #fafafa;
    text-align: left;
    padding: 12px 15px;
    font-weight: bold;
    color: #666;
}

.pro-specs-table td {
    padding: 12px 15px;
    color: var(--primary-color);
}

/* STORES Sticky Button */
.stores-btn-container {
    padding: 30px;
    border: 3px solid var(--accent-color);
    border-radius: 12px;
    text-align: center;
    background: #fff;
    margin-top: 30px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 20px;
}

.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-color); }
