/*
Theme Name: Astra Child
Template: astra
*/

/* CSS Varijable */
:root {
    --primary-color: #ff7f00;
    --primary-hover: #b8b4b4;
    --primary-dark: #a8a4a4;
    --primary-shadow-light: rgba(204, 200, 200, 0.3);
    --primary-shadow-medium: rgba(204, 200, 200, 0.4);
}

body {
    /* Samo testni stil */
    background-color: #FFFFFF;
}

.landing-page {
    width: 100%;
}

.ast-container {
    max-width: 1400px !important;
    padding: 0;
    display: block !important;
    margin: 0 auto;
}

/* Responsive margin adjustment */
@media (max-width: 1440px) {
    .ast-container {
        margin: 0 auto;
        padding: 0 20px;
    }
}

.content-area.primary {
    margin-top: 20px !important;
}

.wp-block-woocommerce-checkout {
    margin: 0 !important;
}

.woocommerce {
    margin: 0 !important;
    max-width: 100% !important;
}

.product-price {
    color: black !important;
}

.grid-product-price {
    color: black !important;
}

/* Stara prekrizana cijena - crna */
del .woocommerce-Price-amount.amount {
    color: black !important;
}

/* Nova cijena na sniženju - crvena */
ins .woocommerce-Price-amount.amount {
    color: red !important;
}


.ast-plain-container.ast-no-sidebar #primary {
    margin-bottom: 0px;
}

/* Product Card Links */
.product-card-link,
.grid-product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.product-card-link:hover,
.grid-product-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.product-card-link:focus,
.grid-product-card-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* WooCommerce Shop/Category Page Styles - Match Landing Page */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 0 40px 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    width: auto;
    float: none;
}

/* Match landing page grid product styles */
.woocommerce .grid-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.woocommerce .grid-product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.woocommerce .grid-product-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.woocommerce .grid-product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.woocommerce .grid-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.woocommerce .grid-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
}

.woocommerce .grid-add-to-cart-btn {
    background-color: transparent;
    color: black;
    border: 1px solid black;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    margin-top: auto;
}

.woocommerce .grid-add-to-cart-btn:hover {
    background-color: black;
    color: white;
}

/* Override WooCommerce default styles */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 0;
    padding: 0;
}

/* Remove default WooCommerce button styles */
.woocommerce ul.products li.product .button {
    display: none;
}

.woocommerce ul.products li.product .price {
    margin: 0;
}

/* Additional spacing for WooCommerce pages */
.woocommerce {
    margin-bottom: 40px;
}

.woocommerce-pagination {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .woocommerce .grid-product-image {
        height: 180px;
    }
    
    .woocommerce .grid-product-info {
        padding: 12px;
    }
    
    .woocommerce {
        margin-bottom: 30px;
    }
}

/*.woocommerce-tabs   {*/
/*    display: none !important;*/
/*    margin-top: 400px !important;*/
/*}*/


.single_add_to_cart_button {
    background-color: white !important;
    color: black !important;
    border: 1px solid black !important;
}

.single_add_to_cart_button:hover {
    background-color: black !important;
    color: white !important;
}

.product_meta {
    display: none !important;
}

/* Custom Product Description Styles */
.custom-product-description {
    margin-top: 25px;
    border-radius: 8px;
}

.custom-product-description h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-bottom: 8px;
}

.custom-product-description p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #555;
}

.custom-product-description p:last-child {
    margin-bottom: 0;
}

.custom-product-description ul,
.custom-product-description ol {
    margin: 12px 0;
    padding-left: 20px;
}

.custom-product-description li {
    margin-bottom: 6px;
    line-height: 1.5;
    color: #555;
}

.term-description {
    display: none;
}

.wp-block-woocommerce-cart {
    margin: 0 !important;
}

.wc-block-components-sale-badge {
    display: none !important;
}

/* Košarica Badge stiliziranje */
.kosarica-badge {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.kosarica-badge:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

/* Responsive styling za badge */
@media (max-width: 768px) {
    .kosarica-badge {
        font-size: 10px;
        padding: 1px 4px;
        min-width: 16px;
    }
}

/* CSS za badge broj u navigaciji košarice */
.kosarica-badge {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
    position: relative;
    top: -2px;
}

/* Hover effect za badge */
.menu-item:hover .kosarica-badge {
    background-color: var(--primary-hover);
}