/* Product Shortcode Styles */
.product-card {
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card-link {
    padding: 25px;
    display: grid;
    grid-template-columns: 250px 1fr auto;
    grid-template-areas: 
        "image info button"
        "logo info button";
    column-gap: 30px;
    align-items: start;
    color: inherit;
    text-decoration: none;
}

.product-card .product-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    grid-area: image;
}

.product-card .product-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    max-width: 120px;
    
}

.product-card .product-title {
    color: #12263A;
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 20px 0;
    padding-left: 15px;
    border-left: 4px solid #CC0000;
    line-height: 1.3;
    grid-area: title;
}

.product-card .product-specs {
    grid-area: info;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.product-card .spec-item {
    margin-bottom: 12px;
    display: flex;
}

.product-card .spec-label {
    font-weight: normal;
    color: #666;
    width: 140px;
    flex-shrink: 0;
}

.product-card .spec-value {
    font-weight: bold;
    color: #333;
}

.product-card .spec-value.highlight {
    color: #CC0000;
    font-size: 18px;
}

.product-card .brand-logo {
    max-height: 50px;
    margin-top: 15px;
    grid-area: logo;
    align-self: flex-end;
}

.product-card .price-button {
    grid-area: button;
    align-self: center;
    justify-self: end;
}

.product-card .btn {
    background-color: #d22630;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.product-card .btn:hover {
    background-color: #b51e27;
    transform: translateY(-2px);
}

.product-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .product-card-link {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "image"
            "title"
            "info"
            "logo"
            "button";
        row-gap: 15px;
        padding: 20px;
    }
    
    .product-card .product-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .product-card .price-button {
        justify-self: center;
        margin-top: 15px;
    }
      .product-card .brand-logo {
        justify-self: center;
        margin: 10px 0;
    }
}

/* Optional Battery Styles */
.optional-battery-header {
    width: 100%;
    padding: 15px 0 5px 0;
    margin: 30px 0 20px 0;
    border-top: 1px solid #e1e1e1;
    text-align: center;
}

.optional-battery-header h3 {
    font-size: 20px;
    color: #12263A;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
}

.optional-battery-header h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #CC0000;
}

/* Owl Carousel Customizations for Products */
.products-slider {
    margin: 20px 0;
}

.products-slider .item {
    padding: 0 10px;
}

.products-slider .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin: 0;
}

.products-slider .product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.products-slider .product-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
    flex-grow: 1;
    line-height: 1.3;
}

.products-slider .product-brand {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-bottom: 5px;
}

.products-slider .product-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.products-slider .product-price {
    font-size: 18px;
    font-weight: bold;
    color: #CC0000;
    margin: 10px 0;
}

.products-slider .btn {
    margin-top: auto;
    font-size: 14px;
    padding: 8px 16px;
}

/* Border colored classes for different brands */
.border-colored {
    border-color: #CC0000 !important;
    border-width: 2px;
}

.border-colored-green {
    border-color: #28a745 !important;
    border-width: 2px;
}

/* Owl Carousel Navigation Styles */
.products-slider .owl-nav {
    margin-top: 20px;
    text-align: center;
}

.products-slider .owl-nav button {
    background: #CC0000 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 5px !important;
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.products-slider .owl-nav button:hover {
    background: #a11f26 !important;
}

.products-slider .owl-dots {
    margin-top: 15px;
    text-align: center;
}

.products-slider .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.products-slider .owl-dots .owl-dot span {
    background: #ccc !important;
    border-radius: 50% !important;
    width: 10px !important;
    height: 10px !important;
    display: block !important;
}

.products-slider .owl-dots .owl-dot.active span {
    background: #CC0000 !important;
}

/* Responsive adjustments for Owl Carousel */
@media (max-width: 768px) {
    .products-slider .product-image {
        height: 120px;
    }
    
    .products-slider .product-name {
        font-size: 14px;
    }
    
    .products-slider .item {
        padding: 0 5px;
    }
}

/* Owl Carousel customization for products */
.products-carousel {
    margin: 20px 0;
}

.products-carousel .owl-nav {
    text-align: center;
    margin-top: 20px;
}

.products-carousel .owl-nav button {
    background: #ff6b35 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 5px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.products-carousel .owl-nav button:hover {
    background: #e55a2b !important;
    transform: scale(1.1);
}

.products-carousel .owl-nav button.owl-prev,
.products-carousel .owl-nav button.owl-next {
    outline: none !important;
}

.products-carousel .owl-dots {
    text-align: center;
    margin-top: 15px;
}

.products-carousel .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.products-carousel .owl-dots .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s ease;
}

.products-carousel .owl-dots .owl-dot.active span,
.products-carousel .owl-dots .owl-dot:hover span {
    background: #ff6b35;
}

/* Dostosowanie kart produktów dla carousel */
.products-carousel .product-card {
    margin: 0 10px;
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.products-carousel .product-info,
.products-carousel .product-infos {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-carousel .product-image-wrapper {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-carousel .product-image {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
}

/* Responsive dla carousel */
@media (max-width: 768px) {
    .products-carousel .product-card {
        margin: 0 5px;
        min-height: 350px;
    }
}
