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

body {
    font-family: 'Inter', sans-serif;
    background-color: #e5e5e7;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    overflow: hidden;
}

/* Main card */
.card {
    width: 100%;
    max-width: 1350px;
    aspect-ratio: 18/10;
    background-color: #ecedf0;
    border-radius: 8px;
    box-shadow: 
        0 30px 90px rgba(0,0,0,0.12),
        0 0 0 1px rgba(0,0,0,0.01);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    user-select: none;
    transition: background-color 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ambient light glows for premium cross-fade */
.card-glows {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.card-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glow.active {
    opacity: 1;
}

/* Card navbar */
.card-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 50px 10px;
    position: relative;
    z-index: 10;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    font-family: 'Pacifico', cursive;
    font-size: 25px;
    color: var(--accent-color, #222222);
    letter-spacing: -0.5px;
    text-transform: lowercase;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    margin-top: -4px;
}

.nav-logo:hover {
    transform: scale(1.1) rotate(-4deg);
    opacity: 0.85;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 20px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #1a1a1a;
    transition: width 0.3s;
}

.hamburger:hover span:nth-child(2) {
    width: 12px;
}

.cart-text {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-text:hover {
    color: #1a1a1a;
}

.cart-count {
    color: #1a1a1a;
    margin-left: 2px;
}

/* Main content area */
.card-content {
    flex: 1;
    display: flex;
    position: relative;
    padding: 0 50px;
    align-items: center;
}

/* Left section - Ruler Size selector */
.left-section {
    flex: 0.18;
    display: flex;
    justify-content: flex-start;
    z-index: 10;
}

.ruler {
    display: flex;
    flex-direction: column;
    height: 170px;
    justify-content: space-between;
    width: 60px;
}

.ruler-row {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 12px;
}

.tick {
    height: 1px;
    background: #cccccc;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.tick.short {
    width: 6px;
    opacity: 0.6;
}

.tick.long {
    width: 12px;
}

.size-label {
    font-size: 9px;
    font-weight: 600;
    color: #bbbbbb;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
    line-height: 1;
    letter-spacing: 0.5px;
}

.size-label:hover {
    color: #666666;
}

/* Active size state */
.ruler-row.active .tick.long {
    width: 18px;
    background: #1a1a1a;
    height: 1.5px;
}

.ruler-row.active .size-label {
    color: #1a1a1a;
    font-weight: 800;
    transform: scale(1.1);
}

/* Center - Big text + keyboard image */
.center-section {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 25px;
    position: relative;
}

/* Background large letters grid */
.big-text-single {
    position: absolute;
    font-family: 'Oswald', sans-serif;
    font-size: 220px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.18);
    letter-spacing: -10px;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    top: 18%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    text-transform: uppercase;
}

/* Keyboard container and slides */
.keyboard-container {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.keyboard-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale3d(0.95, 0.95, 1);
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: transform, opacity;
}

.keyboard-slide.active {
    opacity: 1;
    transform: scale3d(1, 1, 1);
    pointer-events: auto;
}

/* Smooth Crossfade Breath Transitions */
.keyboard-slide.exit-left,
.keyboard-slide.exit-right {
    opacity: 0;
    transform: scale3d(1.04, 1.04, 1);
}

.keyboard-slide.enter-right,
.keyboard-slide.enter-left {
    opacity: 0;
    transform: scale3d(0.95, 0.95, 1);
}

.keyboard-img {
    width: 100%;
    max-width: 660px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.06));
    position: relative;
    z-index: 3;
    transform: translateY(-8px);
}

/* Realistic keyboard shadow beneath each slide */
.shadow-ellipse {
    position: absolute;
    bottom: 15%;
    height: 12px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    filter: blur(8px);
    z-index: 2;
    pointer-events: none;
}

/* Right section - Color dots */
.right-section {
    flex: 0.18;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}

.side-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

/* Active dot styling with outer circle ring */
.side-dot.active {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px currentColor;
}

.side-dot:hover {
    transform: scale(1.3);
}

/* Color definitions */
.side-dot.black { background: #222222; color: #222222; }
.side-dot.orange { background: #df693a; color: #df693a; }
.side-dot.yellow { background: #dbca9e; color: #dbca9e; }
.side-dot.purple { background: #9d8199; color: #9d8199; }

/* Bottom bar */
.bottom-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 50px 35px;
    position: relative;
    z-index: 10;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 35px;
}

.product-name {
    font-size: 10px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.price-buy {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s;
}

.price-buy:hover {
    color: #666;
}

.buy-btn-text {
    color: #bbbbbb;
    transition: color 0.3s;
}

.price-buy:hover .buy-btn-text {
    color: #1a1a1a;
}

.bottom-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.plus-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.2s;
}

.plus-btn:hover {
    background-color: rgba(0,0,0,0.05);
    transform: scale(1.08);
}

.plus-btn svg {
    width: 14px;
    height: 14px;
    stroke: #1a1a1a;
    stroke-width: 2.2;
}

.arrows {
    display: flex;
    gap: 16px;
}

.arrow-nav {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.2s;
}

.arrow-nav:hover {
    background-color: rgba(0,0,0,0.05);
    transform: scale(1.08);
}

.arrow-nav svg {
    width: 18px;
    height: 18px;
    stroke: #1a1a1a;
    stroke-width: 1.8;
    fill: none;
}

/* Responsive Layout */
@media (max-width: 900px) {
    body {
        padding: 20px 10px;
        overflow: auto;
    }
    .card {
        aspect-ratio: auto;
        min-height: 700px;
    }
    .card-nav {
        padding: 25px 30px 10px;
    }
    .card-content {
        padding: 20px 30px;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
    }
    .left-section {
        display: none;
    }
    .center-section {
        width: 100%;
        min-height: 300px;
        padding-top: 60px;
        padding-bottom: 0;
        justify-content: flex-start;
    }
    .big-text-single {
        font-size: 160px;
        letter-spacing: -6px;
    }
    .keyboard-container {
        height: 260px;
    }
    .keyboard-img {
        width: 90%;
    }
    .right-section {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 20px;
        margin-top: 10px;
    }
    .bottom-bar {
        flex-direction: column;
        gap: 25px;
        padding: 10px 30px 30px;
        align-items: center;
    }
    .product-info {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .big-text-single {
        font-size: 110px;
        letter-spacing: -4px;
    }
    .keyboard-container {
        height: 200px;
    }
    .keyboard-img {
        width: 100%;
    }
}
/* Features Clean Row of Tags */
.features-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
    z-index: 10;
    position: relative;
    width: 100%;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: default;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.feature-tag::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color, #222222);
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

.feature-tag:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent-color, #222222);
    color: var(--accent-color, #222222);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Add to Bag Button */
.add-to-bag-btn {
    background-color: rgba(255, 255, 255, 0.45);
    color: var(--accent-color, #222222);
    border: 1.5px solid var(--accent-color, #222222);
    padding: 14px 50px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-radius: 40px;
    margin-top: 40px;
    cursor: pointer;
    z-index: 10;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.add-to-bag-btn .bag-icon {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2.5px;
    fill: none;
    transition: transform 0.3s;
}

.add-to-bag-btn:hover {
    transform: translateY(-2px);
    background-color: var(--accent-color, #222222);
    color: #ffffff;
    box-shadow: 0 12px 30px var(--accent-shadow, rgba(34, 34, 34, 0.25));
    border-color: var(--accent-color, #222222);
}

.add-to-bag-btn:hover .bag-icon {
    transform: scale(1.1);
}

.add-to-bag-btn:active {
    transform: translateY(0);
}

/* Vertical background text on left side */
.left-section {
    width: 160px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color 0.3s;
}

.vertical-bg-text {
    font-family: 'Oswald', sans-serif;
    color: currentColor;
    opacity: 0.65;
    text-transform: uppercase;
    user-select: none;
    pointer-events: none;
    transform: rotate(-90deg) scaleX(1.3);
    transform-origin: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: color 0.3s, opacity 0.3s;
}

.v-line-1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 5px;
    white-space: nowrap;
}

.v-line-2 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 4px;
    white-space: nowrap;
    opacity: 0.85;
}

/* Preloader Screen */
.loader-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ecedf0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.85, 0, 0.15, 1), visibility 0.8s;
}

.loader-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    font-family: 'Pacifico', cursive;
    font-size: 70px;
    color: #222222;
    letter-spacing: -1.5px;
    text-transform: lowercase;
    opacity: 0;
    transform: scale(0.85);
    animation: logo-entrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards, 
               logo-glow 2s ease-in-out infinite alternate 1.2s;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #222222;
    animation: fill-bar 1.5s cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
}

@keyframes logo-entrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes logo-glow {
    0% {
        text-shadow: 0 0 0px rgba(0,0,0,0);
    }
    100% {
        text-shadow: 0 0 20px rgba(34,34,34,0.15);
    }
}

@keyframes fill-bar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}
