@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Montserrat:wght@300;400;600;700&display=swap');

/* RESET & COLOR VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a2f4a;
    --teal: #4db8d8;
    --cream: #2a2520;
    --gold: #d4af37;
    --burgundy: #8b2f47;
    --soft-white: #e8e4dc;
}

/* GLOBAL */
body {
    font-family: 'Montserrat', sans-serif;
    background: #1a1612;
    color: var(--soft-white);
    overflow-x: hidden;
    cursor: url('cursor.png'), auto;
    cursor: url('cursor.cur'), auto;
}

/* BACKGROUND PATTERN */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, var(--teal) 10px, var(--teal) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, var(--gold) 10px, var(--gold) 11px);
}

/* PAGE TRANSITION */
.page {
    min-height: 100vh;
    display: none;
    position: relative;
    z-index: 1;
}
.page.active {
    display: block;
    animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NAVIGATION — FIXED FOR STYLE 1 */
.nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--soft-white);
    background: transparent;
    transition: all 0.3s;
    cursor: pointer;
    opacity: 0.6;
    position: relative; /* ensures labels align per-dot */
}

.nav-dot.active,
.nav-dot:hover {
    background: var(--teal);
    border-color: var(--teal);
    box-shadow: 0 0 15px rgba(77, 184, 216, 0.5);
    opacity: 1;
}

.nav-dot::after {
    content: attr(data-page);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--soft-white);
    opacity: 0;
    transform-origin: left center;
    transition: all 0.3s;
    pointer-events: none;
}

.nav-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* HERO SECTION */
.hero-home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-display {
    width: min(80vw, 800px);
    height: min(80vw, 800px);
    position: relative;
    margin-bottom: 2rem;
    animation: gentleFloat 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-display img {
    width: 55%;
    height: auto;
    max-width: 420px;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
    z-index: 1;
}
.logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring-anim {
    width: 100%;
    height: 100%;
    border: 2px solid var(--teal);
    border-radius: 50%;
    opacity: 0.3;
    animation: gentlePulse 4s ease-in-out infinite;
}

.ring-1 { width: min(75vw, 420px); height: min(75vw, 420px); }
.ring-2 { width: min(80vw, 450px); height: min(80vw, 450px); }
.ring-3 { width: min(85vw, 480px); height: min(85vw, 480px); }

.ring-2 .ring-anim { animation-delay: 1.3s; border-color: var(--gold); }
.ring-3 .ring-anim { animation-delay: 2.6s; }

@keyframes gentleFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes gentlePulse {
    0%, 100% {
                transform: scale(1);
                opacity: 0.3;
            }
            50% {
                transform: scale(1.1);
                opacity: 0.5;
            }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--soft-white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    position: relative;
}
.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--soft-white);
    margin-bottom: 3rem;
    margin-top: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* BUTTONS */
.cyber-button {
    font-family: 'Montserrat', sans-serif;
    padding: 1rem 2.5rem;
    background: var(--teal);
    border: 2px solid var(--teal);
    color: #1a1612;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}
.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--soft-white);
    transition: left 0.4s;
    z-index: -1;
}
.cyber-button:hover::before { left: 0; }
.cyber-button:hover {
    border-color: var(--soft-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 184, 216, 0.3);
}
.cyber-button.secondary {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.cyber-button.secondary::before { background: var(--gold); }
.cyber-button.secondary:hover {
    color: #1a1612;
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* SECTION HEADERS */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--soft-white);
    letter-spacing: 2px;
    position: relative;
}
.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
}

/* SERVICES GRID */
.services-container {
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}
.service-card {
    background: rgba(42, 37, 32, 0.6);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(77, 184, 216, 0.1);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    background: rgba(42, 37, 32, 0.8);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--teal);
}
.service-card p {
    line-height: 1.8;
    color: var(--soft-white);
    opacity: 0.85;
}

/* GALLERY */
.gallery-container {
    padding: 8rem 4rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.gallery-item {
    position: relative;
    height: 300px;
    background: rgba(42, 37, 32, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(77, 184, 216, 0.1);
}
.gallery-item:nth-child(3n) { height: 400px; }
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(77,184,216,0.2), rgba(212,175,55,0.2));
    opacity: 0;
    transition: opacity 0.4s;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}
.gallery-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    text-align: center;
    z-index: 1;
    color: var(--soft-white);
    font-weight: 600;
}

/* ABOUT */
.about-container {
    padding: 8rem 4rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}
.about-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: rgba(42, 37, 32, 0.6);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--teal);
    transition: all 0.3s;
    border: 1px solid rgba(77, 184, 216, 0.1);
}
.about-section:nth-child(even) { border-left-color: var(--gold); }
.about-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(5px);
    background: rgba(42, 37, 32, 0.8);
}
.about-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--teal);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.about-section:nth-child(even) h3 { color: var(--gold); }
.about-section p {
    line-height: 1.9;
    color: var(--soft-white);
    opacity: 0.85;
    font-size: 1.05rem;
}

/* CONTACT FORM */
.contact-container {
    padding: 8rem 4rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}
.contact-form {
    background: rgba(42, 37, 32, 0.6);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-top: 4px solid var(--teal);
    border: 1px solid rgba(77, 184, 216, 0.1);
}
.form-group { margin-bottom: 2rem; }
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 22, 18, 0.8);
    border: 2px solid rgba(77, 184, 216, 0.2);
    color: var(--soft-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    border-radius: 4px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal);
    background: rgba(26, 22, 18, 1);
    box-shadow: 0 0 0 3px rgba(77, 184, 216, 0.1);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--teal);
    border: 2px solid var(--teal);
    color: #1a1612;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.4s;
}
.submit-btn:hover::before { left: 0; }
.submit-btn:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(26, 22, 18, 0.9);
    color: var(--soft-white);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 4rem;
    border-top: 1px solid rgba(77, 184, 216, 0.2);
}
.footer p { margin: 0.5rem 0; opacity: 0.8; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .logo-display { width: 300px; height: 300px; }
    .page-title { font-size: 2rem; }
    .services-container,
    .gallery-container,
    .about-container,
    .contact-container { padding: 6rem 2rem 2rem; }
    .cyber-button { width: 100%; }
    .nav { gap: 1rem; }
    .nav-dot::after { display: none; }
}


/* PRODUCT DESIGNER */
.designer-container {
    padding: 8rem 2rem 6rem;
    max-width: 1800px;
    margin: 0 auto;
    margin-bottom: 4rem;
}

.designer-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 2rem;
    margin-top: 3rem;
}

.designer-left,
.designer-right {
    background: rgba(42, 37, 32, 0.6);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(77, 184, 216, 0.2);
    height: fit-content;
}

.designer-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--teal);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.designer-center {
    background: rgba(42, 37, 32, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(77, 184, 216, 0.2);
    padding: 2rem;
    padding-bottom: 3rem;
    min-height: auto;
    flex-direction: column;
    margin-bottom: 2rem;
}

.designer-center .form-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.designer-center .form-group label {
    flex-shrink: 0;
    min-width: 150px;
    padding-top: 1rem; /* Aligns with textarea padding */
    margin-bottom: 0; /* Remove bottom margin since we're side-by-side */
}

.designer-center .form-group #designNotes {
    flex-grow: 0;
}

.canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

#productCanvas {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(26, 22, 18, 0.4);
    border: 2px dashed rgba(77, 184, 216, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.canvas-placeholder {
    text-align: center;
    color: var(--soft-white);
    opacity: 0.6;
    font-size: 1.2rem;
}

#productImage {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.uploaded-design {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: move;
    user-select: none;
}

.uploaded-design img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.resize-handle {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--teal);
    border: 2px solid var(--soft-white);
    border-radius: 50%;
    cursor: nwse-resize;
    box-shadow: 0 0 10px rgba(77, 184, 216, 0.5);
}

.price-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(26, 22, 18, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(77, 184, 216, 0.2);
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(77, 184, 216, 0.1);
    color: var(--soft-white);
}

.price-line:last-child {
    border-bottom: none;
}

.price-line.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--gold);
    font-size: 1.3rem;
    color: var(--gold);
}

input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    background: rgba(26, 22, 18, 0.6);
    border: 1px solid rgba(77, 184, 216, 0.2);
    color: var(--soft-white);
    border-radius: 4px;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: var(--teal);
    color: #1a1612;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    font-weight: 600;
}

small {
    display: block;
    margin-top: 0.5rem;
    color: var(--soft-white);
    opacity: 0.6;
    font-size: 0.85rem;
}

#designNotes {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 22, 18, 0.6);
    border: 2px solid rgba(77, 184, 216, 0.2);
    color: var(--soft-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    border-radius: 4px;
    resize: vertical;
    min-height: 120px;
    margin-top: 2rem;
}

#designNotes:focus {
    outline: none;
    border-color: var(--teal);
    background: rgba(26, 22, 18, 0.8);
    box-shadow: 0 0 15px rgba(77, 184, 216, 0.2);
}

#designNotes::placeholder {
    color: rgba(232, 228, 220, 0.4);
}

@media (max-width: 1200px) {
    .designer-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .designer-left,
    .designer-right {
        width: 100%;
    }
}

/* SHOP STYLING */
.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(42, 37, 32, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(77, 184, 216, 0.2);
}

.cart-summary span {
    font-family: 'Playfair Display', serif;
    color: var(--teal);
    font-size: 1.2rem;
    font-weight: 600;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: rgba(42, 37, 32, 0.6);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(77, 184, 216, 0.1);
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    background: rgba(42, 37, 32, 0.8);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
    filter: grayscale(20%);
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--teal);
}

.product-card p {
    line-height: 1.8;
    color: var(--soft-white);
    opacity: 0.85;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* CART MODAL */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 22, 18, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.cart-content {
    background: rgba(42, 37, 32, 0.95);
    padding: 3rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--teal);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.cart-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--teal);
    margin-bottom: 2rem;
    font-size: 2rem;
    letter-spacing: 2px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(26, 22, 18, 0.6);
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--teal);
}

.cart-item span:first-child {
    flex-grow: 1;
    color: var(--soft-white);
}

.cart-item span:nth-child(2) {
    color: var(--gold);
    font-weight: 700;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.remove-btn {
    background: transparent;
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: var(--burgundy);
    color: var(--soft-white);
    transform: rotate(90deg);
}

.cart-total {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(26, 22, 18, 0.6);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--gold);
}

.cart-total strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold);
}

.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cart-actions .cyber-button {
    flex: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .logo-display { width: 300px; height: 300px; }
    .ring-1 { width: 320px; height: 320px; }
    .ring-2 { width: 350px; height: 350px; }
    .ring-3 { width: 380px; height: 380px; }
    .page-title { font-size: 2rem; }
    .services-container,
    .gallery-container,
    .about-container,
    .contact-container { padding: 6rem 2rem 2rem; }
    .cyber-button { width: 100%; }
    .nav { gap: 1rem; }
    .nav-dot::after { display: none; }
    
    .cart-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-content {
        padding: 2rem 1.5rem;
    }
}

.rotate-handle {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--gold); /* or appropriate color for each theme */
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    user-select: none;
    transition: all 0.3s;
}

.rotate-handle:hover {
    transform: scale(1.2) rotate(90deg);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

@media (max-width: 1024px) {
    .designer-container {
        padding: 6rem 1.5rem 4rem;
    }

    .designer-layout {
        grid-template-columns: 1fr;  /* single column */
    }

    .designer-left,
    .designer-center,
    .designer-right {
        width: 100%;
    }

    /* Put the preview in the middle on stacked layout */
    .designer-center { order: 1; }
    .designer-left   { order: 2; }
    .designer-right  { order: 3; }

    #productCanvas {
        height: 360px;
    }
}

/* Phones */
@media (max-width: 768px) {
    .designer-container {
        padding: 5rem 1.25rem 3rem;
    }

    .designer-layout {
        gap: 1.5rem;
    }

    .canvas-container {
        margin-bottom: 1.5rem;
    }

    #productCanvas {
        height: 320px;
    }

    /* Make the notes / form layout simpler on small screens */
    .designer-center .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .designer-center .form-group label {
        min-width: 0;
        padding-top: 0;
        margin-bottom: 0.5rem;
    }

    @media (max-width: 768px) {
    .ring-1 {
        width: 60vw;
        height: 60vw;
    }

    .ring-2 {
        width: 65vw;
        height: 65vw;
    }

    .ring-3 {
        width: 70vw;
        height: 70vw;
    }
}
}

