@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f4f5; /* Light gray for desktop background */
    color: #000;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Main Container (Mobile view style) */
.gumroad-page {
    max-width: 500px; /* Mobile width constraint on desktop */
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    padding-bottom: 150px; /* Increased space for taller sticky footer */
    position: relative;
    border: 1px solid #000;
}

/* Gallery */
.gallery-container {
    position: relative;
    width: 100%;
    background-color: #f3f4f6;
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.gallery-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.gallery-scroll .main-image {
    flex: 0 0 100%;
    scroll-snap-align: start;
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #e4e4e7;
    object-fit: cover;
}

.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.gallery-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: 1px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.gallery-dots .dot.active-dot {
    background-color: #000;
    border-color: #000;
}

/* Body Content */
.product-body {
    padding: 24px 20px;
}

/* Title */
.product-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    margin-top: 10px;
    letter-spacing: -0.5px;
}

.divider-main {
    height: 1px;
    background-color: #000;
    margin-top: 16px;
}

.divider {
    height: 1px;
    background-color: #000;
    margin: 32px 0;
}

.row-section {
    padding: 16px 0;
    border-bottom: 1px solid #000;
}

/* Ribbon Pricing */
.ribbon-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    height: 36px;
    align-self: flex-start;
}

.ribbon-price {
    background-color: #50317d;
    border: 1px solid #000;
    border-right: none;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px 0 12px;
    position: relative;
    z-index: 2;
    font-size: 16px;
    color: #fff;
}

.ribbon-price del {
    color: #e5e7eb;
    margin-right: 6px;
}

.ribbon-arrow {
    width: 25.4px; /* Approx 36/sqrt(2) */
    height: 25.4px;
    background-color: #50317d;
    border-top: 1px solid #000;
    border-right: 1px solid #000;
    transform: rotate(45deg);
    position: absolute;
    right: -13px; 
    top: 5px; 
    z-index: 1;
}

/* Creator Info */
.creator-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.creator-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.creator-link {
    color: #000;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Star Ratings Header */
.star-ratings-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars-black {
    color: #000;
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.rating-count {
    font-size: 14px;
    color: #000;
}

/* Description (add padding top since border is now on rows) */
.description-content {
    padding-top: 24px;
}

/* Description */
.description-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.description-content p {
    font-size: 16px;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Skills Section & Expanded Content */
.skills-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.bullet-list, .check-list, .number-list {
    padding-left: 0;
    margin-bottom: 16px;
    list-style: none;
}

.bullet-list li {
    font-size: 15px;
    color: #000;
    position: relative;
    margin-bottom: 8px;
    padding-left: 18px;
}
.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
}

.check-list li {
    font-size: 15px;
    color: #000;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.number-list {
    counter-reset: my-counter;
}
.number-list li {
    font-size: 15px;
    color: #000;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}
.number-list li::before {
    counter-increment: my-counter;
    content: counter(my-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: #000;
}

.sub-list {
    list-style: none;
    padding-left: 26px;
    margin-top: 8px;
    margin-bottom: 8px;
}
.sub-list li {
    font-size: 14px;
    color: #000;
    margin-bottom: 6px;
}

.hidden-content {
    display: none;
}

.section-heading {
    font-size: 16px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
}

.sub-heading {
    font-size: 16px;
    font-weight: 800;
    margin-top: 24px;
    margin-bottom: 12px;
}

.desc-text {
    font-size: 15px;
    color: #000;
    margin-bottom: 12px;
}

.content-image {
    width: 100%;
    height: auto;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 16px;
    display: block;
}

.read-more {
    font-size: 18px;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 24px;
}

/* Offer CTA Text */
.offer-cta-text {
    margin-bottom: 24px;
    font-size: 16px;
    color: #000;
}

.offer-cta-text p {
    margin-bottom: 6px;
}

.offer-cta-text .mt-3 {
    margin-top: 12px;
}

/* Primary Button */
.btn-primary {
    display: block;
    width: 100%;
    background-color: #50317d; /* User requested color */
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 0;
    text-decoration: none;
    border: 1px solid #000;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 16px;
}

.btn-primary:hover {
    background-color: #3a225a;
}

.already-bought {
    font-size: 14px;
    color: #000;
    text-align: left;
    margin-bottom: 32px;
}

.already-bought a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Info Boxes */
.info-boxes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.info-box {
    border: 1px solid #e4e4e7;
    border-radius: 4px;
    padding: 16px;
    font-size: 14px;
    color: #000;
    line-height: 1.5;
}

/* Action Buttons */
.action-buttons-row {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    flex: 1;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Ratings Section */
.ratings-section {
    padding-top: 8px;
}

.ratings-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dynamic-coupon-banner {
    background-color: #d1f4e0;
    color: #047857;
    border: 1px solid #6ee7b7;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.dynamic-coupon-banner i {
    font-size: 16px;
    color: #10b981;
}

.ratings-top h3 {
    font-size: 18px;
    font-weight: 700;
}

/* Popup Modal */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popup-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 1px solid #000;
}

.overall {
    font-size: 14px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
}

.overall i {
    color: #000;
}

/* Rating Bars */
.rating-bars {
    margin-bottom: 32px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #000;
}

.star-label {
    width: 48px;
}

.bar-track {
    flex: 1;
    height: 12px;
    background-color: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: #a855f7; /* Light purple for bar fill */
}

.percent-label {
    width: 36px;
    text-align: right;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
}

.review-card {
    padding: 24px 0;
    border-bottom: 1px solid #e4e4e7;
}

.review-card:last-child {
    border-bottom: none;
}

.small-stars {
    font-size: 12px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 15px;
    color: #000;
    line-height: 1.5;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviewer-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #22c55e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.verification-icon {
    color: #000;
    font-size: 14px;
}

/* Bottom Sticky Bar */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background-color: white;
    padding: 16px;
    border-top: 1px solid #000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 50;
    box-sizing: border-box;
}

.sticky-btn {
    width: 100%;
    margin-bottom: 0;
}