/*
Theme Name: Astra Child - PromoSelected
Template: astra
Description: Custom child for promotional wholesale site like sunjoy.us
Author: OpenCode Builder
Version: 1.0
*/

/* PromoSelected catalog style - clean like sunjoy.us */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.badge-quickship { background: #00BFFF; color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; display: inline-block; }
.badge-bestseller { background: #0A2540; color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; display: inline-block; }
.cta-button { background: #0A2540; color: white !important; padding: 16px 32px; border-radius: 8px; font-weight: 600; display: inline-block; text-decoration: none !important; }
.cta-button:hover { background: #00BFFF; }
.cta-button-secondary { background: #00BFFF; color: white !important; padding: 16px 32px; border-radius: 8px; font-weight: 600; display: inline-block; text-decoration: none !important; }
.site-header { background: #0A2540 !important; }
.ast-primary-header { background: #0A2540 !important; }
.site-header a { color: white !important; }
.site-header .main-header a { color: white !important; }
.ast-container { max-width: 1400px; }
.hero-section { background: linear-gradient(135deg, #0A2540 0%, #1a3a5c 100%); color: white; padding: 80px 0; text-align: center; }
.hero-section h1 { color: white; font-size: 3rem; margin-bottom: 20px; }
.section-title { color: #0A2540; font-size: 2rem; font-weight: 700; margin-bottom: 30px; text-align: center; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.category-card { background: #f8f9fa; padding: 30px; text-align: center; border-radius: 10px; transition: transform 0.3s; }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.footer-section { background: #0A2540; color: white; padding: 60px 0; }
.footer-section a { color: rgba(255,255,255,0.8); }
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

/* Custom Product Page Styles */
.promo-product-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.promo-breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.promo-breadcrumb a {
    color: #0A2540;
    text-decoration: none;
}

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

@media (max-width: 1024px) {
    .promo-product-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.promo-gallery-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.promo-gallery-actions a {
    color: #0A2540;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-quickship {
    background: #00BFFF;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-bestseller {
    background: #0A2540;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.promo-product-title {
    font-size: 28px;
    font-weight: 700;
    color: #0A2540;
    margin: 10px 0;
    line-height: 1.3;
}

.promo-product-sku {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.promo-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.promo-stars {
    color: #FFC107;
    font-size: 18px;
}

.promo-review-count {
    color: #0A2540;
    font-size: 14px;
    text-decoration: underline;
}

.promo-variation-section {
    margin-bottom: 20px;
}

.promo-variation-label {
    font-size: 14px;
    font-weight: 600;
    color: #0A2540;
    margin-bottom: 10px;
}

.promo-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.promo-variation-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.promo-variation-btn:hover,
.promo-variation-btn.selected {
    border-color: #0A2540;
    background: #0A2540;
    color: white;
}

.promo-imprint-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.promo-imprint-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 13px;
}

.promo-imprint-btn.selected {
    background: #00BFFF;
    color: white;
    border-color: #00BFFF;
}

.promo-price-section {
    margin-bottom: 20px;
}

.promo-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.promo-price-table th {
    background: #0A2540;
    color: white;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
}

.promo-price-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.promo-price-table tr:nth-child(even) td {
    background: #f8f9fa;
}

.promo-price-table .qty-col {
    font-weight: 600;
    color: #0A2540;
}

.promo-quantity-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.promo-quantity-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-quantity-input input {
    width: 80px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.promo-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #0A2540;
}

.promo-unit-price {
    font-size: 14px;
    color: #666;
}

.promo-secondary-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-secondary {
    flex: 1;
    padding: 12px;
    background: white;
    color: #0A2540;
    border: 2px solid #0A2540;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #0A2540;
    color: white;
}

.promo-meta-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

.promo-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.promo-meta-label {
    color: #666;
}

.promo-meta-value {
    font-weight: 600;
    color: #0A2540;
}

.promo-included {
    margin-bottom: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
}

.promo-included-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 14px;
}

.promo-included-item::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
}

.promo-tabs-section {
    margin-top: 40px;
}

.promo-tabs {
    border-bottom: 2px solid #0A2540;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.promo-tab-btn {
    padding: 15px 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.promo-tab-btn:hover,
.promo-tab-btn.active {
    color: #0A2540;
    border-bottom-color: #0A2540;
}

.promo-tab-content {
    padding: 30px 0;
    display: none;
}

.promo-tab-content.active {
    display: block;
}

.promo-social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
}

.promo-share-label {
    font-weight: 600;
    color: #0A2540;
}

.promo-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s;
}

.promo-share-btn:hover {
    transform: scale(1.1);
}

.promo-share-btn.facebook { background: #1877F2; }
.promo-share-btn.twitter { background: #000; }
.promo-share-btn.linkedin { background: #0A66C2; }
.promo-share-btn.whatsapp { background: #25D366; }

@media (max-width: 768px) {
    .promo-product-title {
        font-size: 22px;
    }
    
    .promo-quantity-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .promo-secondary-buttons {
        flex-direction: column;
    }
}

/* Floating Sidebar */
.promo-floating-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.sidebar-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease;
    text-decoration: none;
}

.sidebar-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.facebook-btn { background: #3b5998; }
.twitter-btn { background: #000000; }
.email-btn { background: #7f8c8d; }
.whatsapp-btn { background: #25d366; }
.share-btn { background: #7ed321; }
.linkedin-btn { background: #0077b5; }

@media (max-width: 768px) {
    .promo-floating-sidebar {
        right: 10px;
        gap: 8px;
    }
    .sidebar-btn {
        width: 40px;
        height: 40px;
    }
}

/* Quantity Discount Customization */
.amz-qty-label {
    display: none !important;
}

.amz-qty {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

#savings-msg {
    display: block !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #00a500 !important;
    margin-top: 0 !important;
    padding: 8px 0 0 0 !important;
    min-width: 250px;
    
}
