body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* Top Navigation */
.top-nav {
    background-color: #222;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-nav .logo {
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
}

.top-nav .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.top-nav .nav-links li {
    margin-left: 30px;
}

.top-nav .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.top-nav .nav-links a:hover {
    color: #ffd700;
}

/* Page Header */
.page-header {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #333;
}

/* Main Content Container */
.main-content-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.product-detail-section {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Product Images Gallery (Left Section) */
.product-images-gallery {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.main-image-display {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.main-image-display img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain for full image visibility */
    transition: transform 0.2s ease-out;
    transform-origin: center center; /* For zooming */
}

.main-image-display.zoom img {
    transform: scale(2); /* Zoom factor */
}

.magnifier {
    position: absolute;
    border: 1px solid rgba(0,0,0,0.2);
    background-color: rgba(255,255,255,0.7);
    cursor: crosshair;
    pointer-events: none;
    width: 100px; /* Size of the magnified area */
    height: 100px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.main-image-display.zoom .magnifier {
    opacity: 1;
}

.thumbnail-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumbnails-wrapper {
    flex-grow: 1;
    overflow: hidden;
}

.thumbnails {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumbnails img.active,
.thumbnails img:hover {
    border-color: #e44d26;
    transform: translateY(-3px);
}

.thumb-prev-btn, .thumb-next-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: #555;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.2em;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.thumb-prev-btn:hover, .thumb-next-btn:hover {
    background-color: #e44d26;
    color: #fff;
}

/* Product Info Panel (Right Section) */
.product-info-panel {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.product-info-panel .product-title {
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.product-info-panel .product-price {
    font-size: 2em;
    color: #e44d26;
    margin-bottom: 20px;
    font-weight: bold;
}

.product-options-group {
    margin-bottom: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.option-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.option-label {
    font-weight: bold;
    margin-right: 15px;
    color: #555;
    width: 60px;
    flex-shrink: 0;
}

.option-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-choices .choice {
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95em;
}

.option-choices .choice:hover {
    border-color: #e44d26;
    color: #e44d26;
}

.option-choices .choice.active {
    background-color: #e44d26;
    color: #fff;
    border-color: #e44d26;
}

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

.quantity-selector .quantity-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

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

.quantity-selector .quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 8px 5px;
    margin: 0 5px;
    border-radius: 4px;
    -moz-appearance: textfield;
}

.quantity-selector .quantity-input::-webkit-outer-spin-button,
.quantity-selector .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.action-buttons button {
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-right: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.action-buttons .add-to-cart {
    background-color: #e44d26;
    color: white;
}

.action-buttons .add-to-cart:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.action-buttons .buy-now {
    background-color: #2ecc71;
    color: white;
}

.action-buttons .buy-now:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* Product Additional Info (Tabs) */
.product-additional-info {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.1em;
    color: #555;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-button:hover {
    color: #e44d26;
}

.tab-button.active {
    color: #e44d26;
    border-bottom: 2px solid #e44d26;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.tab-content p {
    line-height: 1.7;
    margin-bottom: 10px;
}

.tab-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.case-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.case-item:last-child {
    border-bottom: none;
}

.case-item h3 {
    font-size: 1.4em;
    color: #444;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Recommended Products */
.recommended-products {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.recommended-products h2 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.recommendation-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-card img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 1.2em;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #333;
}

.product-card p {
    font-size: 1.1em;
    color: #e44d26;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-card button {
    background-color: #e44d26;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-card button:hover {
    background-color: #c0392b;
}

/* Bottom Navigation */
.bottom-nav {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.bottom-nav .nav-container {
    flex-direction: column;
    height: auto;
}

.bottom-nav p {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    color: #aaa;
}

.bottom-nav .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.bottom-nav .footer-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.bottom-nav .footer-links li a:hover {
    color: #ffd700;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .product-detail-section {
        flex-direction: column;
    }

    .product-images-gallery,
    .product-info-panel {
        width: 100%;
        padding: 15px;
    }

    .top-nav .nav-links {
        display: none;
    }

    .top-nav .nav-container {
        justify-content: center;
    }

    .product-images-gallery {
        padding-bottom: 0;
    }

    .main-image-display {
        padding-bottom: 75%; /* Adjust aspect ratio for smaller screens if needed */
    }

    .thumbnail-carousel {
        justify-content: center;
    }

    .thumbnails img {
        width: 60px;
        height: 60px;
    }

    .product-info-panel .product-title {
        font-size: 1.8em;
    }

    .product-info-panel .product-price {
        font-size: 1.6em;
    }

    .action-buttons button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .action-buttons button:last-child {
        margin-bottom: 0;
    }

    .recommendation-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .bottom-nav .footer-links {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2em;
    }

    .product-images-gallery {
        padding: 10px;
    }

    .product-info-panel {
        padding: 15px;
    }

    .option-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .option-label {
        margin-right: 0;
        margin-bottom: 5px;
        width: auto;
    }

    .option-choices .choice {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .quantity-selector {
        justify-content: center;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
    }

    .recommendation-list {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 150px;
    }
}