.cpp-shop-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.cpp-shop-hero {
    position: relative;
    background: linear-gradient(135deg, #0D2E2E 0%, #1B5E5E 40%, #2A7A6E 100%);
    padding: 80px 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Background image - positioned right, fades to green on the left */
.cpp-shop-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 25%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 25%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,1) 100%);
}

/* Dark overlay on the image for text readability */
.cpp-shop-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,46,46,0.7) 0%, rgba(27,94,94,0.4) 50%, rgba(42,122,110,0.3) 100%);
}

.cpp-shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(255,149,0,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.cpp-shop-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    z-index: 1;
}

.cpp-shop-hero-grid {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.cpp-shop-hero-content {
    color: #fff;
    max-width: 560px;
}

.cpp-shop-hero h1 {
    font-family: 'Geologica', 'Geologica Fallback', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.08;
    letter-spacing: -2px;
    text-align: left;
}

.cpp-shop-title-main {
    display: block;
}

.cpp-shop-title-accent {
    display: block;
    color: #f97316;
    font-style: normal;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.cpp-shop-hero p {
    font-family: 'DM Sans', 'DM Sans Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
    font-weight: 300;
    text-align: left;
}

.cpp-shop-trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.cpp-shop-trust-item {
    font-family: 'DM Sans', 'DM Sans Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.cpp-shop-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d3b2e;
    color: #fff !important;
    padding: 16px 36px;
    border-radius: 10px;
    font-family: 'Geologica', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(13,59,46,0.3);
    margin-bottom: 36px;
}

.cpp-shop-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13,59,46,0.4);
}

.cpp-shop-media {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cpp-media-label {
    display: block;
    font-family: 'DM Sans', 'DM Sans Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
    font-weight: 600;
    text-align: left;
}

.cpp-media-logos {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.cpp-media-logos span {
    font-family: 'DM Sans', 'DM Sans Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.cpp-media-logos span:hover {
    color: rgba(255,255,255,0.6);
}

/* Shop Tabs */
.cpp-shop-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.cpp-shop-tab {
    background: none;
    border: none;
    padding: 16px 32px;
    font-family: 'Geologica', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.cpp-shop-tab:hover {
    color: #667eea;
}

.cpp-shop-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Cart button in header */
/* Product buttons layout */
.cpp-product-buttons {
    display: flex !important;
    gap: 12px;
    margin-top: 16px;
    width: 100% !important;
}

.cpp-product-buttons > * {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
}

/* Cart Tab View */
.cpp-cart-tab-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cpp-cart-tab-view h2 {
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.cpp-cart-tab-items {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.cpp-cart-tab-items .cpp-cart-item {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.cpp-cart-tab-items .cpp-cart-item:last-child {
    border-bottom: none;
}

.cpp-cart-tab-footer {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cpp-cart-tab-footer .cpp-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.cpp-cart-tab-footer .cpp-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

.cpp-btn-buy-now {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box !important;
    padding: 16px 32px !important;
}

.cpp-btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    background: white !important;
    color: #1f2937 !important;  /* Dark text */
    border: 2px solid #d1d5db !important;  /* Light gray border */
    font-weight: 600 !important;
    text-align: center;
    box-sizing: border-box !important;
    padding: 16px 32px !important;
}

.cpp-add-to-cart {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 32px !important;
}

.cpp-btn-secondary:hover {
    background: #f9fafb !important;
    color: #667eea !important;  /* Purple on hover */
    border-color: #667eea !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.cpp-no-products {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
}

.cpp-empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.cpp-empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.cpp-empty-state h3 {
    font-size: 24px;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.cpp-empty-state p {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 12px 0;
}

.cpp-admin-note {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    font-size: 14px;
    color: #92400e;
}

.cpp-admin-note strong {
    color: #78350f;
}


.cpp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.cpp-product-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.cpp-product-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    transform: translateY(-4px);
}

/* Digital Product Thumbnail */
.cpp-digital-product-thumbnail {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cpp-product-thumbnail-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cpp-product-icon {
    font-size: 64px;
}

.cpp-product-type-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cpp-product-header {
    margin-bottom: 20px;
}

.cpp-product-header h2 {
    font-size: 26px;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cpp-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cpp-price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
}

.cpp-price-currency {
    font-size: 20px;
    color: #9ca3af;
    font-weight: 600;
}

.cpp-product-description {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.cpp-product-features {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.cpp-product-features h4 {
    font-size: 14px;
    color: #374151;
    margin-bottom: 12px;
    font-weight: 600;
}

.cpp-product-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cpp-product-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #6b7280;
    font-size: 14px;
}

.cpp-product-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

.cpp-product-meta {
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 2px solid #f3f4f6;
    color: #9ca3af;
    font-size: 14px;
}

.cpp-product-card .cpp-btn {
    margin-top: auto;
}

/* Product Actions (Preview + Add to Cart) */
.cpp-product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.cpp-btn-preview {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cpp-btn-preview:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   CURRICULUM PREVIEW MODAL
   ============================================ */
.cpp-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cpp-preview-modal.active {
    opacity: 1;
    pointer-events: all;
}

.cpp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.cpp-modal-content {
    position: relative;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    padding: 32px;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cpp-preview-modal.active .cpp-modal-content {
    transform: scale(1);
}

.cpp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.cpp-modal-close:hover {
    color: #1f2937;
}

.cpp-modal-content h2 {
    font-size: 28px;
    color: #1f2937;
    margin: 0 0 24px 0;
    padding-right: 40px;
}

.cpp-curriculum-preview {
    margin-bottom: 24px;
}

.cpp-curriculum-preview h3 {
    font-size: 18px;
    color: #374151;
    margin-bottom: 16px;
}

.cpp-curriculum-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cpp-curriculum-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.cpp-curriculum-item.unlocked {
    background: #f0fdf4;
    border-color: #86efac;
}

.cpp-curriculum-item.locked {
    background: #f9fafb;
}

.cpp-curriculum-item:hover {
    border-color: #667eea;
}

.cpp-chapter-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.cpp-chapter-info {
    flex: 1;
}

.cpp-chapter-info h4 {
    font-size: 16px;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.cpp-chapter-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.cpp-chapter-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #9ca3af;
}

.cpp-preview-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.cpp-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.cpp-btn-secondary:hover {
    background: #e5e7eb;
}

/* ============================================
   SHOPPING CART SIDEBAR
   ============================================ */
.cpp-cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    z-index: 999998;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cpp-cart-sidebar.active {
    right: 0;
}

.cpp-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.cpp-cart-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
}

.cpp-cart-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 0 16px;
    flex-shrink: 0;
}

.cpp-cart-close:hover {
    color: #1f2937;
}

.cpp-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cpp-cart-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
}

.cpp-item-info {
    flex: 1;
    min-width: 0;
}

.cpp-item-info h4 {
    font-size: 15px;
    color: #1f2937;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cpp-item-type {
    font-size: 12px;
    color: #6b7280;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 4px;
}

.cpp-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    flex-shrink: 0;
}

.cpp-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
}

.cpp-item-remove:hover {
    color: #ef4444;
}

.cpp-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.cpp-cart-empty p:first-child {
    font-size: 48px;
    margin-bottom: 16px;
}

.cpp-cart-footer {
    padding: 24px;
    border-top: 2px solid #e5e7eb;
}

.cpp-cart-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    margin: 8px 0;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
}

.cpp-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.cpp-cart-total span:last-child {
    color: #667eea;
}

.cpp-btn-checkout {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* ============================================
   FLOATING CART ICON
   ============================================ */
.cpp-cart-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999997;
}

.cpp-cart-toggle {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    position: relative;
}

.cpp-cart-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.cpp-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   MOBILE STICKY BUY BAR
   ============================================ */
.cpp-sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    z-index: 999996;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cpp-sticky-product-info {
    flex: 1;
    min-width: 0;
}

.cpp-sticky-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cpp-sticky-price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.cpp-sticky-add-cart {
    flex-shrink: 0;
    padding: 12px 20px;
    font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cpp-cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cpp-modal-content {
        width: 95%;
        padding: 24px;
        max-height: 90vh;
    }
    
    .cpp-modal-content h2 {
        font-size: 22px;
    }
    
    .cpp-preview-actions {
        flex-direction: column;
    }
    
    .cpp-cart-float {
        bottom: 80px; /* Above sticky buy bar */
    }
    
    .cpp-products-grid {
        grid-template-columns: 1fr;
    }
    
    .cpp-shop-hero {
        padding: 56px 0;
    }
    
    .cpp-shop-hero-grid {
        padding: 0 24px;
    }
    
    .cpp-shop-hero h1 {
        font-size: 36px;
    }
    
    .cpp-shop-title-accent {
        font-size: 24px;
    }
    
    .cpp-shop-hero p {
        font-size: 16px;
    }
    
    .cpp-shop-hero-bg {
        width: 100%;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.6) 100%);
        mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.6) 100%);
    }
    
    .cpp-media-logos {
        gap: 20px;
    }
    
    .cpp-media-logos span {
        font-size: 13px;
    }
    
    .cpp-shop-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .cpp-shop-tab {
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid var(--cpp-border, #e5e7eb);
        margin-bottom: 0;
    }
    
    .cpp-shop-tab.active {
        background: var(--cpp-bg-light, #f9fafb);
        border-bottom-color: var(--cpp-border, #e5e7eb);
    }
    
    .cpp-product-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .cpp-btn-buy-now,
    .cpp-btn-secondary {
        width: 100%;
    }
}
