:root {
    --pg-primary: #ff8a4a;
    --pg-primary-soft: rgba(255, 138, 74, 0.12);
    --pg-dark: #18212f;
    --pg-muted: #6b7280;
    --pg-border: #e5e7eb;
    --pg-bg-soft: #f9fafb;
    --pg-radius-lg: 18px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff;
    color: var(--pg-dark);
    font-size: 16px;
    line-height: 1.6;
}

/* Offset pod fixed nav */
.page-offset {
    padding-top: 84px;
}

/* Hero */
.hero-section {
    padding-top: 96px;
    padding-bottom: 72px;
    background: radial-gradient(circle at top left, var(--pg-primary-soft), transparent 55%);
}

.hero-image-placeholder {
    border-radius: 32px;
    border: 1px dashed var(--pg-border);
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--pg-muted);
}

.logo-text {
    letter-spacing: 0.03em;
}

.accent-text {
    color: var(--pg-primary);
}

/* Nav */
.navbar .nav-link {
    font-size: 0.95rem;
}

.navbar .nav-link.active {
    color: var(--pg-primary) !important;
}

.cart-pill {
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Section titles */
.section-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Cards */
.category-card,
.info-card,
.product-card {
    border-radius: var(--pg-radius-lg);
    border: 1px solid var(--pg-border);
    background-color: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.category-card:hover,
.info-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.05);
    border-color: rgba(148, 163, 184, 0.6);
}

/* Product */
.product-image-placeholder {
    border-bottom: 1px solid var(--pg-border);
    border-radius: var(--pg-radius-lg) var(--pg-radius-lg) 0 0;
    padding: 48px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pg-bg-soft);
    font-size: 0.8rem;
    color: var(--pg-muted);
    height: 280px;
    overflow: hidden;
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Step indicator */
.step-indicator {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--pg-border);
    background-color: #ffffff;
}

.step-number {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 1px solid var(--pg-border);
    color: var(--pg-muted);
}

.step-label {
    font-size: 0.8rem;
    color: var(--pg-muted);
}

.step.active {
    border-color: var(--pg-primary-soft);
    background-color: var(--pg-primary-soft);
}

.step.active .step-number {
    border-color: var(--pg-primary);
    background-color: var(--pg-primary);
    color: #ffffff;
}

.step.active .step-label {
    color: var(--pg-dark);
}

/* Links */
.link-small {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--pg-primary);
}

.link-small:hover {
    text-decoration: underline;
}

/* Backgrounds */
.bg-soft {
    background-color: var(--pg-bg-soft);
}

/* Forms */
.form-label {
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--pg-primary);
    box-shadow: 0 0 0 0.1rem rgba(255, 138, 74, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: var(--pg-primary);
    border-color: var(--pg-primary);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #ff7a32;
    border-color: #ff7a32;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 138, 74, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-sm {
    font-weight: 500;
}

.btn-outline-secondary {
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
}

.btn-success {
    transition: all 0.2s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Offcanvas */
.offcanvas {
    border-left: 1px solid var(--pg-border);
}

/* Footer */
footer {
    background-color: #ffffff;
}

/* Responsivnost */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 88px;
        padding-bottom: 40px;
    }

    .step-indicator {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
    }

    .step-label {
        display: none;
    }

    .step {
        padding: 6px 8px;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .product-image-placeholder {
        height: 220px;
    }

    .product-card {
        margin: 0;
    }

    .product-card .h6 {
        font-size: 0.95rem;
    }

    .product-card .small {
        font-size: 0.85rem;
    }

    .product-card .fs-5 {
        font-size: 1rem !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .mb-3 {
        margin-bottom: 0.8rem !important;
    }

    .table {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .page-offset {
        padding-top: 76px;
    }

    .hero-section {
        padding-top: 80px;
        padding-bottom: 32px;
    }

    .hero-image-placeholder {
        padding: 60px 12px;
    }

    .page-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .navbar .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .step-indicator {
        flex-wrap: wrap;
        gap: 4px;
    }

    .step {
        padding: 4px 6px;
        font-size: 0.7rem;
    }

    .step-number {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .product-image-placeholder {
        height: 180px;
        padding: 24px 12px;
    }

    .product-card {
        max-width: 100%;
    }

    .product-card .h6 {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .product-card .small {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .product-card .fs-5 {
        font-size: 1.1rem !important;
    }

    .cart-pill {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .table-responsive {
        font-size: 0.75rem;
    }

    .table th,
    .table td {
        padding: 0.4rem;
    }

    .btn-sm {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .d-flex {
        flex-wrap: wrap;
    }

    .p-3 {
        padding: 1rem !important;
    }
}

@media (max-width: 400px) {
    .product-image-placeholder {
        height: 150px;
    }

    .page-title {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 0.95rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .navbar-brand {
        margin-right: 0 !important;
    }
}
