/* Ideavezy Shop Frontend Styles */

:root {
    --ideavezy-primary: #C53A3A;
    --ideavezy-secondary: #A7833B;
    --ideavezy-text: white;
    --ideavezy-accent: #29282C;
    --ideavezy-background: #1A191D;
}

/* Basic reset for shop elements */
.ideavezy-shop-page *,
.ideavezy-category-page *,
.ideavezy-product-page * {
    box-sizing: border-box;
}

/* Ensure shop pages have proper styling */
.ideavezy-shop-page,
.ideavezy-category-page,
.ideavezy-product-page {
    background: var(--ideavezy-background);
    color: var(--ideavezy-text);
}

/* Override theme styles that might interfere */
.ideavezy-shop-page a,
.ideavezy-category-page a,
.ideavezy-product-page a {
    color: var(--ideavezy-secondary);
}

.ideavezy-shop-page a:hover,
.ideavezy-category-page a:hover,
.ideavezy-product-page a:hover {
    color: var(--ideavezy-primary);
}

/* Ensure proper spacing */
.ideavezy-shop-page .container,
.ideavezy-category-page .container,
.ideavezy-product-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading state */
.ideavezy-loading {
    text-align: center;
    padding: 40px;
    color: var(--ideavezy-text);
}

/* Error state */
.ideavezy-error {
    background: rgba(197, 58, 58, 0.1);
    border: 1px solid var(--ideavezy-primary);
    color: var(--ideavezy-primary);
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Success state */
.ideavezy-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #4CAF50;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Shop Grid */
.ideavezy-shop {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.shop-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.featured {
    background: #ffd93d;
    color: #333;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: #0073aa;
}

.product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.price.member-price {
    color: #28a745;
}

.price.regular-price {
    color: #666;
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 400;
}

.member-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-primary {
    background: #0073aa;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #005a87;
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #333;
}

/* Product Detail Page */
.product-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #0073aa;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 20px 0;
}

.product-title-detail {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.product-pricing-detail {
    margin-bottom: 20px;
}

.price-detail {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.price-detail.member {
    color: #28a745;
}

.price-comparison {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.savings {
    color: #28a745;
    font-weight: 600;
}

/* Variant Selection */
.variant-selection {
    margin-bottom: 25px;
}

.variant-group {
    margin-bottom: 20px;
}

.variant-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-option {
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.variant-option:hover {
    border-color: #0073aa;
}

.variant-option.selected {
    border-color: #0073aa;
    background: #0073aa;
    color: white;
}

.variant-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-label {
    font-weight: 600;
    color: #333;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-field {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Add to Cart */
.add-to-cart-section {
    margin-bottom: 30px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: #218838;
}

.add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.stock-info {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.in-stock {
    color: #28a745;
    font-weight: 600;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 600;
}

/* Product Description */
.product-description-detail {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #dee2e6;
}

.description-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.description-content {
    line-height: 1.6;
    color: #666;
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0px;
    gap: 10px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-variant {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    color: #333;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #dee2e6;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .variant-options {
        flex-direction: column;
    }
    
    .variant-option {
        text-align: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ideavezy-shop,
    .product-detail {
        padding: 15px;
    }
    
    .shop-products {
        grid-template-columns: 1fr;
    }
    
    .product-title-detail {
        font-size: 24px;
    }
    
    .price-detail {
        font-size: 20px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    z-index: 1002;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

/* Pricing Display Styles */
.product-price {
    margin-top: auto;
}

.member-price-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-price-display .h3,
.member-price-display .h4,
.member-price-display .h5,
.member-price-display .h6 {
    margin-bottom: 0;
    font-weight: 600;
}

.regular-price-display {
    margin-top: 0.25rem;
}

.non-member-price {
    margin-top: 0.25rem;
}

.non-member-price small,
.regular-price-display small {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.875rem;
}

/* Member price styling */
.member-price-display .h3,
.member-price-display .h4,
.member-price-display .h5,
.member-price-display .h6 {
    color: var(--ideavezy-secondary, #A7833B) !important;
}

/* Responsive pricing adjustments */
@media (max-width: 768px) {
    .member-price-display .h3 {
        font-size: 1.5rem;
    }
    
    .member-price-display .h4 {
        font-size: 1.25rem;
    }
    
    .member-price-display .h5 {
        font-size: 1.1rem;
    }
    
    .member-price-display .h6 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .member-price-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .member-price-display .h3 {
        font-size: 1.25rem;
    }
    
    .member-price-display .h4 {
        font-size: 1.1rem;
    }
    
    .member-price-display .h5 {
        font-size: 1rem;
    }
    
    .member-price-display .h6 {
        font-size: 0.9rem;
    }
    
    .badge.bg-success {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
} 

.ideavezy-shop-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/banner.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 35vh;
}