:root {
    --light-beige: #f9f8f4;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #888888;
    --border-color: #e5e5e5;
    --primary-green: #84a83c;
    --footer-button-green: #a4c69b;
}

html { height: 100%; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
#wrapper { flex: 1 0 auto; }
.sapro-footer { flex-shrink: 0; }

/* --- Header --- */
.sapro-header { background-color: #fff; border-bottom: 1px solid var(--border-color); }
.sapro-logo img { width: 150px; }
.uk-navbar-nav>li>a { color: var(--text-medium); font-weight: 500; text-transform: none; font-size: 15px; }
.uk-navbar-nav>li.uk-active>a, .uk-navbar-nav>li>a:hover { color: var(--text-dark); }
.header-contact-info { color: var(--text-medium); font-weight: 500; }
.header-contact-info .uk-icon { margin-right: 8px; }

/* --- Page Title --- */
.page-title { font-size: 36px; font-weight: 600; margin-bottom: 40px; color: var(--text-dark); }

/* --- Hero Section --- */
.hero-section {
    background: #82BA00;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-features {
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-icon {
    margin-right: 15px;
    width: 30px;
    text-align: center;
    color: white;
}

.hero-cta {
    background: #28a745;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 30px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.hero-image {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* --- Product Grid & Cards --- */
.products-section { 
    padding: 80px 0; 
    background: #f8f9fa;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.uk-card-default { 
    border: 1px solid var(--border-color); 
    box-shadow: none; 
    transition: all 0.3s ease-in-out;
    border-radius: 12px;
    overflow: hidden;
}

.uk-card-hover:hover { 
    border-color: #ccc; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.uk-card-body { 
    padding: 25px; 
}

.product-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-title-grid { 
    font-size: 18px; 
    font-weight: 600; 
    color: var(--text-dark); 
    margin-bottom: 10px; 
}

.product-description {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price { 
    font-size: 20px; 
    font-weight: 600; 
    color: var(--primary-green);
    margin-bottom: 20px;
}

/* --- Features Section --- */
.features-section {
    padding: 80px 0;
    background: white;
}

.feature-item {
    padding: 30px 20px;
}

.feature-icon-large {
    margin-bottom: 20px;
    display: block;
    color: var(--primary-green);
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* --- My Account Orders --- */
.order-item {
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.order-item .uk-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.order-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-dark);
}

.order-item .uk-text-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.order-item .uk-badge-success {
    background: #28a745;
}

.order-item .uk-badge-warning {
    background: #ffc107;
    color: #212529;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 60px 0;
    background-color: var(--light-beige);
}

.faq-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-sidebar {
    position: sticky;
    top: 100px;
}

.faq-sidebar .uk-card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.uk-accordion-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.uk-accordion-content {
    padding: 20px 0;
    color: var(--text-medium);
    line-height: 1.6;
}

.uk-accordion-content a {
    color: var(--primary-green);
    text-decoration: none;
}

.uk-accordion-content a:hover {
    text-decoration: underline;
}

/* --- Tracking Section --- */
.tracking-section {
    padding: 60px 0;
    background-color: var(--light-beige);
}

.tracking-form {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tracking-info {
    padding: 20px;
}

.tracking-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.step-number {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.tracking-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--text-dark);
}

.tracking-info p {
    color: var(--text-medium);
    margin: 0;
}

/* Timeline */
.tracking-timeline {
    position: relative;
    padding-left: 30px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    opacity: 0.5;
}

.timeline-item.completed {
    opacity: 1;
}

.timeline-icon {
    position: absolute;
    left: -22px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.timeline-item.completed .timeline-icon {
    background: var(--primary-green);
}

.timeline-content {
    margin-left: 20px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-dark);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 0 10px 0;
}

.timeline-content p {
    color: var(--text-medium);
    margin: 0;
    line-height: 1.5;
}

/* --- 404 Error Section --- */
.error-section {
    padding: 80px 0;
    background-color: var(--light-beige);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
}

.error-number {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.error-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.error-description {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions {
    margin-bottom: 60px;
}

.error-suggestions {
    margin-top: 60px;
}

.error-suggestions h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.suggestion-link {
    text-decoration: none;
    color: inherit;
}

.suggestion-card {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.suggestion-card span {
    color: var(--primary-green);
    margin-bottom: 15px;
    display: block;
}

.suggestion-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.suggestion-card p {
    color: var(--text-medium);
    margin: 0;
    font-size: 0.9rem;
}

/* --- Social Sharing --- */
.social-sharing {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.social-share-btn {
    flex: 1;
    min-width: 140px;
    margin: 0;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.social-share-btn span {
    margin-right: 8px;
    font-size: 1.1em;
}

.social-share-btn[onclick*="facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.social-share-btn[onclick*="whatsapp"]:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.social-share-btn[onclick*="copyLink"]:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

/* --- Form Validation --- */
.field-error {
    color: #f0506e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.uk-form-danger {
    border-color: #f0506e !important;
    background-color: #fff5f5 !important;
}

.uk-form-danger:focus {
    border-color: #f0506e !important;
    box-shadow: 0 0 0 1px #f0506e !important;
}

/* --- Product Detail Page --- */
.product-detail-section { 
    padding: 60px 0; 
    background-color: var(--light-beige);
}

.product-detail-title { 
    font-size: 32px; 
    font-weight: 600; 
    margin-bottom: 15px; 
    color: var(--text-dark);
}

.product-detail-price { 
    font-size: 28px; 
    font-weight: 400; 
    color: var(--primary-green); 
    margin-bottom: 25px; 
}

.quantity-selector input { 
    width: 60px; 
    text-align: center; 
}

.product-details-section {
    background: white;
    padding: 80px 0;
}

.product-details-section .section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
}

.product-details-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}

.product-description {
    line-height: 1.8;
}

.product-description h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 15px 0;
}

.product-description .uk-text-lead {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.product-description ul {
    margin: 15px 0;
}

.product-description li {
    margin-bottom: 8px;
    color: var(--text-medium);
}

.product-features {
    background: var(--light-beige);
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.product-features h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.product-features .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.product-features .feature-item:hover {
    transform: translateY(-2px);
}

.product-features .feature-icon {
    color: var(--primary-green);
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.product-features .feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.product-features .feature-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.5;
}

/* Product page improvements */
.product-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-badges .uk-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
}

.product-info {
    padding: 20px 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.star-icon {
    color: #ffc107;
    font-size: 1.1em;
}

.product-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 25px;
}

.product-highlights {
    background: var(--light-beige);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-icon {
    color: var(--primary-green);
    font-size: 1.1em;
    flex-shrink: 0;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    width: auto;
}

.quantity-selector button {
    border: none;
    background: #f8f9fa;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quantity-selector button:hover {
    background: #e9ecef;
}

.quantity-selector input {
    border: none;
    text-align: center;
    width: 60px;
    padding: 8px;
    font-weight: 500;
}

.add-to-cart-btn {
    margin-right: 10px;
    min-width: 180px;
}

.product-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-item span[uk-icon] {
    color: var(--primary-green);
    font-size: 1.1em;
}

/* --- Cart & Checkout --- */
.cart-section, .checkout-section { padding: 60px 0; background-color: var(--light-beige); }
.cart-summary .uk-card-body, .checkout-summary .uk-card-body { background-color: #fff; padding: 30px; }

/* Shopify-like checkout styles */
.checkout-progress {
    margin-bottom: 40px;
}

.progress-step {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.progress-number {
    font-weight: 600;
    color: #6c757d;
}

.checkout-form {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

.payment-methods {
    margin-top: 20px;
}

.payment-method {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #007bff;
}

.payment-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.payment-option input[type="radio"] {
    margin-right: 15px;
}

.payment-label {
    display: flex;
    align-items: center;
    width: 100%;
}

.payment-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.payment-text {
    display: flex;
    flex-direction: column;
}

.payment-text strong {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.payment-description {
    font-size: 0.9rem;
    color: #6c757d;
}

.order-summary {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.order-item:last-child {
    border-bottom: none;
}

.order-totals {
    border-top: 2px solid #f8f9fa;
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.95rem;
}

.total-final {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 10px;
}

.checkout-button {
    background: #28a745;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px;
    transition: all 0.3s ease;
}

.checkout-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Step navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f8f9fa;
}

.step-navigation .uk-button {
    min-width: 120px;
}

.checkout-step {
    transition: all 0.3s ease;
}

/* Active step indicator */
.progress-step.active {
    background: #28a745;
}

.progress-step.active .progress-number {
    color: white;
}

.progress-step.completed {
    background: #28a745;
}

.progress-step.completed .progress-number {
    color: white;
}

/* NOVI STILOVI ZA KOŠARICU */
.cart-item-card {
    background-color: #fff;
    padding: 20px;
    border: 1px solid var(--border-color);
}
.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}
.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}
.cart-item-details .uk-text-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}
.cart-item-details .price {
    font-weight: 500;
    font-size: 1rem;
}
.cart-item-remove-button {
    color: var(--text-light);
}
.cart-item-remove-button:hover {
    color: #f0506e; /* UIkit danger color */
}

/* --- Forms & Buttons --- */
.uk-input, .uk-select, .uk-textarea { border-radius: 0; border: 1px solid #ccc; height: 45px; }
.uk-textarea { height: auto; }
.uk-input:focus, .uk-select:focus, .uk-textarea:focus { border-color: var(--text-dark); }
.uk-button-primary { background-color: var(--primary-green); color: #fff; border-radius: 0; text-transform: none; font-weight: 500; padding: 0 30px; height: 45px; line-height: 45px; }
.uk-button-primary:hover { background-color: #739436; color: #fff; }

/* --- My Account --- */
#my-account-nav .uk-nav > li > a { font-weight: 500; }
#my-account-nav .uk-nav > li.uk-active > a { color: var(--primary-green); }

/* --- Footer --- */
.sapro-footer { background-color: var(--light-beige); padding: 60px 0 30px 0; border-top: 1px solid var(--border-color); }
.footer-title { font-size: 16px; font-weight: 600; margin-bottom: 15px; color: var(--text-dark); }
.sapro-footer .uk-list li a { color: var(--text-medium); font-size: 15px; }
.sapro-footer .uk-list li a:hover { color: var(--text-dark); text-decoration: none; }
.newsletter-button { background-color: var(--footer-button-green); color: #fff; border-radius: 0; text-transform: none; font-weight: 500; width: 100%; height: 45px; }
.newsletter-button:hover { background-color: #93b58a; color: #fff; }
.copyright { margin-top: 50px; padding-top: 20px; border-top: 1px solid #e0deda; color: var(--text-light); font-size: 14px; }