body {
    padding-top: 100px;
    /* font-family: 'Roboto', sans-serif; */
    color: #333;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    background: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #71706F;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0.75rem 0;
    padding: 0.25rem 0;
}


/* Product Layout */
.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #4E9669;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

/* Gallery Styles */
.product-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.main-image-container {
    position: relative;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.carousel-btn {
    background: white;
    border: 1px solid #ddd;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover:not(:disabled) {
    background: #71706F;
    color: white;
    border-color: #71706F;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-grid {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.25rem 0;
    flex: 1;
}

.gallery-grid::-webkit-scrollbar {
    height: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.gallery-item {
    flex: 0 0 calc(33.333% - 0.35rem);
    position: relative;
    cursor: pointer;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.video-thumbnail {
    position: relative;
}

.video-thumbnail img {
    filter: brightness(0.7);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.9;
    transition: all 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: #71706F;
}

/* Product Info Card */
.product-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #71706F;
    line-height: 1.3;
}

/* Price Styles */
.price-stack {
    margin: 0.75rem 0;
}

.old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.new-price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #dc3545;
}

.current-price.no-discount {
    color: #71706F;
}

.discount-badge {
    background: linear-gradient(135deg, #ff4d6d, #d90429);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.4rem;
    color: #71706F;
}

.description {
    color: #666;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.spec-list {
    list-style: none;
    margin-bottom: 1.25rem;
}

.spec-list li {
    padding: 0.2rem 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.spec-list li i {
    color: #28a745;
    width: 18px;
    font-size: 0.8rem;
}

/* Quantity Options */
.quantity-options {
    margin: 1.25rem 0;
}

.quantity-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.4rem 0;
}

.quantity-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #F0ECE9;
    background: transparent;
    color: #71706F;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    flex: 1 1 auto;
    min-width: 80px;
}

.quantity-btn:hover,
.quantity-btn.active {
    background: #F0ECE9;
    color: #71706F;
}

.custom-quantity {
    margin-top: 0.75rem;
}

.custom-quantity label {
    display: block;
    margin-bottom: 0.4rem;
    color: #555;
    font-size: 0.85rem;
}

.custom-quantity input {
    width: 100%;
    max-width: 150px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #71706F;
}

.custom-quantity input:focus {
    outline: none;
}

/* Additional Options */
.additional-options {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.25rem 0;
}

.additional-per-unit {
    color: #dc3545;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.option-item {
    margin-bottom: 0.6rem;
}

.option-item:last-child {
    margin-bottom: 0;
}

.option-item label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: #71706F;
    flex-shrink: 0;
}

.option-name {
    font-weight: 500;
    color: #71706F;
    font-size: 0.9rem;
}

.option-price {
    color: #28a745;
    margin-left: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.option-description {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
}

/* Price Summary */
.price-summary {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.25rem 0;
    color: #71706F;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #ddd;
    font-size: 0.9rem;
}

.price-row.total {
    border-bottom: none;
    border-top: 2px solid #ccc;
    margin-top: 0.4rem;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
}

.total-price {
    color: #71706F;
    font-size: 1.25rem;
    font-weight: 800;
}

/* Order Button */
.order-btn {
    width: 100%;
    padding: 0.9rem;
    background: #F0ECE9;
    color: #71706F;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.order-btn:hover {
    background: white;
    border: 1px solid #ccc;
}

.order-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    margin: 2rem 0;
}

.loading i {
    font-size: 2.5rem;
    color: #ccc;
    margin-bottom: 0.75rem;
}

.loading p {
    font-size: 1rem;
    color: #666;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    overflow-y: auto;
    padding: 10px;
}

.modal.show {
    display: block;
}

.modal-content {
    position: relative;
    background: white;
    max-width: 800px;
    width: 100%;
    margin: 30px auto;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1rem 1.5rem;
    background: #F0ECE9;
    color: #71706F;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: #71706F;
    font-size: 1.8rem;
    cursor: pointer;
    transition: opacity 0.3s;
    line-height: 1;
}

.close-btn:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    color: #71706F;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid #ccc;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-control:focus {
    outline: none;
    border-color: #71706F;
}

.form-control.error {
    border-color: #dc3545;
}

/* Contact Options with Icons */
.contact-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.contact-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.6rem;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-option.selected {
    border-color: #F0ECE9;
    background: #F0ECE9;
}

.contact-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}


.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71706F;
    font-size: 1.1rem;
}

.contact-text {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.2;
    flex: 1;
}

.validation-error {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.validation-error.show {
    display: block;
}

/* Modal Buttons */
.btn-secondary {
    padding: 0.5rem 1rem;
    background: #F0ECE9;
    color: #71706F;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.btn-success {
    padding: 0.5rem 1rem;
    background: #F0ECE9;
    color: #71706F;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.btn-success:hover {
    background: white;
    border: 1px solid #ccc;
}

.btn-success:disabled {
    background: #fff;
    cursor: not-allowed;
}

/* Success Message */
.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

.alert-success i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.alert-success h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.alert-success p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Video Modal */
.video-modal .modal-content {
    background: transparent;
    max-width: 900px;
}

.video-modal .modal-header {
    background: transparent;
    justify-content: flex-end;
}

.video-modal .close-btn {
    color: white;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    margin: 2rem 0;
}

.error-message h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

.error-message p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.error-message .order-btn {
    width: auto;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .product-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    body {
        padding-top: 90px;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.3rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .quantity-btn {
        flex: 1 1 calc(50% - 0.25rem);
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .contact-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-image-container {
        aspect-ratio: 3/4;
    }

    .price-row {
        font-size: 0.85rem;
    }

    .total-price {
        font-size: 1.1rem;
    }

    .order-btn {
        font-size: 1rem;
        padding: 0.8rem;
    }

    body {
        padding-top: 80px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    .product-card {
        padding: 1rem;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .current-price {
        font-size: 1.3rem;
    }

    .quantity-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
        min-width: 50px;
    }

    .additional-options,
    .price-summary {
        padding: 0.8rem;
    }

    .contact-options {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .contact-option {
        padding: 0.5rem;
    }

    .contact-text {
        font-size: 0.8rem;
    }

    .contact-icon {
        font-size: 1rem;
        width: 18px;
        height: 18px;
    }

    .play-button {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .main-image-container {
        aspect-ratio: 3/4;
    }

    .price-row {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .price-row.total {
        font-size: 0.9rem;
    }

    .total-price {
        font-size: 1rem;
    }

    .section-title {
        font-size: 0.95rem;
        margin: 1rem 0 0.3rem;
    }

    .description {
        font-size: 0.85rem;
    }

    .spec-list li {
        font-size: 0.85rem;
    }

    .custom-quantity label {
        font-size: 0.8rem;
    }

    .custom-quantity input {
        font-size: 0.85rem;
        padding: 0.4rem;
        max-width: 120px;
    }

    .back-btn {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }

    .modal-header {
        padding: 0.8rem 1rem;
    }

    .modal-header h5 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.8rem 1rem;
    }

    .btn-secondary,
    .btn-success {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .order-summary-item {
        font-size: 0.85rem;
    }

    .order-summary-total {
        font-size: 1rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-control {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .product-title {
        font-size: 1.1rem;
    }

    .current-price {
        font-size: 1.2rem;
    }

    .quantity-btn {
        flex: 1 1 100%;
        font-size: 0.75rem;
    }

    .gallery-item {
        flex: 0 0 calc(33.333% - 0.3rem);
    }

    .price-row {
        font-size: 0.75rem;
    }

    .price-row.total {
        font-size: 0.85rem;
    }

    .contact-text {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 0.9rem;
    }

    .description {
        font-size: 0.8rem;
    }
}

/* ===================== SIZE SECTION ===================== */
.size-section {
    width: 100%;
    margin: 1.5rem 0;
}

.size-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #71706F;
    margin-bottom: 1rem;
    text-align: center;
}

.size-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
}

.size-card {
    flex: 1 1 200px;
    background: #ffffff;
    border: 2px solid #F0ECE9;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.size-card:hover {
    transform: translateY(-2px);
}

.size-card.active {
    background: #F0ECE9;
}


.size-name {
    font-weight: 600;
    color: #71706F;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.size-dimensions {
    color: #71706F;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.size-price {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
    padding-top: 0.25rem;
    border-top: 1px dashed #F0ECE9;
}

/* ===================== RESPONSIVE ===================== */

/* Desktop (1200px and up) */
@media (min-width: 1200px) {
    .size-section h3 {
        font-size: 1.3rem;
    }

    .size-card {
        padding: 1.2rem;
    }

    .size-name {
        font-size: 1.1rem;
    }

    .size-dimensions {
        font-size: 1rem;
    }

    .size-price {
        font-size: 1.2rem;
    }
}

/* Laptop (992px - 1199px) */
@media (max-width: 1199px) {
    .size-card {
        padding: 1rem;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .size-section h3 {
        font-size: 1.1rem;
    }

    .size-buttons {
        gap: 0.8rem;
    }

    .size-card {
        flex: 1 1 180px;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    .size-section {
        margin: 1.2rem 0;
    }

    .size-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .size-buttons {
        flex-direction: row;
        gap: 0.8rem;
    }

    .size-card {
        width: 100%;
        padding: 1rem;
    }

    .size-name {
        font-size: 0.95rem;
    }

    .size-dimensions {
        font-size: 0.85rem;
    }

    .size-price {
        font-size: 1rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .size-section {
        margin: 1rem 0;
    }

    .size-section h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    .size-card {
        padding: 0.8rem;
    }

    .size-name {
        font-size: 0.9rem;
    }

    .size-dimensions {
        font-size: 0.8rem;
    }

    .size-price {
        font-size: 0.95rem;
    }
}

/* Very Small Mobile (375px and below) */
@media (max-width: 375px) {
    .size-section h3 {
        font-size: 0.9rem;
    }

    .size-card {
        padding: 0.7rem;
    }

    .size-name {
        font-size: 0.85rem;
    }

    .size-dimensions {
        font-size: 0.75rem;
    }

    .size-price {
        font-size: 0.9rem;
    }
}