/* Font Face Declarations */
/* unicode-range excludes đ (U+0111) and Đ (U+0110) so Windows falls back to Segoe UI for Serbian */
@font-face {
    font-family: 'NeueMachina';
    src: url('assets/font/NeueMachina-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-010F, U+0112-10FFFF;
}

@font-face {
    font-family: 'NeueMachina';
    src: url('assets/font/NeueMachina-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-010F, U+0112-10FFFF;
}

@font-face {
    font-family: 'NeueMachina';
    src: url('assets/font/NeueMachina-Ultrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-010F, U+0112-10FFFF;
}

@font-face {
    font-family: 'Acumin Pro';
    src: url('assets/font/AcuminPro-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-010F, U+0112-10FFFF;
}

@font-face {
    font-family: 'Acumin Pro';
    src: url('assets/font/AcuminPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-010F, U+0112-10FFFF;
}

@font-face {
    font-family: 'Acumin Pro';
    src: url('assets/font/AcuminPro-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-010F, U+0112-10FFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Acumin Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Headings and Titles use NeueMachina */
h1, h2, h3, h4, h5, h6 {
    font-family: 'NeueMachina', sans-serif;
    font-weight: 800;
}

/* Header Styles */
.main-header {
    background: white;
    padding: 8px 30px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    border-radius: 12px;
    padding: 10px 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile: amount in header (hidden on desktop) */
.header-funds-mobile {
    display: none;
    align-items: center;
    gap: 8px;
}

.header-funds-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: lowercase;
    font-family: 'Acumin Pro', sans-serif;
    font-weight: 300;
}

.header-funds-amount {
    font-family: 'Acumin Pro', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #fff;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.logo .logo-image {
    width: auto;
    max-height: 60px;
}

.mobile-cart-link {
    outline: 0;
    background: none;
    border: none;
    padding: 0;
    position: relative;
    display: inline-block;
}

.mobile-cart-link:hover {
    cursor: pointer;
}

.mobile-cart-image {
    max-width: 25px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #4556a6;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    min-width: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
}

.content-header {
    max-width: 1400px;
    margin: 0 auto 30px;
}

.main-title {
    font-family: 'NeueMachina', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.main-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Basic Page Content Styling */
.main-description p {
    margin-bottom: 1em;
    font-family: 'Acumin Pro', sans-serif;
}

.main-description h1,
.main-description h2,
.main-description h3,
.main-description h4,
.main-description h5,
.main-description h6 {
    font-family: 'NeueMachina', sans-serif;
    font-weight: 800;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #333;
}

.main-description h2 {
    font-size: 24px;
}

.main-description h3 {
    font-size: 20px;
}

.main-description ul,
.main-description ol {
    margin: 1em 0;
    padding-left: 2em;
    font-family: 'Acumin Pro', sans-serif;
}

.main-description a {
    color: #4556a6;
    text-decoration: underline;
}

.main-description a:hover {
    color: #005a9e;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Top Header Row */
.top-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Very small screens - stack header elements */
@media (max-width: 600px) {
    .top-header-row {
        flex-direction: column;
        align-items: flex-end;
        gap: 15px;
    }

    .section-header {
        order: 2;
        width: 100%;
        justify-content: space-between;
    }

    .available-funds-section {
        order: 1;
        width: 100%;
        text-align: right;
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

/* Main Content Row */
.main-content-row {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* Products Section (Left) */
.products-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.products-section {
    flex: 1;
}

.section-title {
    font-family: 'NeueMachina', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #333;
    margin: 0;
}

.category-selector {
    margin: 0;
    flex-shrink: 0;
}

.products-section {
    flex: 1;
}

.loading-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.category-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.category-dropdown option:hover {
    background: #5616be;
}

.instruction-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.products-table-container {
    max-height: 600px;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #EFEFEF;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: #EFEFEF;
}

.products-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #EFEFEF;
}

.products-table th {
    padding: 12px;
    text-align: left;
    font-weight: 400;
    font-size: 16px;
    color: #5B5B5B;
}

.products-table td {
    padding: 12px;
}

.product-row:hover {
    background: white;
}

.product-cell-image {
    vertical-align: middle;
}

.product-cell-info {
    vertical-align: middle;
}

.product-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Na desktopu cenu pokazuje samo .price-cell; ovaj span samo u card layoutu (768px) */
.product-price-mobile {
    display: none;
}

.product-name {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.price-cell {
    font-family: 'Acumin Pro', sans-serif;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.quantity-cell {
    width: 150px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: white;
    border: 1px solid #ccc;
    width: 32px;
    height: 32px;
    border-radius: 0;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    color: #333;
    font-weight: 600;
}

.qty-btn.minus {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-right: 1px solid #ccc;
}

.qty-btn.plus {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-left: 1px solid #ccc;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.qty-btn:active {
    background: #e8e8e8;
}

.qty-btn:disabled {
    background: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.quantity-input {
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    background: white;
    color: #000;
    line-height: 32px;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.quantity-input:focus {
    outline: none;
    border-top-color: #5616be;
    border-bottom-color: #5616be;
}

.quantity-input:disabled {
    background: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.action-cell {
    width: 150px;
    text-align: center;
}

.add-to-cart-btn {
    background: #5616be;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: #4556a6;
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Right Column */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Available Funds Section */
.available-funds-section {
    background: white;
    text-align: right;
    font-family: 'Acumin Pro', sans-serif;
    flex-shrink: 0;
}

/* Summary Section (Right) */
.summary-section {
    background: #EFEFEF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-y: auto;
    margin-bottom: 10px;
    flex: 0 1 auto;
    min-height: 0;
}

.funds-label {
    font-size: 16px;
    color: #5b5b5b;
    margin-bottom: 8px;
    text-transform: lowercase;
    font-family: 'Acumin Pro', sans-serif;
    font-weight: 300;
}

.funds-amount {
    font-family: 'Acumin Pro', sans-serif;
    font-weight: 600;
    font-size: 56px;
    line-height: 1;
    color: #000000;
}

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

.empty-cart-message p {
    font-family: 'Acumin Pro', sans-serif;
    font-size: 16px;
    margin: 0;
}

.empty-cart-message p:first-child {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.empty-cart-subtitle {
    font-size: 14px;
    color: #999;
}

.summary-category {
    margin-bottom: 20px;
}

.summary-category:last-of-type {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-header h3 {
    font-family: 'NeueMachina', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #333;
    margin: 0;
}

.clear-all-btn {
    background: none;
    border: none;
    color: #5616be;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: 'Acumin Pro', sans-serif;
}

.clear-all-btn:hover:not(:disabled) {
    color: #333;
}

.clear-all-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
    opacity: 0.6;
}

.summary-items {
    margin-bottom: 12px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

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

.summary-item-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.item-name {
    font-family: 'Acumin Pro', sans-serif;
    color: #000;
    flex: 1;
    font-weight: 400;
}

.item-price {
    font-family: 'Acumin Pro', sans-serif;
    color: #000;
    font-weight: 600;
    font-size: 18px;
}

.remove-item-btn {
    background: #da4836;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.remove-item-btn:hover:not(:disabled) {
    background: #da190b;
    transform: scale(1.1);
}

.remove-item-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.category-total {
    font-family: 'Acumin Pro', sans-serif;
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-weight: 400;
    font-size: 16px;
    color: #333;
    border-top: 1px solid #e0e0e0;
}

.category-total span:last-child {
    font-weight: 600;
}

.overall-total {
    font-family: 'Acumin Pro', sans-serif;
    background: #000;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.finish-shopping-btn {
    padding: 14px 24px;
    background: #32317e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
    align-self: flex-end;
    width: fit-content;
}

.finish-shopping-btn:hover {
    background: #4556a6;
}

/* Logos Section */
.logos-section {
    padding: 30px;
}

.logos-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.logo-img {
    height: 25px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .logos-container {
        gap: 20px;
    }
    
    .logo-img {
        height: 30px;
    }
}

/* Footer */
.main-footer {
    padding: 30px;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer social icons: shown only on mobile (see @media below) */
.footer-social-icons {
    display: none;
}

.footer-copyright {
    font-family: 'Acumin Pro', sans-serif;
    color: #fff;
    font-size: 14px;
}

.footer-copyright a {
    color: #fff;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: #9cd198;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-links a,
.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-menu a:hover {
    color: #9cd198;
    text-decoration: underline;
}

/* Scrollbar Styling */
.products-table-container::-webkit-scrollbar,
.summary-section::-webkit-scrollbar {
    width: 8px;
}

.products-table-container::-webkit-scrollbar-track,
.summary-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.products-table-container::-webkit-scrollbar-thumb,
.summary-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.products-table-container::-webkit-scrollbar-thumb:hover,
.summary-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Flying product animation */
.flying-product {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Number animation */
.animated-number {
    font-family: 'Acumin Pro', sans-serif;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 32px;
}

.animated-number.updating {
    transform: scale(1.2);
    color: #5616be;
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    border: 3px solid #000;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 30px 30px 30px;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pay-btn {
    background: #5616be;
    color: white;
}

.pay-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.cancel-btn {
    background: #da4836;
    color: white;
}

.cancel-btn:hover {
    background: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.close-btn {
    background: #da4836;
    color: white;
}

.close-btn:hover {
    background: rgb(239, 75, 38);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 75, 38, 0.3);
}

/* Finished popup – share section */
.modal-share-message {
    font-size: 15px;
    color: #333;
    margin: 0 0 12px 0;
    padding: 0 30px;
    text-align: center;
    font-family: 'Acumin Pro', sans-serif;
}

.modal-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 0 30px 16px;
}

.modal-share-text-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.modal-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-share-icon:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.modal-share-icon img,
.modal-share-icon svg {
    width: 24px;
    height: 24px;
}

/* Popup share icons: black (same SVGs as header, different color) */
.modal-share-icon-img {
    filter: brightness(0);
}

.share-native-btn {
    background: #5616be;
    color: white;
}

.share-native-btn:hover {
    background: #4556a6;
    transform: translateY(-2px);
}

.copy-link-btn {
    background: #32317e;
    color: white;
}

.copy-link-btn:hover {
    background: #4556a6;
    transform: translateY(-2px);
}

/* Mobile Styles - 991px and below */
@media (max-width: 991px) {
    /* Header: hide social icons, show amount in header when scrolled (Vue controls visibility) */
    .header-social-icons {
        display: none !important;
    }

    .header-funds-mobile {
        display: flex;
    }

    /* Podeli and Kopiraj link stay inline on one row */
    .modal-share-text-buttons {
        width: 100%;
        justify-content: center;
    }

    /* Show cart icon on mobile */
    .mobile-cart {
        display: block;
    }

    /* Social icons on mobile (in header - hidden above) */
    .social-icons {
        gap: 20px;
    }

    /* Footer: show social icons on mobile */
    .footer-social-icons {
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: center;
        width: 100%;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-social-icons .social-icon-img {
        width: 22px;
        height: 22px;
    }

    .social-icon-img {
        width: 20px;
        height: 20px;
    }

    .main-content {
        padding: 20px 10px;
    }

    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 8px 10px;
        background: white;
    }

    .main-footer {
        padding: 15px 10px;
    }

    /* Main content row - stack vertically on mobile */
    .main-content-row {
        flex-direction: column;
        gap: 20px;
    }

    /* Cart overlay */
    .cart-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
    }

    /* Right column - slide in from right */
    .right-column {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: white;
        z-index: 10001;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 55px 20px;
    }

    .admin-bar .right-column {
        padding-top: 100px;
    }

    .right-column.cart-open {
        right: 0;
    }

    /* Cart close button */
    .cart-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 32px;
        color: #333;
        cursor: pointer;
        z-index: 10002;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .cart-close-btn:hover {
        color: #000;
    }

    .admin-bar .cart-close-btn {
        top: 60px;
    }

    /* Summary section adjustments for mobile */
    .summary-section {
        position: static;
        max-height: none;
        margin-bottom: 20px;
    }

    /* Overall total adjustments */
    .overall-total {
        position: sticky;
        bottom: 0;
        margin-top: 20px;
    }
}

/* Products table: card layout samo od 768px nadole (ne prerano); slika visoka 2 reda */
@media (max-width: 768px) {
    .products-table-container {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .products-table-container::-webkit-scrollbar {
        display: none;
    }

    .products-table thead {
        display: none;
    }

    .products-table {
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    /* 2 reda: red 1 = slika, naziv+cena, qty; red 2 = dugme */
    .products-table tr.product-row {
        display: grid;
        grid-template-columns: 72px 1fr 100px;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0 10px;
        background: #EFEFEF;
        border-radius: 8px 8px 0 0;
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }

    .products-table tr.product-row:last-child {
        border-bottom: none;
        border-radius: 8px;
    }

    .products-table td {
        border: none;
        padding: 0;
    }

    .product-name {
        font-size: 16px;
    }

    .product-cell-image {
        grid-row: span 2 / span 2;
    }

    .product-cell-image .product-icon {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 6px;
        display: block;
    }

    .product-cell-info {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        justify-content: center;
    }

    .product-price-mobile {
        display: block;
        font-family: 'Acumin Pro', sans-serif;
        font-size: 14px;
        color: #333;
        font-weight: 600;
    }

    .price-cell {
        display: none;
    }

    .quantity-cell {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
    }

    /* Dugme u drugom redu, ispod kolona 2 i 3 */
    .action-cell {
        grid-column: 2 / 4;
        grid-row: 2;
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }

    .add-to-cart-btn {
        width: 100%;
    }
}

/* Desktop Styles - above 991px */
@media (min-width: 992px) {
    /* Hide cart icon on desktop */
    .mobile-cart {
        display: none;
    }

    /* Ensure right column is visible on desktop */
    .right-column {
        position: static;
        width: auto;
        height: auto;
    }

    .cart-overlay {
        display: none;
    }

    .cart-close-btn {
        display: none;
    }
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column-reverse;
        gap: 30px;
    }

    /* Slika u product-cell ostaje 2 reda (pravila iz 768px); ovde samo manji padding */
    .products-table td {
        padding: 8px 6px;
    }

    .logos-section {
        padding: 15px 10px;
    }

    .logo-img {
        height: 20px;
    }
}
