/*
Theme Name: AlpinaPro
Theme URI: https://slozi-mi.com/alpinapro
Author: Radilica
Author URI: https://slozi-mi.com
Description: Elegantna planinarska tema za prodaju planinarske opreme. Dizajn inspiriran planinama, šumama i avanturom.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alpinapro
Tags: one-column, custom-menu, e-commerce, featured-images, translation-ready
*/

/* ===== ROOT VARIABLES ===== */
:root {
    --mountain-dark: #0D0D0D;
    --mountain-green: #1A1A1A;
    --forest: #242424;
    --moss: #4A4A4A;
    --sky: #E8913A;
    --sky-light: #F5A623;
    --earth: #C4A35A;
    --earth-light: #E8913A;
    --rock: #555555;
    --snow: #F0F0F0;
    --cloud: #E0E0E0;
    --white: #FFFFFF;
    --charcoal: #1A1A1A;
    --text-dark: #0D0D0D;
    --text-body: #333333;
    --text-light: #666666;
    --accent: #F5A623;
    --accent-hover: #E8913A;
    --danger: #C0392B;
    --success: #2ECC71;
    --border-light: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.20);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    color: var(--text-body);
    background: var(--snow);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 { color: var(--text-dark); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
    background: var(--mountain-dark);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-lg);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; max-width: 1280px; margin: 0 auto;
}
.site-logo {
    display: flex; align-items: center; gap: 12px;
    color: var(--white); font-size: 1.5rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
}
.site-logo .logo-icon { font-size: 2rem; }
.main-nav ul { display: flex; list-style: none; gap: 8px; }
.main-nav a {
    color: var(--cloud); padding: 10px 18px; border-radius: var(--radius-sm);
    font-weight: 500; font-size: 0.95rem; transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
    background: rgba(255,255,255,0.1); color: var(--white);
}
.header-cart {
    background: var(--accent); color: var(--white); padding: 10px 20px;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
    display: flex; align-items: center; gap: 8px;
}
.header-cart:hover { background: var(--accent-hover); color: var(--white); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(160deg, #0D0D0D 0%, #1A1A1A 50%, #242424 100%);
    padding: 100px 24px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg viewBox=0 0 1440 320%3E%3Cpath fill=%23ffffff08 d=M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,250.7C960,235,1056,181,1152,165.3C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center/cover;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { color: var(--cloud); font-size: 1.2rem; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 36px; border-radius: var(--radius-xl); font-weight: 600;
    font-size: 1.05rem; transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--mountain-dark); }
.btn-secondary { background: var(--mountain-green); color: var(--white); }
.btn-secondary:hover { background: var(--forest); color: var(--white); }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }

/* ===== FEATURES BAR ===== */
.features-bar {
    background: var(--white); padding: 40px 24px;
    box-shadow: var(--shadow-sm); position: relative; z-index: 2;
}
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px; max-width: 1280px; margin: 0 auto; text-align: center;
}
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.feature-icon { font-size: 2rem; margin-bottom: 4px; }
.feature-item h4 { font-size: 0.95rem; color: var(--text-dark); }
.feature-item p { font-size: 0.85rem; color: var(--text-light); }

/* ===== SECTIONS ===== */
.section { padding: 80px 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-alt { background: var(--white); }

/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px; max-width: 1280px; margin: 0 auto;
}
.product-card {
    background: var(--white); border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    border: 1px solid var(--border-light);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-image {
    position: relative; height: 260px; overflow: hidden;
    background: linear-gradient(135deg, var(--cloud), var(--snow));
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge {
    position: absolute; top: 16px; left: 16px; padding: 6px 14px;
    border-radius: var(--radius-xl); font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-new { background: var(--success); color: var(--white); }
.badge-sale { background: var(--danger); color: var(--white); }
.badge-popular { background: var(--accent); color: var(--white); }
.product-info { padding: 24px; }
.product-category { font-size: 0.8rem; color: var(--moss); text-transform: uppercase; font-weight: 600; letter-spacing: 1px; margin-bottom: 6px; }
.product-name { font-size: 1.15rem; margin-bottom: 8px; color: var(--text-dark); }
.product-name a { color: var(--text-dark); }
.product-name a:hover { color: var(--accent); }
.product-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.product-price .old-price { font-size: 0.9rem; color: var(--text-light); text-decoration: line-through; font-weight: 400; margin-left: 8px; }
.product-rating { display: flex; gap: 2px; color: var(--earth-light); font-size: 0.85rem; }
.product-rating .empty { color: var(--border-light); }

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px; max-width: 1280px; margin: 0 auto;
}
.category-card {
    text-align: center; padding: 40px 20px; border-radius: var(--radius-md);
    background: var(--white); border: 2px solid var(--border-light);
    transition: var(--transition); cursor: pointer;
}
.category-card:hover { border-color: var(--forest); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-icon { font-size: 3rem; margin-bottom: 12px; }
.category-card h3 { font-size: 1rem; color: var(--text-dark); margin-bottom: 4px; }
.category-card p { font-size: 0.85rem; color: var(--text-light); }

/* ===== ABOUT / CTA ===== */
.cta-section {
    background: linear-gradient(160deg, var(--mountain-dark), var(--forest));
    color: var(--white); text-align: center; padding: 80px 24px;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: var(--cloud); font-size: 1.15rem; max-width: 600px; margin: 0 auto 32px; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--mountain-dark); color: var(--cloud); padding: 64px 24px 24px;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px; max-width: 1280px; margin: 0 auto 48px;
}
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p, .footer-col a { color: var(--cloud); font-size: 0.9rem; line-height: 2; }
.footer-col a:hover { color: var(--accent); }
.footer-col ul { list-style: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
    text-align: center; font-size: 0.85rem; color: var(--rock);
    max-width: 1280px; margin: 0 auto;
}

/* ===== SINGLE PRODUCT ===== */
.single-product { padding: 48px 24px; max-width: 1280px; margin: 0 auto; }
.product-main { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.product-gallery { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.product-gallery img { width: 100%; height: 500px; object-fit: cover; }
.product-details h1 { margin-bottom: 12px; }
.product-details .price { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 20px; }
.product-details .description { margin-bottom: 24px; line-height: 1.8; }
.product-details .add-to-cart { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.product-meta-detail { border-top: 1px solid var(--border-light); padding-top: 24px; }
.product-meta-detail h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 8px; }
.product-meta-detail p { font-size: 0.95rem; color: var(--text-body); margin-bottom: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .main-nav { display: none; }
    .hero { padding: 60px 24px; }
    .product-main { grid-template-columns: 1fr; }
    .section { padding: 48px 16px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
}
