/* ========================================
   GLOBAL CUSTOM STYLES
   ======================================== */

/* ========================================
   SPECIAL PRODUCTS - IMAGE DIMENSIONS
   ======================================== */

/* Image container - maintain aspect ratio */
.sp-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product images - use backend configured dimensions */
.special-product-image,
.sp-product-image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hover effect */
.sp-card:hover .special-product-image,
.sp-product-card:hover .sp-product-image {
    transform: scale(1.05);
}

/* ========================================
   CONTACT SUPPORT BLOCK - REDESIGNED
   ======================================== */

.contact-support-block {
    padding: 30px 0;
    background: transparent;
    width: 100%;
}

.contact-support-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-support-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

.contact-support-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    width: 100%;
}

.contact-support-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 0;
}

.contact-support-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.contact-support-item:nth-child(1):hover {
    border-color: #007bff;
}

.contact-support-item:nth-child(2):hover {
    border-color: #dc3545;
}

.contact-support-item:nth-child(3):hover {
    border-color: #6c757d;
}

.contact-support-item:nth-child(4):hover {
    border-color: #25d366;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: transparent;
}

.contact-icon i {
    font-size: 32px;
    transition: all 0.3s ease;
}

.contact-support-item:nth-child(1) .contact-icon i {
    color: #007bff;
}

.contact-support-item:nth-child(2) .contact-icon i {
    color: #dc3545;
}

.contact-support-item:nth-child(3) .contact-icon i {
    color: #6c757d;
}

.contact-support-item:nth-child(4) .contact-icon i {
    color: #25d366;
}

.contact-support-item:hover .contact-icon i {
    transform: scale(1.15);
}

.contact-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.contact-item-description {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    color: #ffffff;
}

.contact-btn:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.contact-btn i {
    font-size: 12px;
}

/* Button specific colors */
.btn-chat {
    background: #007bff;
}

.btn-chat:hover {
    background: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
}

.btn-phone {
    background: #dc3545;
}

.btn-phone:hover {
    background: #c82333;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.25);
}

.btn-email {
    background: #6c757d;
}

.btn-email:hover {
    background: #5a6268;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.25);
}

.btn-whatsapp {
    background: #25d366;
}

.btn-whatsapp:hover {
    background: #1da851;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

/* Tablet - 2 columns */
@media (max-width: 992px) {
    .contact-support-block {
        padding: 25px 0;
    }

    .contact-support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .contact-support-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .contact-support-item {
        padding: 20px 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }

    .contact-icon i {
        font-size: 28px;
    }

    .contact-item-title {
        font-size: 15px;
    }

    .contact-item-description {
        font-size: 12px;
        margin-bottom: 12px;
    }
}

/* Mobile - 2 columns */
@media (max-width: 576px) {
    .contact-support-block {
        padding: 20px 0;
    }

    .contact-support-container {
        padding: 0 15px;
    }

    .contact-support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .contact-support-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .contact-support-item {
        padding: 18px 12px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .contact-icon i {
        font-size: 24px;
    }

    .contact-item-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .contact-item-description {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .contact-btn {
        padding: 8px 14px;
        font-size: 10px;
    }

    .contact-btn i {
        font-size: 10px;
    }
}

/* Very small mobile - 1 column */
@media (max-width: 400px) {
    .contact-support-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ========================================
   SPECIAL PRODUCTS - CATEGORY SLIDER
   ======================================== */

/* Category tabs slider (scrollable container) */
.sp-category-tabs-slider {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px 0 15px !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    scrollbar-width: thin !important;
    scrollbar-color: #1F2E44 #f0f0f0 !important;
}

.sp-category-tabs-slider::-webkit-scrollbar {
    height: 10px !important;
    background: #f0f0f0 !important;
    border-radius: 10px !important;
}

.sp-category-tabs-slider::-webkit-scrollbar-thumb {
    background: #1F2E44 !important;
    border-radius: 10px !important;
    transition: background 0.3s ease !important;
    min-width: 40px !important;
}

.sp-category-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    position: relative !important;
}

@media (max-width: 767px) {
    .special-products-list .sp-toolbar {
        flex-wrap: wrap !important;
    }
}

/* ========================================
   PRODUCT DETAILS PAGE - FEATURE BLOCKS
   ======================================== */

body.catalog-product-view .agritrend-feature-blocks .agritrend-feature-title {
    color: #1F2E44 !important;
}

body.catalog-product-view .agritrend-feature-blocks .agritrend-btn {
    padding: 5px 15px !important;
}

body.catalog-product-view .agritrend-feature-blocks .agritrend-feature-actions {
    padding-top: 5px !important;
}

@media (min-width: 768px) {
    body.catalog-product-view .agritrend-feature-blocks .agritrend-feature-image {
        height: 220px !important;
    }

    body.catalog-product-view .agritrend-feature-blocks .agritrend-feature-content {
        padding: 15px !important;
    }

    body.catalog-product-view .agritrend-feature-blocks .agritrend-feature-text {
        line-height: 1 !important;
    }
}

/* ========================================
   PRODUCT DETAILS PAGE - SPECIFICATIONS
   ======================================== */

body.catalog-product-view .product-specifications-tabs .specifications-tab-nav .tab-nav-button {
    border-bottom: unset !important;
}

body.catalog-product-view .product-specifications-tabs .specs-tab-nav-wrapper {
    padding: 5px 0 10px 0 !important;
    border-bottom: unset !important;
}

body.catalog-product-view .product-specifications-tabs .specifications-tab-panels {
    padding: 0 10px !important;
}

body.catalog-product-view .product-specifications-tabs .specifications-table tbody td {
    padding: 13px !important;
}

/* ========================================
   PRODUCT DETAILS PAGE - ADDONS
   ======================================== */

body.catalog-product-view #product-addons.product-addons {
    margin: 30px 0 !important;
}

body.catalog-product-view #product-addons.product-addons .addons-header {
    margin-bottom: 10px !important;
}

body.catalog-product-view #product-addons.product-addons .addons-header:after {
    margin: 5px auto 0 !important;
}

body.catalog-product-view #product-addons.product-addons .addons-header .addons-title {
    font-size: 30px !important;
    color: #1F2E44 !important;
}

body.catalog-product-view #product-addons.product-addons .addon-card .addon-image {
    height: 200px !important;
}

body.catalog-product-view #product-addons.product-addons .addon-card .addon-card-content {
    padding: 8px !important;
}

body.catalog-product-view #product-addons.product-addons .addon-card .addon-title {
    color: #1F2E44 !important;
    font-size: 18px !important;
}

body.catalog-product-view #product-addons.product-addons .addon-card .addon-short-desc {
    margin: 0px !important;
}

body.catalog-product-view #product-addons.product-addons .addon-card .addon-details-wrapper {
    padding: 5px !important;
}

body.catalog-product-view #product-addons.product-addons .addon-card .addon-details-wrapper .addon-details-content {
    margin: 0px !important;
}

body.catalog-product-view #product-addons.product-addons .addons-grid {
    margin-bottom: 30px !important;
}

body.catalog-product-view #product-addons.product-addons .addons-load-more {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    margin-top: 30px !important;
    padding-top: 0 !important;
}

body.catalog-product-view #product-addons.product-addons .addons-load-more .btn-load-more,
body.catalog-product-view #product-addons.product-addons .addons-load-more .btn-show-less {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 5px 25px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    color: #ffffff !important;
    background: #1F2E44 !important;
    border: 2px solid #1F2E44 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgba(31, 46, 68, 0.2) !important;
}

@media (min-width: 768px) {
    body.catalog-product-view #product-addons.product-addons .addons-load-more .btn-load-more,
    body.catalog-product-view #product-addons.product-addons .addons-load-more .btn-show-less {
        padding: 5px 25px !important;
        font-size: 14px !important;
    }
}

body.catalog-product-view #product-addons.product-addons .addons-load-more .btn-load-more i,
body.catalog-product-view #product-addons.product-addons .addons-load-more .btn-show-less i {
    font-size: 16px !important;
    transition: transform 0.3s ease !important;
}

body.catalog-product-view #product-addons.product-addons .addons-load-more .btn-load-more:hover,
body.catalog-product-view #product-addons.product-addons .addons-load-more .btn-show-less:hover {
    background: #2B3F5C !important;
    border-color: #2B3F5C !important;
    box-shadow: 0 6px 20px rgba(31, 46, 68, 0.3) !important;
    transform: translateY(-2px) !important;
}

body.catalog-product-view #product-addons.product-addons .addons-load-more .btn-load-more:hover i {
    transform: translateY(2px) !important;
}

body.catalog-product-view #product-addons.product-addons .addons-load-more .btn-show-less:hover i {
    transform: translateY(-2px) !important;
}

/* ========================================
   PRODUCT DETAILS PAGE - ATTACHMENTS
   ======================================== */

body.catalog-product-view .panth-product-attachment-module .pa-header {
    background-color: #fff !important;
    box-shadow: unset !important;
    color: #1F2E44 !important;
}

body.catalog-product-view .panth-product-attachment-module .pa-header h2 {
    color: #1F2E44 !important;
}

/* ========================================
   PRODUCT DETAILS PAGE - FAQ
   ======================================== */

body.catalog-product-view .product-faq-wrapper {
    background: #fff !important;
    padding: 0px !important;
    margin: 30px 0 !important;
}

body.catalog-product-view .product-faq-wrapper .faq-title {
    color: #1F2E44 !important;
}

body.catalog-product-view .product-faq-wrapper .faq-content {
    padding: 10px !important;
}

body.catalog-product-view .product-faq-wrapper .faq-item-header {
    padding: 5px 20px !important;
}

body.catalog-product-view .product-faq-wrapper .faq-question {
    color: #1F2E44 !important;
}

body.catalog-product-view .faq-item-content {
    padding: 10px 20px !important;
    border-top: 1px solid #1F2E44 !important;
}

body.catalog-product-view .faq-item-content .faq-answer {
    border-top: unset !important;
}

body.catalog-product-view .product-faq-wrapper .faq-view-all {
    text-align: center !important;
    margin-top: 0px !important;
    padding-top: 0px !important;
    border-top: unset !important;
}

body.catalog-product-view .product-faq-wrapper .faq-uncategorized-section {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid #e0e0e0 !important;
    margin-bottom: 0px !important;
}

body.catalog-product-view .product-faq-wrapper .view-all-faqs {
    padding: 5px 12px !important;
}

/* ========================================
   PRODUCT DETAILS PAGE - HIDE ELEMENTS
   ======================================== */

body.catalog-product-view .quantity-selector-wrapper {
    display: none !important;
}

/* ========================================
   PRODUCT DETAILS PAGE - CUSTOM OPTIONS LAYOUT
   ======================================== */

body.catalog-product-view .custom-price-cart-box {
    width: 100% !important;
    max-width: 100% !important;
}

body.catalog-product-view .custom-price-cart-box .product-add-form {
    width: 100% !important;
}

/* ========================================
   PRICE CART BOX - MATCHING SCREENSHOT
   ======================================== */

body.catalog-product-view .price-cart-box-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    padding: 20px !important;
    background: #fff !important;
    border: none !important;
    align-items: start !important;
}

/* LEFT COLUMN - Price Info */
body.catalog-product-view .price-info-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Price ex VAT - Large Bold */
body.catalog-product-view .price-main {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #1F2E44 !important;
    line-height: 1 !important;
}

body.catalog-product-view .price-main .price-value {
    font-size: 36px !important;
    font-weight: 700 !important;
}

body.catalog-product-view .price-main .price-vat-label {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #1F2E44 !important;
}

/* Price inc VAT - Smaller Gray */
body.catalog-product-view .price-inc-vat {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 8px !important;
}

/* Stock Status with Green Icon */
body.catalog-product-view .stock-status {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    color: #333 !important;
}

body.catalog-product-view .stock-status.in-stock i {
    color: #16a34a !important;
    font-size: 16px !important;
}

body.catalog-product-view .stock-status.out-of-stock i {
    color: #dc2626 !important;
    font-size: 16px !important;
}

/* Delivery Info with Truck Icon */
body.catalog-product-view .delivery-info {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    color: #16a34a !important;
}

body.catalog-product-view .delivery-info i {
    color: #16a34a !important;
    font-size: 16px !important;
}

/* RIGHT COLUMN - Actions */
body.catalog-product-view .actions-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Add to Cart Button - Dark Blue, Full Width */
body.catalog-product-view .btn-addtocart {
    width: 100% !important;
    padding: 14px 24px !important;
    background: #1F2E44 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

body.catalog-product-view .btn-addtocart:hover {
    background: #2B3F5C !important;
}

body.catalog-product-view .btn-addtocart i {
    font-size: 18px !important;
}

/* Contact Buttons Row - Side by Side */
body.catalog-product-view .contact-buttons-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

/* Request Call and Start Chat Buttons */
body.catalog-product-view .btn-contact {
    padding: 12px 16px !important;
    background: #fff !important;
    color: #1F2E44 !important;
    border: 2px solid #1F2E44 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

body.catalog-product-view .btn-contact:hover {
    background: #1F2E44 !important;
    color: #fff !important;
}

body.catalog-product-view .btn-contact i {
    font-size: 16px !important;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    body.catalog-product-view .price-cart-box-main {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    body.catalog-product-view .price-main {
        font-size: 28px !important;
    }

    body.catalog-product-view .price-main .price-value {
        font-size: 28px !important;
    }

    body.catalog-product-view .contact-buttons-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    /* Related Products - Owl Carousel Navigation */
    .products-related .owl-carousel .owl-nav button.owl-prev {
        margin: 20px 10px 0 0 !important;
    }

    /* Product Page - Special Products List Toolbar */
    .catalog-product-view .special-products-list .sp-toolbar {
        display: none !important;
    }

    /* Product Gallery */
    .product-gallery-new {
        margin: 0 auto !important;
    }

    /* Custom Price Cart Box */
    .custom-price-cart-box {
        margin-top: 0px !important;
    }
}

/* ========================================
   RELATED PRODUCTS - OWL CAROUSEL
   ======================================== */

.porto-products.title-border-bottom.move-related .products-slider.show-dots-title-right .owl-dots {
    display: none !important;
}

/* ========================================
   FIX: SIDEBAR DISPLAY ON 1-COLUMN LAYOUT
   ======================================== */

/* Prevent body scroll when sidebar is opened to avoid double scrollbars */
html.sidebar-opened,
html.sidebar-opened body {
    overflow: hidden !important;
}

/* Show sidebar when filter button is clicked on 1-column layout */
html.sidebar-opened body.page-layout-1column .sidebar.sidebar-additional,
html.sidebar-opened body.page-layout-1column .sidebar.sidebar-main {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 260px !important;
    z-index: 9000 !important;
    background: #fff !important;
    overflow-y: auto !important;
    transform: translateX(0) !important;
    transition: transform 0.3s ease !important;
}

/* Show layered filter block container on 1-column layout when sidebar is opened */
html.sidebar-opened .page-layout-1column .layered-filter-block-container {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 300px !important;
    z-index: 9000 !important;
    background: #fff !important;
    overflow-y: auto !important;
    transform: translateX(0) !important;
    transition: transform 0.3s ease !important;
}

/* ========================================
   FIX: BREADCRUMBS STYLING
   ======================================== */

/* Breadcrumbs - Porto theme proper styling */
.page-wrapper > .breadcrumbs {
    padding: 0;
    margin-bottom: 0;
    font-size: 0.75rem;
}

.page-wrapper > .breadcrumbs .items {
    padding: 12px 10px;
    display: flex;
    flex-wrap: wrap;
    font-size: 1em;
    color: inherit;
    margin: 0 auto;
    list-style: none;
    max-width: 1220px;
    width: 100%;
}

.page-wrapper > .breadcrumbs .items > li {
    text-shadow: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin: 0;
}

/* Home icon */
.page-wrapper > .breadcrumbs .items > li.home a {
    position: relative;
    width: 14px;
    text-indent: -9999px;
}

.page-wrapper > .breadcrumbs .items > li.home a:after {
    font-family: porto-icons;
    content: "\e883";
    float: left;
    text-indent: 0;
    position: absolute;
    left: 0;
}

/* Breadcrumb links */
.page-wrapper > .breadcrumbs .items > li a {
    display: inline-block;
    border-color: transparent;
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Breadcrumb separator */
.page-wrapper > .breadcrumbs .items > li:not(:last-child)::after {
    position: relative;
    content: "\e81a";
    font-family: porto-icons;
    right: -1px;
    display: block;
    float: right;
    margin: 0 4px;
    width: 20px;
    text-align: center;
    font-style: normal;
    font-size: 12px;
    line-height: inherit;
}

/* Current page (strong) */
.page-wrapper > .breadcrumbs .items > li strong {
    font-weight: inherit;
}

/* ========================================
   PRODUCT IMAGE WRAPPER - AUTO HEIGHT
   ======================================== */

/* Set auto height for product image wrappers across all contexts */
.products-list .product-image-wrapper,
.cart.table-wrapper .product-image-wrapper,
.minicart-items .product-image-wrapper,
.block-giftregistry-shared-items .product-image-wrapper {
    height: auto !important;
}

