/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

/* Jewelry Carousel Styles (aligned with shoppable-jewelry, without !important) */
.custom-jewelry-carousel {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
    overflow: hidden;
}
.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
    will-change: transform;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ff7a00;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}
.carousel-arrow:hover {
    background: #fff;
    color: #e66a00;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.carousel-arrow.hidden { display: none; }
.prev { left: 10px; }
.next { right: 10px; }
.product-card {
    box-sizing: border-box;
    flex: 0 0 auto;
    padding: 0 5px;
}
.product-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.card-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f9f9f9;
}
.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    min-width: 100%;
    min-height: 100%;
    display: block;
}
.secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card a:hover .secondary-image { opacity: 1; }
.in-stock-badge {
    position: absolute;
    top: 8px;
    left: 6px;
    background: #E7E4DA;
    color: #fcb45c;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 10;
    border: none;
}
.card-info { padding: 12px; }
.meta {
    margin-bottom: 4px;
    color: #666;
    line-height: 1.2;
}
.title {
    margin: 0 0 8px 0;
    padding: 0;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
}
.price-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    white-space: nowrap;
}
.price {
    font-weight: bold;
    color: #fcb45c;
    flex-shrink: 0;
}
.rating {
    color: #ffc107;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.rating-count {
    color: #666;
    margin-left: 4px;
}
.product-card a {
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.custom-image-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.custom-banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-height: 100%;
}
.discount-badge {
    position: absolute;
    top: 8px;
    left: 80px;
    background: #d0d0d0;
    color: #e85454;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 10;
}
.price-container {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: bold;
}
.original-price {
    color: #666;
    text-decoration: line-through;
    font-size: 0.8em;
    font-weight: normal;
}
.custom-jewelry-carousel .product-card .price { color: #000; }
.custom-jewelry-carousel .product-card .price-container .price { color: #000; }
.custom-jewelry-carousel .product-card .price-container .original-price { color: #666; }
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.carousel-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.carousel-indicator.active {
    background-color: #ff7a00;
    width: 16px;
    border-radius: 3px;
}
.shop-poster-card {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    height: 100%;
}
.shop-poster-link { display: block; width: 100%; height: 100%; }
.shop-poster-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.no-products {
    text-align: center;
    padding: 2rem;
    color: #666;
}
@media (min-width: 1024px) {
    .product-card { width: calc(100% / var(--desktop-columns, 6)); }
    .meta { font-size: clamp(11px, 0.9vw, 13px); }
    .title { font-size: clamp(10px, 1vw, 14px); }
    .product-card .price { font-size: clamp(10px, 1vw, 13px); }
    .rating { font-size: clamp(8px, 0.9vw, 10px); }
    .rating-count { font-size: clamp(8px, 0.9vw, 10px); }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .product-card { width: calc(100% / 4); }
    .meta { font-size: 11px; }
    .title { font-size: 10px; }
    .product-card .price { font-size: 10px; }
    .rating { font-size: 10px; }
    .rating-count { font-size: 10px; }
}
@media (min-width: 576px) and (max-width: 767px) {
    .product-card { width: calc(100% / 3); }
    .meta { font-size: 10px; }
    .title { font-size: 9px; }
    .product-card .price { font-size: 9px; }
    .rating { font-size: 9px; }
    .rating-count { font-size: 9px; }
}
@media (max-width: 575px) {
    .product-card { width: calc(100% / 2); }
    .meta { font-size: 9px; }
    .title { font-size: 8px; }
    .product-card .price { font-size: 8px; }
    .rating { font-size: 8px; }
    .rating-count { font-size: 8px; }
    .in-stock-badge, .discount-badge { font-size: 7px; padding: 2px 6px; border-radius: 2px; }
    .discount-badge { left: auto; right: 6px; top: 8px; }
    .price-rating { display: block; white-space: normal; }
    .price-rating .rating { margin-top: 4px; justify-content: flex-start; }
}
