* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFD700;
    --secondary-color: #333;
    --background-dark: #1a1a1a;
    --text-light: #f0f0f0;
    --text-dark: #333;
    --urban-grey: #555;
    --border-radius-soft: 8px;
    --transition-speed: 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    background-color: var(--background-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Urbanist', sans-serif;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 20px;
}

h1 { font-size: 3.5em; text-align: center; line-height: 1.1; }
h2 { font-size: 2.5em; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: #ffd700;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--border-radius-soft);
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    border: none;
    cursor: pointer;
    font-family: 'Urbanist', sans-serif;
    margin-right: 10px;
    margin-top: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-dark);
}

.btn-primary:hover {
    background-color: #e0c200;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--urban-grey);
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: #666;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.section-padded {
    padding: 80px 0;
}

.main-header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 25px;
}

.logo {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.8em;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
}

.main-nav {
    display: block; 
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1em;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width var(--transition-speed);
}

.main-nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: 1100;
    position: relative;
    padding: 0;
    background: none;
    border: none;
    align-items: flex-end;
    transition: all 0.3s ease;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.mobile-nav-overlay {
    display: none;
}

.cart-controls {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    margin-left: 20px;
}

.cart-icon {
    width: 50px;
    height: 50px;
    filter: brightness(1.2);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    background-color: var(--primary-color);
    color: var(--background-dark);
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 50%;
    padding: 3px 7px;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 15px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%) scale(1.3);
    filter: brightness(0.5);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4em;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #ddd;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#the-art-of-grillz {
    background-color: var(--background-dark);
    text-align: center;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.art-item {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.art-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.gallery-section {
    background-color: #1a1a1a;
    padding: 80px 0;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
    border: 2px solid transparent;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-soft);
    transition: transform var(--transition-speed);
    display: block;
}

.gallery-grid .gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--text-light);
    padding: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    pointer-events: none;
    border-bottom-left-radius: var(--border-radius-soft);
    border-bottom-right-radius: var(--border-radius-soft);
    font-size: 0.9em;
}

.gallery-grid .gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    border-color: var(--primary-color);
}

.gallery-grid .gallery-item:hover .gallery-item-info {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#how-it-works {
    background-color: #222;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.configurator-section {
    min-height: 100vh;
    background-color: var(--background-dark);
    padding: 80px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.configurator-section.hidden {
    display: none;
}

.configurator-header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 40px;
}

.configurator-header .section-title {
    margin-bottom: 0;
}

.price-display {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Urbanist', sans-serif;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.configurator-main {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    background-color: #222;
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.teeth-preview-area {
    flex: 2;
    min-width: 400px;
    position: relative;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.grillz-preview-placeholder {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 300px;
    background-color: #111;
    border: 1px solid #444;
    border-radius: var(--border-radius-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 250px;
}

.grillz-preview-placeholder #grillz-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
}

.grillz-preview-placeholder .placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #555;
    font-size: 1.5em;
    font-weight: 600;
    font-family: 'Urbanist', sans-serif;
    pointer-events: none;
    z-index: 2;
}

.tooth-selection-grid {
    width: 80%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: var(--border-radius-soft);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.tooth-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.tooth-box {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    background-color: #383838;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #eee;
    font-weight: 600;
    font-size: 0.8em;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    user-select: none;
}

.tooth-box:hover {
    background-color: #4a4a4a;
    transform: translateY(-2px);
}

.tooth-box.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--background-dark);
}

.teeth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.customization-panel {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: #2a2a2a;
    color: var(--text-light);
    position: relative;
}

.customization-panel .price-display {
    text-align: right;
    margin-bottom: 25px;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Urbanist', sans-serif;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.configurator-step {
    display: none;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #444;
}
#step-1-teeth {
    border-top: none;
    padding-top: 0;
}
.configurator-step.active {
    display: block;
}

.configurator-step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.configurator-step p {
    color: #ccc;
    margin-bottom: 20px;
}

.review-summary p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.review-summary .review-total-price {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 15px;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.options-grid label {
    background-color: #383838;
    padding: 12px 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
    display: flex;
    align-items: center;
    font-size: 0.95em;
    color: #ddd;
    border: 1px solid transparent;
}

.options-grid label:hover {
    background-color: #444;
}

.options-grid input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.options-grid input[type="radio"]:checked + span {
    border-color: var(--primary-color);
    background-color: #4a4a4a;
}

.btn.hidden {
    display: none;
}

#featured-grillz-carousel {
    background-color: #222;
    text-align: center;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track-container {
    overflow: hidden;
    padding: 0 60px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.carousel-item {
    flex: 0 0 calc(33.33% - 13.33px);
    min-width: 280px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.carousel-item-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.carousel-item h3 {
    color: var(--text-light);
    font-size: 1.3em;
    margin-bottom: 5px;
}

.carousel-item-price {
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-item .btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: auto;
    margin-right: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.carousel-nav:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.cart-popup {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #2a2a2a;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 2000;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.3s ease-out;
}

.cart-popup.visible {
    right: 0;
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.cart-popup-header h3 {
    margin-bottom: 0;
    color: var(--primary-color);
    font-size: 1.8em;
}

.close-cart-btn {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.close-cart-btn:hover {
    color: var(--primary-color);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #3a3a3a;
    font-size: 0.95em;
    color: #ddd;
    gap: 10px;
}

.cart-item-image {
    width: 60px;
    height: 40px;
    object-fit: cover;
    background-color: #1a1a1a;
    border-radius: 4px;
    padding: 5px;
    flex-shrink: 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details strong {
    color: var(--primary-color);
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.1em;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.cart-item-remove:hover {
    background-color: rgba(255, 107, 107, 0.2);
}

.empty-cart-message {
    text-align: center;
    color: #aaa;
    font-style: italic;
    padding: 20px;
}

.cart-summary {
    border-top: 1px solid #444;
    padding-top: 15px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
}

.cart-summary #cart-total-price {
    font-size: 1.4em;
    font-weight: 700;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

.cart-actions .btn {
    margin: 0;
    width: 100%;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.item-detail-modal {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-overlay.visible .item-detail-modal {
    transform: translateY(0);
    opacity: 1;
}

.item-detail-modal .modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.item-detail-modal .modal-close-btn:hover {
    color: var(--primary-color);
}

.item-detail-modal .modal-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.item-detail-modal #modal-item-image {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 10px;
}

.item-detail-modal #modal-item-name {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.item-detail-modal #modal-item-description {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 15px;
}

.item-detail-modal .modal-item-price {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.item-detail-modal #modal-add-to-cart-btn {
    width: 80%;
    max-width: 300px;
    padding: 12px 25px;
    font-size: 1em;
    margin-top: 0;
}

.main-footer {
    background-color: #0d0d0d;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.carousel-item.animate-on-scroll {
    transform: none;
    transition: opacity 0.8s ease-out;
}

@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.6em; }
    p { font-size: 0.95em; }

    .section-padded {
        padding: 60px 0;
    }

    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 25px;
    }
    .logo {
        flex-shrink: 0;
    }
    .main-nav:not(.mobile-nav-overlay .main-nav) {
        display: none;
    }
    
    .cart-controls {
        order: 1;
        margin-left: auto;
        margin-right: 15px;
    }

    .hamburger {
        display: flex;
        order: 2;
        margin-left: 0;
    }

    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background-color: #1c1c1c;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
        z-index: 1150;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 60px 20px 20px;
        opacity: 0;
        visibility: hidden;
        transition: right 0.4s ease-out, opacity 0.4s ease, visibility 0.4s ease;
    }

    .mobile-nav-overlay.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-overlay.active .main-nav {
        display: block;
        width: 100%;
        padding-top: 20px;
    }

    .mobile-nav-overlay .main-nav ul {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        list-style: none;
        padding: 0;
        width: 100%;
    }
    .mobile-nav-overlay .main-nav a {
        font-size: 1.4em;
        font-weight: 500;
        color: #fff;
        padding: 10px 0;
        display: block;
        transition: color 0.2s ease, background-color 0.2s ease;
    }

    .mobile-nav-overlay .main-nav a:hover,
    .mobile-nav-overlay .main-nav a:focus {
        color: var(--primary-color);
        background-color: rgba(255, 215, 0, 0.1);
        border-radius: var(--border-radius-soft);
    }
    .mobile-nav-overlay .main-nav a::after {
        display: none;
    }

    .mobile-nav-close {
        position: absolute;
        top: 20px;
        left: 20px;
        background: none;
        border: none;
        color: #ddd;
        font-size: 2.5em;
        cursor: pointer;
        line-height: 1;
        padding: 5px;
        border-radius: 5px;
        transition: color 0.2s ease, background-color 0.2s ease;
        z-index: 1160;
    }

    .mobile-nav-close:hover {
        color: var(--primary-color);
        background-color: rgba(255, 215, 0, 0.1);
    }

    .configurator-main {
        flex-direction: column;
    }
    .teeth-preview-area, .customization-panel {
        min-width: 100%;
        padding: 15px;
    }
    .grillz-preview-placeholder {
        height: 250px;
        max-width: 95%;
        min-height: 200px;
    }
    .grillz-preview-placeholder .placeholder-text {
        font-size: 1.3em;
    }
    .tooth-selection-grid {
        padding: 8px;
    }
    .tooth-row {
        gap: 4px;
    }
    .tooth-box {
        font-size: 0.7em;
    }

    .carousel-item {
        flex: 0 0 calc(50% - 15px);
        min-width: 200px;
    }
    .carousel-track-container {
        padding: 0 20px;
    }
    .carousel-track {
        gap: 15px;
    }

    .cart-popup {
        width: 100%;
        max-width: none;
        right: -100%;
        padding: 15px;
    }
    .cart-popup.visible {
        right: 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.6em; margin-bottom: 25px; }
    h3 { font-size: 1.4em; }
    p { font-size: 0.85em; }

    .btn {
        padding: 10px 20px;
        font-size: 0.8em;
        margin-top: 10px;
    }
    .btn-large {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .section-padded {
        padding: 40px 0;
    }

    .main-header .container {
        padding: 10px 15px;
    }
    .logo {
        font-size: 1.4em;
    }
    .hamburger {
        width: 25px;
        height: 20px;
        gap: 3px;
    }
    .hamburger .bar {
        height: 2px;
    }
    .cart-icon {
        width: 40px;
        height: 40px;
    }
    .cart-count {
        font-size: 0.6em;
        padding: 2px 5px;
        top: 5px;
        right: 5px;
    }
    .cart-controls {
        margin-right: 10px;
    }

    .mobile-nav-overlay {
        width: 250px;
    }

    .gallery-grid .gallery-item-info {
        transform: translateY(0);
        opacity: 1;
        position: static;
        background-color: transparent;
        color: #aaa;
        padding: 5px 10px;
        font-size: 0.85em;
        pointer-events: auto;
    }
    .gallery-grid .gallery-item:hover .gallery-item-info {
        transform: translateY(0);
        opacity: 1;
    }
    .gallery-grid .gallery-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 15px;
        border: 1px solid #333;
    }
    .gallery-grid .gallery-item:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }

    .configurator-main {
        flex-direction: column;
    }
    .teeth-preview-area, .customization-panel {
        min-width: 100%;
        padding: 15px;
    }
    .grillz-preview-placeholder {
        height: 150px;
        min-height: 100px;
    }
    .grillz-preview-placeholder .placeholder-text {
        font-size: 1em;
    }
    .tooth-selection-grid {
        padding: 8px;
    }
    .tooth-box {
        font-size: 0.55em;
    }
    .customization-panel .price-display {
        font-size: 1.6em;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    .options-grid label {
        padding: 8px 12px;
        font-size: 0.8em;
    }

    .carousel-item {
        flex: 0 0 90%;
        min-width: 250px;
    }
    .carousel-track-container {
        padding: 0 10px;
    }
    .carousel-track {
        gap: 10px;
    }
    .carousel-nav {
        font-size: 1em;
        padding: 6px 10px;
        top: calc(50% + 5px);
    }
    .carousel-item-img {
        height: 120px;
    }
    .carousel-item h3 {
        font-size: 1.1em;
    }
    .carousel-item-price {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.4em; }
    h3 { font-size: 1.2em; }
    p { font-size: 0.8em; }

    .logo { font-size: 1.2em; }
    .mobile-nav-overlay .main-nav a { font-size: 1.3em; }
    
    .mobile-nav-overlay {
        width: 200px;
    }
    .cart-icon {
        width: 35px;
        height: 35px;
    }
    .cart-count {
        font-size: 0.55em;
        padding: 1px 4px;
        top: 2px;
        right: 2px;
    }
    .cart-controls {
        margin-right: 8px;
    }

    .tooth-box {
        font-size: 0.5em;
        border-radius: 2px;
    }
    .price-display {
        font-size: 1.4em;
    }
}