:root {
    --gold: #d4af37;
    --black: #fff;
    --white: #000;
    --gray-light: #111;
    --gray-border: #333;
    --gray-text: #aaa;
    --accent: #ff5722;
    --primary: #eee;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--gray-border);
}
.logo {
    text-align: center;
}
.logo a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 2px;
}
.help-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-light);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid var(--gray-border);
}
.help-box strong { display: block; }
.help-box a { color: var(--accent); text-decoration: none; font-weight: 500; }

.footer-help {
    display: flex;
    justify-content: center;
    padding: 40px 20px 80px;
}
.help-box.large {
    padding: 15px 25px;
    font-size: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.profile-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid var(--gray-border);
    max-width: 1000px;
    margin: 0 auto;
}
.progress-bar .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
}
.progress-bar .step.active {
    color: var(--accent);
}
.progress-bar .step.completed {
    color: var(--black);
}
.progress-bar .circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-light);
    border: 2px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: 0.3s;
}
.progress-bar .step.active .circle {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.progress-bar .step.completed .circle {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.progress-bar .line {
    flex-grow: 1;
    height: 2px;
    background: var(--gray-border);
    margin: 0 15px;
    margin-bottom: 20px;
}

/* Layout */
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}
.content {
    flex: 1;
}
.sidebar {
    width: 350px;
    position: sticky;
    top: 40px;
    align-self: start;
}

/* Sections */
.section {
    margin-bottom: 50px;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.section.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.section h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-num {
    background: var(--black);
    color: var(--white);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}
.subtitle {
    color: var(--gray-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}
.card {
    border: 2px solid var(--gray-border);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}
.card:hover {
    border-color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.card.selected {
    border-color: var(--accent);
    background: #111;
}
.card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}
.card p {
    font-size: 0.85rem;
    color: var(--gray-text);
}
.card-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Image Cards (Theme) */
.image-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.image-card {
    height: 140px;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.2s ease;
}
.image-card:hover {
    transform: translateY(-3px);
}
.image-card.selected {
    border-color: var(--accent);
}
.image-card h3 {
    z-index: 2;
    margin: 0;
}
.image-card .card-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--white);
    color: var(--black);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.image-card .arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Forms */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
}
.input-group label::after {
    content: " *";
    color: var(--accent);
}
.input-with-unit {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 0 15px;
    background: var(--white);
}
.input-with-unit input {
    border: none;
    padding: 12px 0;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
    color: var(--black);
}
.input-with-unit span {
    color: var(--gray-text);
}
.qty-control {
    display: flex;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}
.qty-control button {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--black);
    transition: background 0.2s;
}
.qty-control button:hover {
    background: var(--gray-light);
}
.qty-control input {
    border: none;
    width: 50px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    border-left: 1px solid var(--gray-border);
    border-right: 1px solid var(--gray-border);
    background: transparent;
    color: var(--black);
}
.btn-next {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.2s;
}
.btn-next:hover {
    background: var(--accent);
}

/* Paper Grid */
.paper-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-border);
}
.paper-card .tag {
    font-size: 0.7rem;
    background: var(--gray-light);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}
.paper-card .price-add {
    margin-top: 10px;
    font-weight: 600;
    color: var(--black);
}

/* Framing section */
.sub-heading {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-text);
    margin: 25px 0 15px;
}
.frame-card .frame-preview {
    width: 100%;
    height: 80px;
    border: 4px solid #ccc;
    background: #1a1a1a;
    margin-bottom: 10px;
    position: relative;
}
.frame-card .frame-preview::after {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid #444;
}
.color-options {
    display: flex;
    gap: 20px;
}
.color-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}
.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

/* Sidebar */
.summary-box {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--gray-border);
}
.summary-header {
    margin-bottom: 20px;
}
.summary-header h3 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}
.summary-header span {
    font-size: 0.8rem;
    color: var(--gray-text);
}
.summary-preview {
    background: var(--white);
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px dashed #444;
}
.summary-preview span {
    font-size: 0.85rem;
    color: var(--gray-text);
    text-align: center;
    padding: 0 15px;
}
.summary-list {
    list-style: none;
    margin-bottom: 20px;
}
.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-border);
    font-size: 0.9rem;
}
.summary-list li span {
    color: var(--gray-text);
}
.summary-list li strong {
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}
.qty-li {
    border-bottom: none !important;
}
.summary-total {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #666;
}
.price-row.total {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}
.btn-checkout {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: var(--gold);
    color: var(--black);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-checkout:disabled {
    background: var(--gray-border);
    color: #999;
    cursor: not-allowed;
}
.btn-checkout:not(:disabled):hover {
    background: #c3a032;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: static;
    }
    .progress-bar {
        overflow-x: auto;
        padding: 20px;
        justify-content: flex-start;
    }
    .progress-bar .line {
        min-width: 30px;
    }
}
