/*
 * JPeptics Stylesheet
 *
 * Official stylesheet for JPeptics - Research Peptides
 * Brand colors: Primary Blue (#428ce0), Primary Magenta (#e344aa)
 * Typography: Roboto (primary), Source Sans Pro (secondary)
 */

/* ====================
 * Google Fonts Import
 * ==================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700&family=Source+Sans+Pro:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&display=swap');

/* ====================
 * CSS Custom Properties
 * ==================== */

:root {
    /* Primary Brand Colors */
    --primary-blue: #428ce0;
    --primary-blue-dark: #3574c4;
    --primary-blue-light: #5fa3e8;
    --primary-blue-pale: #e8f2fd;
    --primary-magenta: #e344aa;
    --primary-magenta-dark: #cc3d9a;

    /* Secondary Colors */
    --secondary-green: #10B981;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Typography */
    --font-primary: 'Roboto', sans-serif;

    /* Shadows */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* ====================
 * Global Reset & Base
 * ==================== */

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

body {
    font-family: var(--font-primary);
    background-color: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.6;
    zoom: .8;
}

main {
    /* Removed min-height to fix footer whitespace issue on index.php */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ====================
 * Header Styles
 * ==================== */

.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-container img {
    height: 95px;
    width: auto;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    height: 85px;
    width: auto;
    max-width: 300px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 1.3rem;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ====================
 * Button Styles
 * ==================== */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    background: var(--white)
}
.btn-rounded {
    background: var(--primary-magenta);
    padding: 12px 24px;
    border-radius: 25px;  /* High number = more rounded */
    cursor: pointer;
    color: var(--white);
    text-align: center;
    margin-top: auto;
}
.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--primary-magenta);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-magenta-dark);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-submit-order {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-magenta) 100%);
    color: var(--white);
    padding: 1rem 3rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: inline-block;
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ====================
 * Hero Section
 * ==================== */

.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-magenta) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 1250px;
    margin-left: 155px;
    margin-right: 150px;
    opacity: 0.95;
    text-align: left;
    line-height: 1.5;
}

.hero .lead-emphasis {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-top: 1.5rem;
}

.heading-2 {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-top: 2rem;
}

/* ====================
 * Section Styles
 * ==================== */

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.section-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gray-600);
}

/* ====================
 * Product Grid
 * ==================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 320px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

/*===Gallery===*/
.product-detail-flex {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.product-images {
    flex: 0 0 400px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

.product-info {
    flex: 1;
}

.main-image-container {
    width: 100%;
    max-width: 400px;
    height: 400px;
    max-height: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin: 0 auto;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image-container img,
.main-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.thumbnail-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail-gallery img:hover {
    border-color: var(--primary-blue-light);
}

.thumbnail-gallery img.active {
    border-color: var(--primary-magenta);
}
/*===End-Gallery===*/

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: none;
    max-height: none;
}

.product-content {
    padding: 2rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.product-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* ====================
 * Payment Section
 * ==================== */

.payment-info {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    margin: 2rem 0;
}

.payment-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.payment-info p {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.payment-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 60px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    transition: all 0.2s;
}

.payment-logo-container:hover {
    border-color: var(--primary-blue-light);
    background: var(--primary-blue-pale);
}

.payment-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-button {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.2s;
}

.payment-button:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

/* ====================
 * COA Section
 * ==================== */

.coa-info {
    background: var(--primary-blue-pale);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
}

.coa-section {
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-magenta) 100%);
}

.coa-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.coa-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.3rem;
}

.coa-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.coa-content p {
    color: var(--white);
}

.coa-content ul {
    list-style-position: inside;
    margin-left: 1rem;
    color: var(--white);
}

.coa-content li {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.coa-section .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.coa-section .btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.coa-image {
    display: flex;
    flex: 0 0 300px;
    max-width: 300px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.coa-image a {
    display: block;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.coa-image a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.coa-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
}

.coa-button-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* ====================
 * Payment Pages Styles
 * ==================== */

.payment-container {
    max-width: 700px;
    margin: 0 auto;
}

.payment-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.section-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.bitcoin-address {
    background: var(--gray-100);
    border: 2px solid var(--primary-blue-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    word-break: break-all;
}

.copy-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    margin-left: 1rem;
    flex-shrink: 0;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--primary-blue-dark);
}

.warning-box {
    background: #FEF3C7;
    border: 2px solid var(--warning);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
}

.warning-box::before {
    content: "⚠️";
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.order-confirmation {
    background: var(--secondary-green);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    margin: 2rem 0;
}

.confirmation-details {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.confirmation-details h4 {
    margin-bottom: 1rem;
}

.confirmation-details p {
    margin-bottom: 0.5rem;
}

.next-steps {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.next-steps h4 {
    margin-bottom: 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.step-item::before {
    content: "✓";
    color: var(--white);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* ====================
 * Order Grid Layout
 * ==================== */

.order-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
}

.order-summary-sidebar {
    position: sticky;
    top: 120px;
}

.order-product-image {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.order-product-image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

.order-summary {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-blue);
}

.order-summary.tirzepatide {
    border-left-color: var(--primary-magenta);
}

.order-summary.retatrutide {
    border-left-color: var(--primary-blue);
}

.order-summary h3 {
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.order-item:last-of-type {
    border-bottom: 2px solid var(--gray-800);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.edit-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.edit-link:hover {
    color: var(--primary-blue-dark);
}

.order-form-column {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

/* ====================
 * Form Styles
 * ==================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ====================
 * Table Styles
 * ==================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

th {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: var(--gray-50);
}

/* ====================
 * Footer Styles
 * ==================== */

.footer {
    background: var(--gray-100);
    color: var(--gray-900);
    margin-top: auto;
    flex-shrink: 0;
}
footer img {
    height: 60px;  /* Change this number */
    width: auto;
}
.footer p {
    text-align: center;
    font-size: 0.875rem;
}

.footer a {
    color: var(--primary-blue-light);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-magenta);
}

/* ====================
 * Alert/Notice Styles
 * ==================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1rem 0;
    font-weight: 500;
}

.alert-info {
    background: var(--primary-blue-pale);
    color: var(--primary-blue-dark);
    border-left: 4px solid var(--primary-blue);
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid var(--warning);
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--danger);
}

/* Confirmation Alert */
.confirmation-alert {
    background: var(--success);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-lg);
}

.confirmation-alert h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.confirmation-alert p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.order-number {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin: 1.5rem 0;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Contact Info */
.contact-info {
    background: var(--primary-blue-pale);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-top: 2rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* ====================
 * Payment Received Page
 * ==================== */

.payment-received-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.order-summary-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.next-steps-info {
    background: var(--primary-blue-pale);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.next-steps-info h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.next-steps-info p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .payment-received-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ====================
 * Responsive Design
 * ==================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.1rem;
        margin-left: 1rem;
        margin-right: 1rem;
        line-height: 1.6;
        max-width: 100%;
    }

    .hero .lead-emphasis {
        font-size: 1.3rem;
        margin-top: 1rem;
    }

    .heading-2 {
        font-size: 0.875rem;
        padding: 0 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        display: none;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 280px;
        padding: 0.75rem;
    }

    .payment-info {
        padding: 1.5rem;
    }

    .payment-logos {
        flex-direction: column;
        gap: 1rem;
    }

    .payment-logo-container {
        width: 100px;
        height: 50px;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }

    /* Order grid mobile layout */
    .order-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .order-summary-sidebar {
        position: static;
    }

    /* Product detail flex mobile layout */
    .product-detail-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .order-product-image {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ====================
 * Utility Classes
 * ==================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
