/* =================================================================
   WooCommerce Premium Styles - Bean Merchant
   ================================================================= */

/* Variables */
:root {
    --primary-color: #2c1810;
    --secondary-color: #d4a574;
    --text-light: #666;
    --text-dark: #333;
    --bg-light: #f8f6f3;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --sale-color: #e74c3c;
    --transition: all 0.3s ease;
}

/* =================================================================
   Shop Page Styles
   ================================================================= */

/* Shop Hero Section */
.shop-hero-premium {
    min-height: 60vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d2418 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.coffee-steam-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,50 Q30,20 40,50 T60,50 T80,50" stroke="white" fill="none" opacity="0.5"/></svg>') repeat;
    animation: steamFloat 20s infinite linear;
}

@keyframes steamFloat {
    0% { transform: translate(-50%, 0) rotate(0deg); }
    100% { transform: translate(0, -50%) rotate(360deg); }
}

.shop-hero-premium .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.shop-trust-points {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.trust-point i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Shop Controls */
.shop-controls-premium {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Filter Triggers */
.filter-triggers {
    display: flex;
    gap: 0.5rem;
}

.filter-trigger {
    background: var(--bg-light);
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-trigger:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-trigger.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* View Mode Toggle */
.view-mode-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-light);
    padding: 0.25rem;
    border-radius: 5px;
}

.view-mode {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.view-mode.active {
    background: white;
    color: var(--primary-color);
    border-radius: 3px;
}

/* Active Filters */
.active-filters {
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag .remove {
    cursor: pointer;
    font-weight: bold;
}

/* Shop Layout */
.shop-content-premium {
    padding: 3rem 0;
    background: var(--bg-light);
}

.shop-layout {
    display: flex;
    gap: 2rem;
    position: relative;
}

/* Sidebar Filters */
.shop-filters-sidebar {
    width: 280px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    position: sticky;
    top: 150px;
    height: fit-content;
    transform: translateX(-100%);
    opacity: 0;
    transition: var(--transition);
}

.shop-filters-sidebar.active {
    transform: translateX(0);
    opacity: 1;
}

/* Products Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

/* Product Card */
.woocommerce ul.products li.product {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Product Image */
.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Product Title */
.woocommerce ul.products li.product h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1rem;
    text-align: center;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    font-size: 1rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1rem;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    @extend .btn-primary;
    margin: var(--spacing-small);
}

.woocommerce ul.products li.product .button:hover {
    background: #c09560;
}

/* =================================================================
   Product Card Styles
   ================================================================= */

.product-card-premium {
    list-style: none;
    margin: 0;
}

.product-card-inner {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.product-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-featured {
    background: var(--secondary-color);
    color: white;
}

.badge-subscription {
    background: var(--primary-color);
    color: white;
}

.badge-sale {
    background: var(--sale-color);
    color: white;
}

.badge-soldout {
    background: #999;
    color: white;
}

.badge-lowstock {
    background: #ff9800;
    color: white;
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card-inner:hover .product-image {
    transform: scale(1.1);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card-inner:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.overlay-detail i {
    color: var(--secondary-color);
}

.btn-view {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view:hover {
    background: #c09560;
    transform: translateY(-2px);
}

/* Product Info */
.product-info {
    padding: var(--spacing-medium);

}

.product-roaster {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: var(--font-size-medium);
    margin-bottom: var(--spacing-small);
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.product-title a:hover {
    color: var(--secondary-color);
}

.product-origin {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.product-origin i {
    margin-right: 0.25rem;
    color: var(--secondary-color);
}

/* Tasting Notes */
.product-tasting-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tasting-note {
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* Product Footer */
.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price del {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-right: 0.5rem;
}

.price-frequency {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Product Actions */
.product-actions .button,
.btn-select-options {
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.product-actions .button:hover,
.btn-select-options:hover {
    background: #c09560;
    transform: translateY(-2px);
    color: white;
}

/* =================================================================
   Single Product Styles
   ================================================================= */

/* Breadcrumb */
.product-breadcrumb {
    padding: 1.5rem 0;
    background: var(--bg-light);
}

.woocommerce-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
}

.woocommerce-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.woocommerce-breadcrumb a:hover {
    color: var(--secondary-color);
}

/* Product Layout */
.product-main {
    padding: 3rem 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Product Gallery */
.product-gallery-wrapper {
    position: sticky;
    top: 100px;
}

.woocommerce-product-gallery {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.woocommerce-product-gallery__image {
    margin: 0;
}

/* Product Summary */
.product-summary {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.product-roaster-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Product Title */
.product_title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Price Display */
.price {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Add to Cart Form */
.cart {
    margin-bottom: 2rem;
}

.variations {
    margin-bottom: 1.5rem;
}

.variations td {
    padding: 0.75rem 0;
}

.variations label {
    font-weight: 600;
    color: var(--text-dark);
}

.variations select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: white;
    font-size: 1rem;
    transition: var(--transition);
}

.variations select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Quantity Input */
.quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.quantity input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-weight: 600;
}

/* Single Add to Cart Button */
.single_add_to_cart_button {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.single_add_to_cart_button:hover {
    background: #c09560;
    transform: translateY(-2px);
}

/* Product Trust Points */
.product-trust-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.trust-point {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.trust-point i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.trust-point strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.trust-point span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Product Tabs */
.woocommerce-tabs {
    margin-top: 4rem;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid var(--border-color);
    margin: 0;
    padding: 0;
}

.woocommerce-tabs ul.tabs li {
    list-style: none;
    margin: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.woocommerce-tabs .panel {
    padding: 2rem 0;
}

/* Related Products */
.related.products {
    margin-top: 4rem;
}

.related.products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Additional Sections */
.roaster-story,
.brewing-guide {
    padding: 3rem 0;
    background: var(--bg-light);
    margin-top: 3rem;
}

.story-content,
.brewing-content {
    max-width: 800px;
    margin: 0 auto;
}

.roaster-story h2,
.brewing-guide h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* CTA Section */
.product-cta-quiz {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d2418 100%);
    color: white;
    text-align: center;
    margin-top: 4rem;
}

.product-cta-quiz h2 {
    color: white;
    margin-bottom: 1rem;
}

.product-cta-quiz p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* Education CTA */
.shop-education-cta {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.education-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.education-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* No Products Found */
.no-products-found-premium {
    padding: 6rem 0;
    text-align: center;
}

.no-products-content i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.no-products-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-products-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* =================================================================
   Responsive Design
   ================================================================= */

@media (max-width: 968px) {
    /* Shop Controls */
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls-left,
    .controls-right {
        justify-content: space-between;
        width: 100%;
    }
    
    /* Products Grid */
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Single Product */
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery-wrapper {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Products Grid */
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    /* Product Card */
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    /* Trust Points */
    .product-trust-points {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;    
    }

    .woocommerce div.product {
        grid-template-columns: 1fr 1fr;
    }

    .woocommerce div.product div.summary {
        padding: var(--spacing-large);
        background: var(--bg-light);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);    
    }
}

@media (max-width: 480px) {
    /* Shop Trust Points */
    .shop-trust-points {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Filter Triggers */
    .filter-triggers {
        flex-wrap: wrap;
    }
    
    .filter-trigger {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Products Grid */
    .woocommerce ul.products {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem; /* Space between products */
        list-style: none;
        padding: 0;
        margin: 0;    }
}

/* Single Product Page */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin: 2rem 0;
}

/* Product Images */
.woocommerce div.product div.images {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.woocommerce div.product div.images img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Product Summary */
.woocommerce div.product div.summary {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Product Title */
.woocommerce div.product div.summary h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Product Price */
.woocommerce div.product div.summary p.price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Add to Cart Button */
.woocommerce div.product div.summary .single_add_to_cart_button {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.woocommerce div.product div.summary .single_add_to_cart_button:hover {
    background: #c09560;
}

.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}


