/* Product View Styles - i24Design */

/* Basic Product View Styles */
#product-view {
    margin-bottom: 20px;
}

#product-view h1 {
    margin-bottom: 0;
    font-size: 18px;
}

#product-view .col_half {
    margin-bottom: 30px;
}

#product-view .product-price ins {
    text-decoration: none;
    color: #ba0005;
    font-weight: 600;
    font-size: 30px;
}

#product-view .product-point {
    text-decoration: none;
    color: #FF8000;
    font-weight: 600;
    font-size: 20px;
}

#product-view .tab-container {
    padding: 10px;
}

/* Countdown Styles */
#countDownStr {
    display: inline-block;
}

#countDownStr span {
    display: inline-block;
    margin: 3px;
    background-color: #000;
    color: #FFF;
    width: 30px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    font-size: 12px;
    border-radius: 3px;
}

/* Label Select Box Styles */
.label-select {
    margin: 20px 0;
}

.label-select .label-title {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.label-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.label-option {
    position: relative;
    min-width: 80px;
}

.label-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.label-option label {
    display: block;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.label-option label:hover {
    border-color: #ba0005;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.label-option input[type="radio"]:checked+label {
    border-color: #ba0005;
    background: #ba0005;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(186, 0, 5, 0.3);
    font-weight: 600;
}

.label-option input[type="radio"]:checked+label::after {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fff;
    color: #ba0005;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile Select Dropdown Styles */
.mobile-select {
    display: none;
}

.mobile-select select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-select select:focus {
    outline: none;
    border-color: #ba0005;
    box-shadow: 0 4px 12px rgba(186, 0, 5, 0.25);
}

/* Action Buttons Container */
.action-buttons {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.action-buttons .button {
    margin: 5px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
}

/* Quantity Input Styles */
.quantity-container {
    margin: 20px 0;
}

.quantity-container .label-title {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.quantity-input-wrapper {
    display: inline-flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.quantity-input-wrapper:hover {
    border-color: #ba0005;
    box-shadow: 0 4px 12px rgba(186, 0, 5, 0.15);
}

.quantity-input-wrapper:focus-within {
    border-color: #ba0005;
    box-shadow: 0 4px 12px rgba(186, 0, 5, 0.25);
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.quantity-btn:hover {
    background: #ba0005;
    color: #fff;
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn.minus {
    border-right: 1px solid #eee;
}

.quantity-btn.plus {
    border-left: 1px solid #eee;
}

.quantity-input {
    border: none;
    outline: none;
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #fff;
    appearance: textfield;
    -moz-appearance: textfield;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    #product-view {
        padding: 10px !important;
    }

    #product-view .col_half {
        width: 100%;
        margin-bottom: 20px;
    }

    #product-view h1 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 15px;
    }

    /* Hide desktop options and show mobile dropdowns */
    .label-options {
        display: none !important;
    }

    .mobile-select {
        display: block !important;
    }

    .label-select .label-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .quantity-container {
        text-align: center;
        margin: 25px 0;
    }

    .quantity-input-wrapper {
        display: inline-flex;
        max-width: 180px;
        margin: 0 auto;
    }

    .quantity-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .quantity-input {
        flex: 1;
        height: 50px;
        font-size: 18px;
        font-weight: bold;
    }

    .product-price {
        float:none !important;
        text-align: center;
        margin: 20px 0;
    }

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

    /* Center action buttons on mobile */
    .action-buttons {
        text-align: center;
        margin-top: 30px;
        padding: 20px 0;
    }

    .action-buttons .button {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        padding: 16px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    #product-view {
        padding: 5px !important;
    }

    .mobile-select select {
        font-size: 16px;
        padding: 14px 16px;
    }

    .quantity-input-wrapper {
        max-width: 160px;
    }

    .action-buttons .button {
        padding: 18px 24px;
        font-size: 16px;
        border-radius: 10px;
    }

    .product-price ins {
        font-size: 26px;
    }
}

/* Desktop specific styles */
@media (min-width: 769px) {
    .mobile-select {
        display: none !important;
    }

    .label-options {
        display: flex !important;
    }

    .action-buttons {
        text-align: left;
    }

    .action-buttons .button {
        display: inline-block;
        width: auto;
    }
}

 /* Keywords Label Styles */
 .keywords-section {
     margin-top: 20px;
 }

 .keywords-section h4 {
     color: #333;
     font-weight: 600;
     margin-bottom: 15px;
     border-bottom: 2px solid #f0f0f0;
     padding-bottom: 8px;
 }

 .keywords-wrapper {
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
     margin-top: 10px;
 }

 .label.label-default {
     background: #000;
     color: #fff;
     padding: 8px 16px;
     border-radius: 3px;
     font-size: 13px;
     font-weight: 500;
     border: none;
     display: inline-block;
     margin: 4px;
     box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
     transition: all 0.3s ease;
     cursor: pointer;
 }

 .label.label-default:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
 }

 /* Alternative keyword styles */
 .keyword-tag {
     background: #f8f9fa;
     color: #495057;
     padding: 6px 12px;
     border-radius: 15px;
     font-size: 12px;
     font-weight: 500;
     border: 1px solid #e9ecef;
     display: inline-block;
     margin: 3px;
     transition: all 0.2s ease;
 }

 .keyword-tag:hover {
     background: #e9ecef;
     border-color: #adb5bd;
     transform: scale(1.05);
 }

 /* Product details section styling */
 .product-details-section {
     margin-top: 30px;
     background: #fff;
     border-radius: 8px;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     overflow: hidden;
 }

 .product-details-section h4 {
     background: #cccccc40;
     color: #000;
     margin: 0;
     padding: 15px 20px;
     font-weight: 600;
     font-size: 16px;
 }

 .product-details-content {
     padding: 20px;
     line-height: 1.6;
     color: #555;
 }

 .product-details-content p {
     margin-bottom: 12px;
 }

 .product-details-content ul,
 .product-details-content ol {
     padding-left: 20px;
     margin-bottom: 15px;
 }

 .product-details-content li {
     margin-bottom: 5px;
 }

 /* Responsive design */
 @media (max-width: 768px) {
     .keywords-wrapper {
         justify-content: center;
     }

     .label.label-default {
         font-size: 12px;
         padding: 6px 12px;
         margin: 2px;
     }

     .product-details-section {
         margin: 20px -15px 0;
         border-radius: 0;
     }

     .product-details-content {
         padding: 15px;
         font-size: 14px;
     }
 }