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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom, #2c1810 0%, #4a2c1a 25%, #6b4423 50%, #8b5a2d 75%, #a0714f 100%);
    color: #333;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #1a1410 0%, #2c1f16 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-bottom: 2px solid #d4a574;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 70px;
}

.logo {
    color: #d4a574;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: all 0.3s;
}

.logo:hover {
    color: #f4d5a6;
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 25px 0;
    display: block;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #d4a574;
}

.dropdown-content {
    display: block;
    position: absolute;
    background: linear-gradient(135deg, #2c1f16 0%, #3d2a1a 100%);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    top: 70px;
    left: 0;
    border: 1px solid #d4a574;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s, padding-left 0.3s;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #d4a574 0%, #c99456 100%);
    color: #1a1410;
    padding-left: 25px;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: #d4a574;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: linear-gradient(135deg, #8b5a2d 0%, #6b4423 100%);
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(139, 90, 45, 0.6);
    animation: pulse 2s infinite;
    border: 2px solid #d4a574;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.cart-count.hidden {
    display: none;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #d4a574;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

.product-detail {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 30px;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 3px solid #d4a574;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #3d2a1a 0%, #5c3d28 50%, #7a5436 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(61, 42, 26, 0.5);
    transition: opacity 0.3s ease;
    position: relative;
    border: 3px solid #d4a574;
}

.main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 165, 116, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

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

.gallery-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-arrow {
    background: linear-gradient(135deg, #6b4423 0%, #8b5a2d 100%);
    color: #fff;
    border: 2px solid #d4a574;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.5);
}

.nav-arrow:hover {
    background: linear-gradient(135deg, #d4a574 0%, #c99456 100%);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.6);
    color: #1a1410;
}

.nav-arrow:active {
    transform: scale(0.95);
}

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

.thumbnail {
    height: 100px;
    background: linear-gradient(135deg, #f5f0e8 0%, #ebe3d5 100%);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #c4a072;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(107, 68, 35, 0.4);
    border-color: #8b5a2d;
}

.thumbnail.active {
    border-color: #d4a574;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.6);
    transform: scale(1.05);
    background: linear-gradient(135deg, #6b4423 0%, #8b5a2d 100%);
}

.image-counter {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.breadcrumb {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #999;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #8b5a2d;
}

.product-title {
    font-size: 42px;
    background: linear-gradient(135deg, #6b4423 0%, #d4a574 50%, #8b5a2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 700;
}

.product-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.product-price {
    font-size: 36px;
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin-bottom: 30px;
    filter: drop-shadow(0 2px 4px rgba(139, 90, 45, 0.3));
}

.product-description {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.product-specs {
    margin-bottom: 30px;
}

.spec-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #6b4423;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.spec-label {
    color: #666;
    font-weight: 500;
}

.spec-value {
    color: #1a1a1a;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-label {
    font-weight: 600;
    color: #1a1a1a;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #f5f5f5;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 2px solid #e0e0e0;
    border-right: 2px solid #e0e0e0;
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #6b4423 0%, #8b5a2d 100%);
    color: #fff;
    border: 2px solid #d4a574;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(107, 68, 35, 0.5);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.4), transparent);
    transition: left 0.5s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #d4a574 0%, #c99456 100%);
    color: #1a1410;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.6);
}

footer {
    background: linear-gradient(135deg, #1a1410 0%, #2c1f16 100%);
    color: #d4a574;
    text-align: center;
    padding: 30px;
    margin-top: 80px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    border-top: 2px solid #d4a574;
}

@media (max-width: 968px) {
    nav {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #1a1410 0%, #2c1f16 100%);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.8);
        gap: 0;
        padding: 20px 0;
        border-bottom: 2px solid #d4a574;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 15px 20px;
    }

    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(212, 165, 116, 0.2);
        min-width: auto;
        display: none;
    }

    .nav-item:hover .dropdown-content {
        display: none;
    }

    .nav-item.active .dropdown-content {
        display: block;
    }

    .product-container {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 40px;
    }

    .product-detail {
        margin: 30px auto;
        padding: 0 20px;
    }

    .main-image {
        height: 400px;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .product-title {
        font-size: 32px;
    }

    .product-price {
        font-size: 28px;
    }

    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 22px;
    }

    nav {
        padding: 0 15px;
        height: 60px;
    }

    .nav-menu {
        top: 60px;
    }

    .product-container {
        padding: 20px;
        border-radius: 12px;
        gap: 30px;
    }

    .product-detail {
        margin: 20px auto;
        padding: 0 15px;
    }

    .main-image {
        height: 300px;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .thumbnail {
        height: 80px;
    }

    .gallery-navigation {
        gap: 10px;
    }

    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .product-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .product-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .product-price {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .product-description {
        font-size: 15px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .spec-title {
        font-size: 18px;
    }

    .spec-list li {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .add-to-cart-btn {
        padding: 16px;
        font-size: 16px;
    }

    .cart-icon {
        font-size: 22px;
    }

    footer {
        padding: 20px;
        margin-top: 40px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 18px;
    }

    .product-container {
        padding: 15px;
    }

    .main-image {
        height: 250px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-price {
        font-size: 20px;
    }

    .thumbnail {
        height: 70px;
    }

    .quantity-controls {
        width: 100%;
    }

    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}