/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #111827;
    color: #1f2937;
    line-height: 1.5;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Container */
.sgk-container {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    min-height: 100vh;
    position: relative;
    padding-bottom: 75px; /* Space for fixed bottom bar */
    overflow-x: hidden;
}

/* Image Gallery Carousel */
.gallery-container {
    position: relative;
    width: 100%;
    background: #f8fafc;
    user-select: none;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    font-weight: 600;
}

.thumbs-container {
    padding: 10px 12px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

.thumbs-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.thumb-item {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.thumb-item.active {
    border-color: #ef4444;
    opacity: 1;
}

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

/* Price & Discount Section */
.sale-price-box {
    padding: 16px;
    border-bottom: 1px solid #edf2f7;
}

.price-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.final-price {
    font-size: 32px;
    font-weight: 900;
    color: #dc2626;
    letter-spacing: -0.5px;
}

.final-price small {
    font-size: 18px;
    font-weight: 600;
}

.sale-off-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.old-price-row {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 14px;
}

.old-price-value {
    text-decoration: line-through;
    font-weight: 600;
}

/* Feature Bullets */
.features-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
    line-height: 1.4;
}

/* Title & Social Proof */
.product-info-box {
    padding: 16px;
    border-bottom: 1px solid #edf2f7;
}

.sale-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.35;
}

.social-proof-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.social-proof-bar .guarantee {
    font-weight: 700;
    color: #059669;
}

.social-proof-bar .like-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #dc2626;
    font-weight: 700;
}

/* Buttons */
.btn-buy-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(180deg, #ff5722 0%, #d84315 100%);
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(216, 67, 21, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-buy-primary:active {
    transform: scale(0.98);
}

/* Promo Banner Box */
.promo-action-card {
    margin-top: 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px dashed #f97316;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.promo-action-card h3 {
    font-size: 22px;
    color: #c2410c;
    font-weight: 900;
    margin-bottom: 4px;
}

.promo-action-card p {
    font-size: 15px;
    color: #9a3412;
    font-weight: 700;
    line-height: 1.35;
}

/* Details & Description Section */
.details-section {
    padding: 20px 16px;
    border-bottom: 1px solid #edf2f7;
}

.section-headline {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin: 16px 0 12px;
    line-height: 1.35;
}

.details-paragraph {
    font-size: 14.5px;
    color: #475569;
    margin-bottom: 14px;
    text-align: justify;
    line-height: 1.55;
}

.content-img {
    width: 100%;
    border-radius: 10px;
    margin: 12px 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

.usage-steps-list {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
    margin: 14px 0;
    list-style: none;
}

.usage-steps-list li {
    font-size: 14.5px;
    color: #334155;
    margin-bottom: 10px;
    position: relative;
    padding-left: 22px;
    line-height: 1.45;
}

.usage-steps-list li:last-child {
    margin-bottom: 0;
}

.usage-steps-list li::before {
    content: "➔";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Reviews Section */
.reviews-section {
    padding: 20px 16px;
    background: #fafafa;
    border-bottom: 1px solid #edf2f7;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.reviews-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
}

.rating-score {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-score .score-num {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 14px;
}

.review-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.review-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-weight: 700;
    font-size: 14.5px;
    color: #1e293b;
}

.review-text {
    font-size: 14px;
    color: #475569;
    font-style: italic;
    line-height: 1.45;
    margin-bottom: 8px;
}

.review-footer {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* Guarantee & Delivery Features */
.features-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    border-bottom: 1px solid #edf2f7;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
    border-radius: 8px;
}

.feature-card img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature-card-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.feature-card-text p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.35;
}

/* 4-Step Order Workflow */
.workflow-section {
    padding: 20px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.workflow-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.workflow-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
}

.workflow-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.workflow-card p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

/* Order Form Section (In-Page) */
.order-form-section {
    padding: 20px 16px;
    background: #ffffff;
    scroll-margin-top: 10px;
}

.form-title-badge {
    background: #dc2626;
    color: #ffffff;
    text-align: center;
    font-weight: 800;
    font-size: 17px;
    padding: 12px;
    border-radius: 8px 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-form-card {
    border: 2px solid #dc2626;
    border-radius: 0 0 10px 10px;
    padding: 16px;
    background: #ffffff;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.form-input, .form-select {
    width: 100%;
    padding: 13px 14px;
    font-size: 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-select {
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
}

/* Fixed Bottom Floating Bar */
.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

/* Modal Popup Windows */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close-x {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 24px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s ease;
}

.modal-close-x:hover {
    color: #0f172a;
}

.modal-title {
    font-size: 20px;
    font-weight: 900;
    color: #dc2626;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.modal-subtitle {
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 14px;
}

.modal-order-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    margin-bottom: 16px;
    font-size: 13.5px;
    border: 1px solid #e2e8f0;
}

.modal-order-summary div {
    margin-bottom: 4px;
}

.modal-order-summary div:last-child {
    margin-bottom: 0;
}

.btn-modal-close {
    width: 100%;
    background: #1e293b;
    color: #ffffff;
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}
