/**
 * WooCommerce Custom CSS
 * Override WooCommerce default stilova da se uklapaju u dizajn sajta
 * Boje: #2d3d33 (primary), #bf8302 (gold/accent), #f0f0f0 (bg)
 * Font: Source Sans 3
 */

/* ────────────────────────────────────
   RESET WooCommerce defaults
──────────────────────────────────── */
.woocommerce-page .woocommerce,
.woocommerce .woocommerce-info,
.woocommerce-page .woocommerce-info {
    border-top-color: #2d3d33;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 12px 16px 12px 48px !important;
    background: #f0f0f0 !important;
    border-top: 3px solid #2d3d33 !important;
    color: #2d3d33 !important;
    font-family: 'Source Sans 3', sans-serif !important;
    list-style: none !important;
    margin-bottom: 20px !important;
    border-radius: 0 !important;
}

.woocommerce-error {
    border-top-color: #c00 !important;
}

/* ────────────────────────────────────
   PRODUCT CARDS - identično originalu
──────────────────────────────────── */
.ng-product-col {
    margin-bottom: 20px;
}

.ng-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ng-product-card:hover {
    box-shadow: 0 4px 18px rgba(45, 61, 51, 0.13);
    transform: translateY(-2px);
}

.ng-product-img-link {
    display: block;
    overflow: hidden;
}

.ng-product-img-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ng-product-card:hover .ng-product-img-link img {
    transform: scale(1.04);
}

.ng-product-body {
    display: flex;
    flex-direction: column;
    padding: 10px 10px 12px !important;
    background: #f0f0f0 !important;
    border-top: 2px solid #2d3d33;
    flex: 1;
}

.ng-product-info {
    flex: 1;
    margin-bottom: 10px;
}

.ng-product-name {
    font-size: 13px !important;
    font-weight: 600;
    color: #2d3d33 !important;
    margin: 0 0 4px !important;
    line-height: 1.35;
}

.ng-product-name a {
    color: #2d3d33 !important;
    text-decoration: none;
}

.ng-product-name a:hover {
    color: #bf8302 !important;
}

.ng-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #2d3d33;
}

.ng-product-price .woocommerce-Price-amount {
    color: #2d3d33;
    font-size: 14px;
    font-weight: 700;
}

.ng-product-price del {
    color: #999;
    font-size: 12px;
}

/* ────────────────────────────────────
   PRODUCT CARD DUGMAD
──────────────────────────────────── */
.ng-product-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Add to Cart button */
.ng-btn-cart {
    flex: 1;
    background: #2d3d33;
    color: #fff !important;
    border: none;
    padding: 7px 10px;
    font-size: 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    min-height: 34px;
}

.ng-btn-cart:hover {
    background: #bf8302;
    color: #fff !important;
}

.ng-btn-cart.ng-btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Poručite button */
.ng-btn-order {
    flex: 1;
    background: transparent;
    color: #2d3d33 !important;
    border: 2px solid #2d3d33;
    padding: 5px 10px;
    font-size: 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
}

.ng-btn-order:hover {
    background: #2d3d33;
    color: #fff !important;
    text-decoration: none !important;
}

/* ────────────────────────────────────
   GENERAL BUTTONS
──────────────────────────────────── */
.btn-ng-primary {
    display: inline-block;
    background: #2d3d33;
    color: #fff !important;
    padding: 12px 28px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-ng-primary:hover {
    background: #bf8302;
    color: #fff !important;
}

.btn-ng-secondary {
    display: inline-block;
    background: transparent;
    color: #2d3d33 !important;
    padding: 10px 24px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px;
    border: 2px solid #2d3d33;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-ng-secondary:hover {
    background: #2d3d33;
    color: #fff !important;
}

.btn-ng-checkout {
    display: block;
    width: 100%;
    background: #2d3d33;
    color: #fff !important;
    padding: 14px 20px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 3px;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-ng-checkout:hover {
    background: #bf8302;
    color: #fff !important;
}

.btn-ng-phone {
    display: block;
    text-align: center;
    background: transparent;
    border: 2px solid #2d3d33;
    color: #2d3d33 !important;
    padding: 12px 20px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-ng-phone:hover {
    background: #2d3d33;
    color: #fff !important;
    text-decoration: none !important;
}

.ng-cart-btn-full {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* ────────────────────────────────────
   BREADCRUMB
──────────────────────────────────── */
.ng-breadcrumb-section {
    padding: 8px 0 0;
}

.ng-breadcrumb,
.ng-breadcrumb p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.ng-breadcrumb a {
    color: #2d3d33;
    text-decoration: none;
}

.ng-breadcrumb a:hover {
    color: #bf8302;
}

/* ────────────────────────────────────
   SINGLE PRODUCT PAGE
──────────────────────────────────── */
.ng-single-product {
    padding-top: 10px;
}

.ng-sp-image-col {
    margin-bottom: 20px;
}

.ng-sp-main-image {
    margin-bottom: 10px;
}

.ng-sp-img {
    border-radius: 4px;
    max-width: 100%;
}

.ng-sp-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ng-sp-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.ng-sp-thumb:hover,
.ng-sp-thumb-active {
    border-color: #2d3d33;
}

.ng-sp-title {
    font-size: 26px;
    font-weight: 700;
    color: #2d3d33;
    margin-top: 0;
    margin-bottom: 8px;
}

.ng-sp-sku {
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}

.ng-sp-price {
    font-size: 24px;
    font-weight: 700;
    color: #2d3d33;
    margin-bottom: 16px;
}

.ng-sp-price .woocommerce-Price-amount {
    font-size: 24px;
    color: #2d3d33;
}

.ng-sp-short-desc {
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ng-sp-actions {
    margin-bottom: 20px;
}

.ng-sp-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ng-sp-qty-row label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3d33;
    margin: 0;
}

.ng-sp-qty-controls {
    display: flex;
    align-items: center;
    border: 2px solid #2d3d33;
    border-radius: 3px;
    overflow: hidden;
}

.ng-sp-qty-btn {
    background: #2d3d33;
    color: #fff;
    border: none;
    width: 32px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ng-sp-qty-btn:hover {
    background: #bf8302;
}

.ng-sp-qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

.ng-sp-qty-input::-webkit-outer-spin-button,
.ng-sp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ng-sp-add-to-cart {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-bottom: 10px;
}

.ng-sp-order-btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 14px;
}

.ng-sp-cats {
    font-size: 13px;
    color: #888;
}

.ng-sp-cats a {
    color: #2d3d33;
}

.ng-sp-description-row {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.ng-sp-description h3 {
    color: #2d3d33;
    margin-bottom: 16px;
}

/* ────────────────────────────────────
   CART PAGE
──────────────────────────────────── */
.ng-cart-page {
    min-height: 60vh;
}

.ng-page-title {
    color: #2d3d33;
    margin-bottom: 24px;
}

.ng-cart-empty {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.ng-cart-empty p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Cart Table */
.ng-cart-table {
    width: 100%;
}

.ng-cart-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
    gap: 12px;
}

.ng-cart-header {
    font-weight: 700;
    font-size: 13px;
    color: #2d3d33;
    background: #f0f0f0;
    padding: 10px 8px !important;
    border-bottom: 2px solid #2d3d33 !important;
}

.ng-cart-col { flex: 1; }
.ng-cart-col-img  { flex: 0 0 70px; }
.ng-cart-col-name { flex: 3; }
.ng-cart-col-qty  { flex: 1; }
.ng-cart-col-remove { flex: 0 0 30px; text-align: center; }

.ng-cart-col-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

.ng-cart-col-name a {
    color: #2d3d33;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.ng-cart-col-name a:hover {
    color: #bf8302;
}

.ng-qty-input {
    width: 55px;
    padding: 5px 6px;
    border: 1px solid #2d3d33;
    font-size: 14px;
    text-align: center;
    font-family: 'Source Sans 3', sans-serif;
    border-radius: 3px;
}

.ng-cart-remove-btn {
    color: #999;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    line-height: 1;
}

.ng-cart-remove-btn:hover {
    color: #c00;
}

.ng-cart-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
}

.ng-coupon-wrap {
    display: flex;
    gap: 8px;
    flex: 1;
}

.ng-input-field {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.ng-input-field:focus {
    border-color: #2d3d33;
}

/* Cart Totals */
.ng-cart-totals {
    background: #f0f0f0;
    padding: 24px 20px;
    border-top: 3px solid #2d3d33;
}

.ng-cart-totals h3 {
    color: #2d3d33;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
}

.ng-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
    color: #333;
}

.ng-cart-grand-total {
    padding-top: 12px;
    border-top: 2px solid #2d3d33;
    font-size: 17px;
    margin-top: 8px;
}

/* ────────────────────────────────────
   CHECKOUT PAGE
──────────────────────────────────── */
.ng-checkout-page {
    min-height: 70vh;
}

.ng-checkout-section {
    background: #fff;
    padding: 24px 20px;
    border-top: 3px solid #2d3d33;
    margin-bottom: 20px;
}

.ng-checkout-section h3 {
    color: #2d3d33;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 14px;
}

/* WooCommerce form fields - prilagođeni dizajn sajta */
.ng-checkout-fields-col .form-row,
.woocommerce-checkout .form-row {
    margin-bottom: 14px;
}

.ng-checkout-fields-col label,
.woocommerce-checkout label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3d33;
    margin-bottom: 4px;
    font-family: 'Source Sans 3', sans-serif;
}

.ng-checkout-fields-col input[type="text"],
.ng-checkout-fields-col input[type="email"],
.ng-checkout-fields-col input[type="tel"],
.ng-checkout-fields-col input[type="number"],
.ng-checkout-fields-col textarea,
.ng-checkout-fields-col select,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: #fff;
}

.ng-checkout-fields-col input:focus,
.ng-checkout-fields-col textarea:focus,
.ng-checkout-fields-col select:focus,
.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #2d3d33;
}

/* Checkout Order Review */
.ng-order-review-section {
    position: sticky;
    top: 80px;
}

.ng-order-items {
    margin-bottom: 16px;
}

.ng-order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}

.ng-order-item-name {
    flex: 1;
    color: #333;
}

.ng-order-item-qty {
    color: #888;
    font-size: 12px;
}

.ng-order-item-price {
    font-weight: 600;
    color: #2d3d33;
}

.ng-order-totals {
    margin: 16px 0;
}

.ng-order-total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.ng-order-grand-total {
    border-top: 2px solid #2d3d33;
    padding-top: 10px;
    margin-top: 8px;
    font-size: 16px;
}

.ng-discount {
    color: #c00;
}

/* Payment methods */
.ng-payment-section {
    margin: 16px 0;
}

.ng-payment-section h4 {
    color: #2d3d33;
    font-size: 16px;
    margin-bottom: 12px;
}

/* WC payment radio */
.woocommerce-checkout #payment {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: none;
    padding: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 600;
    color: #2d3d33;
}

.woocommerce-checkout #payment div.payment_box {
    background: #f0f0f0;
    padding: 10px;
    font-size: 13px;
    border-radius: 3px;
    margin-top: 6px;
}

/* ────────────────────────────────────
   WC NOTICES & MESSAGES
──────────────────────────────────── */
.woocommerce-order-received .woocommerce,
.woocommerce-checkout-payment .woocommerce {
    font-family: 'Source Sans 3', sans-serif;
}

.woocommerce-order-details,
.woocommerce-customer-details {
    margin-top: 30px;
}

.woocommerce-order-details h2,
.woocommerce-customer-details h2 {
    color: #2d3d33;
    font-size: 18px;
    border-bottom: 2px solid #2d3d33;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .ng-cart-header {
        display: none;
    }
    .ng-cart-row {
        flex-wrap: wrap;
    }
    .ng-cart-col {
        flex: 1 1 auto;
    }
    .ng-cart-col::before {
        content: attr(data-label) ': ';
        font-weight: 700;
        color: #2d3d33;
        font-size: 12px;
    }
    .ng-cart-col-img::before { content: ''; }
    .ng-cart-col-remove::before { content: ''; }

    .ng-sp-title { font-size: 20px; }
    .ng-sp-price { font-size: 20px; }
    .ng-sp-price .woocommerce-Price-amount { font-size: 20px; }

    .ng-product-img-link img {
        height: 160px;
    }

    .ng-order-review-section {
        position: static;
    }
}

@media (max-width: 480px) {
    .ng-product-img-link img {
        height: 140px;
    }
    .ng-checkout-section {
        padding: 16px 12px;
    }
}

/* ────────────────────────────────────
   MOBILE CART BUTTON U NAVBAR-HEADER
──────────────────────────────────── */

/* Sakriveno na desktopu – važan prioritet */
.ng-mobile-cart-btn,
a.ng-mobile-cart-btn {
    display: none !important;
}

/* Prikaži samo na mobilnom (Bootstrap 3 breakpoint) */
@media (max-width: 767px) {
    .ng-mobile-cart-btn,
    a.ng-mobile-cart-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        float: right;          /* float:right → pojavljuje se LEVO od toggle-a (koji je takođe float:right) */
        padding: 13px 10px;
        color: #fff;
        text-decoration: none;
    }
    .ng-mobile-cart-btn:hover,
    .ng-mobile-cart-btn:focus,
    a.ng-mobile-cart-btn:hover,
    a.ng-mobile-cart-btn:focus {
        color: #bf8302;
        text-decoration: none;
    }
    .ng-mobile-cart-btn .ng-mobile-cart-count {
        position: absolute;
        top: 7px;
        right: 2px;
        background: #bf8302;
        color: #fff;
        border-radius: 50%;
        font-size: 10px;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        line-height: 1;
    }
    .ng-mobile-cart-btn .ng-mobile-cart-count:empty {
        display: none;
    }
    /* Sakrij cart ikonicu iz otvorenog mobilnog menija */
    li.ng-nav-cart-item {
        display: none !important;
    }
}

/* ────────────────────────────────────
   CHECKOUT – CARD RADIO BUTTONS
──────────────────────────────────── */
.ng-delivery-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}
.ng-delivery-option:hover {
    border-color: #2d3d33;
}
.ng-delivery-option input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0 12px 0 0;
    accent-color: #2d3d33;
    cursor: pointer;
}
.ng-delivery-option span {
    font-size: 15px;
    color: #333;
    font-family: 'Source Sans 3', sans-serif;
}
.ng-delivery-option.selected,
.ng-delivery-option:has(input:checked) {
    border-color: #2d3d33;
    background: #f5f7f5;
}

/* Checkout section heading uppercase (kao na screenshotu) */
.ng-checkout-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2d3d33;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

/* Order item thumbnail */
.ng-order-item-row {
    align-items: center;
}
.ng-order-item-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}
.ng-order-item-info {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Pregled porudžbine heading */
.ng-order-review-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2d3d33;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

/* Ukupno bold teal */
.ng-order-grand-total .ng-grand-total-amount {
    color: #2d3d33;
    font-size: 18px;
    font-weight: 700;
}

/* Privacy notice */
.ng-privacy-notice {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.5;
}
/**
 * WooCommerce Custom CSS
 * Kompletan ažurirani dizajn prodavnice sa CSS Grid karticama
 * Boje: #2d3d33 (primary), #bf8302 (gold/accent), #f0f0f0 (bg)
 * Font: Source Sans 3
 */

/* ────────────────────────────────────
   RESET WooCommerce defaults
──────────────────────────────────── */
.woocommerce-page .woocommerce,
.woocommerce .woocommerce-info,
.woocommerce-page .woocommerce-info {
    border-top-color: #2d3d33;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 12px 16px 12px 48px !important;
    background: #f0f0f0 !important;
    border-top: 3px solid #2d3d33 !important;
    color: #2d3d33 !important;
    font-family: 'Source Sans 3', sans-serif !important;
    list-style: none !important;
    margin-bottom: 20px !important;
    border-radius: 0 !important;
}

.woocommerce-error {
    border-top-color: #c00 !important;
}

/* ────────────────────────────────────
    PRODUCT CARDS - STROGI CSS GRID RESET
──────────────────────────────────── */

/* Roditeljski kontejneri - uključujući i tvoj specifični #ng-products-grid row */
.woocommerce ul.products,
.woocommerce-page ul.products,
.cards-wrapper,
.ng-cards-wrapper,
.row.venci-row#ng-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    list-style: none !important;
}

@media (max-width: 767px) {
    .row.venci-row#ng-products-grid {
        grid-template-columns: 1fr !important; /* Jedan proizvod u redu */
        gap: 15px !important;                  /* Malo smanjujemo razmak na mobilnom da izgleda spakovanije */
        padding: 0 15px !important;            /* Opciono: dodajemo malo bočnog prostora da proizvodi ne udaraju u ivicu ekrana */
    }
}

/* Neutrališemo WooCommerce li tagove i Bootstrap kolone koje kvare grid */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.row.venci-row#ng-products-grid .product {
    width: 100%;
    max-width: 66% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
    clear: none !important;
    background: transparent !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
}

/* Uklanjamo pseudo-elemente (Bootstrap/WooCommerce float fix-eve) koji lome grid */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
.row.venci-row#ng-products-grid::before,
.row.venci-row#ng-products-grid::after {
    display: none !important;
}

/* ────────────────────────────────────
    DIZAJN SAMALNE KARTICE (.ng-card)
──────────────────────────────────── */
.ng-card {
    width: 100% !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid #e7e7e7 !important;
    background: #fff !important;
    font-family: 'Source Sans 3', sans-serif !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

.ng-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(45, 61, 51, 0.08) !important;
}

/* Slika i link slike - POPRAVLJENO DA SE SLIKA VIDI CELA */
.ng-card-img-link {
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important; /* Pozadina ako su slike različitih proporcija */
}

.ng-card-img,
.ng-card-img-link img {
    width: 100% !important;
    height: auto !important;         /* Dozvoljava slici da raste prirodno */
    object-fit: cover !important;  /* Garantuje da se cela slika vidi unutar okvira */
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transition: transform 0.3s ease !important;
    border-radius: 14px 14px 0 0 !important;
}

.ng-card:hover .ng-card-img-link img {
    transform: scale(1.03) !important;
}

/* Telo kartice (Naziv, cena i dugmad) */
.ng-card-body {
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    flex: 1 !important;
    justify-content: space-between !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.ng-card-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

/* Naziv / Kod proizvoda */
.ng-card-code {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    line-height: 1.2 !important;
}

.ng-card-code a {
    color: #111 !important;
    text-decoration: none !important;
}

.ng-card-code a:hover {
    color: #bf8302 !important;
}

/* Cena prilagođena WooCommerce strukturi */
.ng-card-price {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-align: right !important;
}

.ng-card-price .woocommerce-Price-amount {
    color: #111 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.ng-card-price del {
    color: #999 !important;
    font-size: 12px !important;
    margin-right: 4px !important;
    display: inline-block !important;
}

.ng-card-price ins {
    text-decoration: none !important;
    background: transparent !important;
}

/* Kontejner za dugmad */
.ng-card-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: auto !important;
}

/* Zajednički stil za oba dugmeta na kartici */
.ng-btn-cart,
.ng-btn-order {
    width: 100% !important;
    height: 44px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: 0.3s ease !important;
    font-size: 13px !important;
    font-family: 'Source Sans 3', sans-serif !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Dugme: Dodaj u korpu */
.ng-btn-cart {
    border: 1px solid #d9d9d9 !important;
    background: #fff !important;
    color: #111 !important;
}

.ng-btn-cart:hover {
    background: #f5f5f5 !important;
    border-color: #b5b5b5 !important;
}

.ng-btn-cart.ng-btn-loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* Dugme: Poručite */
.ng-btn-order {
    background: #2d3d33 !important;
    color: #fff !important;
    border: none !important;
}

.ng-btn-order:hover {
    background: #1f2b24 !important;
}

/* SVG Ikonice unutar dugmadi na kartici */
.ng-btn-cart svg,
.ng-btn-order svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* ────────────────────────────────────
   GENERAL BUTTONS (Ostala dugmad na sajtu)
──────────────────────────────────── */
.btn-ng-primary {
    display: inline-block;
    background: #2d3d33;
    color: #fff !important;
    padding: 12px 28px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-ng-primary:hover {
    background: #bf8302;
    color: #fff !important;
}

.btn-ng-secondary {
    display: inline-block;
    background: transparent;
    color: #2d3d33 !important;
    padding: 10px 24px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px;
    border: 2px solid #2d3d33;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-ng-secondary:hover {
    background: #2d3d33;
    color: #fff !important;
}

.btn-ng-checkout {
    display: block;
    width: 100%;
    background: #2d3d33;
    color: #fff !important;
    padding: 14px 20px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 3px;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-ng-checkout:hover {
    background: #bf8302;
    color: #fff !important;
}

.btn-ng-phone {
    display: block;
    text-align: center;
    background: transparent;
    border: 2px solid #2d3d33;
    color: #2d3d33 !important;
    padding: 12px 20px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-ng-phone:hover {
    background: #2d3d33;
    color: #fff !important;
    text-decoration: none !important;
}

.ng-cart-btn-full {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* ────────────────────────────────────
   BREADCRUMB
──────────────────────────────────── */
.ng-breadcrumb-section {
    padding: 8px 0 0;
}

.ng-breadcrumb,
.ng-breadcrumb p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.ng-breadcrumb a {
    color: #2d3d33;
    text-decoration: none;
}

.ng-breadcrumb a:hover {
    color: #bf8302;
}

/* ────────────────────────────────────
   SINGLE PRODUCT PAGE
──────────────────────────────────── */
.ng-single-product {
    padding-top: 10px;
}

.ng-sp-image-col {
    margin-bottom: 20px;
}

.ng-sp-main-image {
    margin-bottom: 10px;
}

.ng-sp-img {
    border-radius: 4px;
    max-width: 100%;
}

.ng-sp-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ng-sp-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.ng-sp-thumb:hover,
.ng-sp-thumb-active {
    border-color: #2d3d33;
}

.ng-sp-title {
    font-size: 26px;
    font-weight: 700;
    color: #2d3d33;
    margin-top: 0;
    margin-bottom: 8px;
}

.ng-sp-sku {
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}

.ng-sp-price {
    font-size: 24px;
    font-weight: 700;
    color: #2d3d33;
    margin-bottom: 16px;
}

.ng-sp-price .woocommerce-Price-amount {
    font-size: 24px;
    color: #2d3d33;
}

.ng-sp-short-desc {
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ng-sp-actions {
    margin-bottom: 20px;
}

.ng-sp-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ng-sp-qty-row label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3d33;
    margin: 0;
}

.ng-sp-qty-controls {
    display: flex;
    align-items: center;
    border: 2px solid #2d3d33;
    border-radius: 3px;
    overflow: hidden;
}

.ng-sp-qty-btn {
    background: #2d3d33;
    color: #fff;
    border: none;
    width: 32px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ng-sp-qty-btn:hover {
    background: #bf8302;
}

.ng-sp-qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

.ng-sp-qty-input::-webkit-outer-spin-button,
.ng-sp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ng-sp-add-to-cart {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-bottom: 10px;
}

.ng-sp-order-btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 14px;
}

.ng-sp-cats {
    font-size: 13px;
    color: #888;
}

.ng-sp-cats a {
    color: #2d3d33;
}

.ng-sp-description-row {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.ng-sp-description h3 {
    color: #2d3d33;
    margin-bottom: 16px;
}

/* ────────────────────────────────────
   CART PAGE
──────────────────────────────────── */
.ng-cart-page {
    min-height: 60vh;
}

.ng-page-title {
    color: #2d3d33;
    margin-bottom: 24px;
}

.ng-cart-empty {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.ng-cart-empty p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Cart Table */
.ng-cart-table {
    width: 100%;
}

.ng-cart-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
    gap: 12px;
}

.ng-cart-header {
    font-weight: 700;
    font-size: 13px;
    color: #2d3d33;
    background: #f0f0f0;
    padding: 10px 8px !important;
    border-bottom: 2px solid #2d3d33 !important;
}

.ng-cart-col { flex: 1; }
.ng-cart-col-img  { flex: 0 0 70px; }
.ng-cart-col-name { flex: 3; }
.ng-cart-col-qty  { flex: 1; }
.ng-cart-col-remove {