/* ========================================
   PRODUCT.CSS - Product Page Styles
   ======================================== */

/* Animations */
@keyframes badge-pulse {
    0%, 100% {
        border-color: #dc3545;
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        border-color: #ff4757;
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
}

/* Progress Bar Styles */
.progress2 {
    padding: 7px;
    border-radius: 30px;
    background: rgb(254 248 242);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
}

.progress-bar2 {
    height: 18px;
    border-radius: 20px;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    transition: 0.4s linear;
    transition-property: width, background-color;
}

.progress-moved .progress-bar2 {
    background-image: linear-gradient(to right, green,yellow,orange,red);
    animation: progressAnimation 4s;
}

/* Date Box Styles */
.date-box {
    cursor: pointer;
    width: 33%;
    padding: 15px 10px;
    position: relative;
    overflow: hidden;
    background: #edf1f2;
    color: #424242;
    border-radius: 6px;
    text-align: center;
    float: left;
    margin-right:10px;
}

.date-box-active {
    background: #aa9c86;
    color: #fff;
}

/* Time Selection Styles */
.detay-saat {
    overflow: hidden;
}

.detay-saat-kolon {
    width: 23%;
    color: #424242;
    float: left;
    margin: 10px 1%;
}

.detay-saat-kolon select {
    width: 100%;
}

/* Alert Styles */
.alert {
    background: #fcfcfc;
    color:black;
    border-color:#ececec;
    text-align:left;
    padding:padding: 10px 15px;
    border-radius:5px;
    margin-bottom:5px;
    min-height: 1.5rem;
}

#prc {
    text-align:right;
    display:inline-block;
    flex: 0 0 50%;
    float:right;
    font-size:15px;
    font-weight:400;
}

.alert:hover {
    background: #c3c3c3;
}

/* Zoom Container z-index */
.zoomContainer {
    z-index: 1000 !important;
}

.zoomWindowContainer {
    z-index: 1000 !important;
}

.zoomWindow {
    z-index: 1000 !important;
}

/* Image Gallery */
#image-additional img {
    cursor: pointer !important;
    pointer-events: auto !important;
}

#image-additional a {
    display: block !important;
    pointer-events: auto !important;
}

.zoomLens {
    pointer-events: none !important;
}

/* Teslimat Bölge Container */
.teslimat-bolge-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 0;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    z-index: 100;
}

.teslimat-content-box {
    padding: 25px 30px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    position: relative;
}

.teslimat-header-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.teslimat-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.badge-canli {
    background: #10b981;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.teslimat-description {
    color: #95a5a6;
    font-size: 13px;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Modern Select Wrapper */
.modern-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    z-index: 101;
    cursor: pointer;
}

.select-icon-wrapper {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25);
}

.select-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.select-icon-wrapper svg path {
    fill: white !important;
}

.teslimat-select {
    width: 100%;
    max-width: 100%;
    padding: 14px 45px 14px 70px;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    background: white;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2327ae60' d='M4.427 6.427a.6.6 0 01.849 0L8 9.151l2.724-2.724a.6.6 0 11.849.849L8.424 10.424a.6.6 0 01-.849 0L4.427 7.276a.6.6 0 010-.849z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
}

.teslimat-select:hover {
    border-color: #27ae60;
}

.teslimat-select:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.teslimat-select option {
    padding: 10px 12px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    color: #000000;
    text-align: center;
}

/* Selectize Dropdown Styles */
.selectize-dropdown {
    width: 95% !important;
    max-width: 95% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.selectize-dropdown-content {
    max-width: 100% !important;
    padding-left: 0 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

.selectize-dropdown .option {
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    cursor: pointer;
    text-align: center !important;
}

.selectize-dropdown .option:hover {
    background-color: #f0f9f4 !important;
}

.selectize-dropdown .option.active {
    background-color: #27ae60 !important;
    color: white !important;
}

.selectize-control {
    width: 100% !important;
}

.selectize-input {
    width: 100% !important;
    padding: 14px 45px 14px 70px !important;
    min-height: 52px !important;
    font-size: 14px !important;
    border: 2px solid #e8ecef !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.selectize-input input {
    font-size: 15px !important;
    text-align: center !important;
    font-weight: 600 !important;
    width: 100% !important;
    flex: 1 !important;
}

.selectize-input.focus {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}

.selectize-input input::placeholder {
    color: #000000 !important;
    opacity: 1 !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.selectize-input .item {
    color: #000000 !important;
    font-weight: 600 !important;
    text-align: center !important;
    width: 100% !important;
}

.selectize-input input {
    color: #000000 !important;
    text-align: center !important;
}

.selectize-input:not(.full):not(.has-items) {
    border-color: #dc3545 !important;
    animation: badge-pulse 2s ease-in-out infinite !important;
}

.selectize-input.full,
.selectize-input.has-items {
    animation: none !important;
    border-color: #e8ecef !important;
}

/* Feature Badges */
.teslimat-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-icon.green {
    background: #d1fae5;
}

.feature-icon.green svg {
    width: 18px;
    height: 18px;
}

/* Price Display Styles */
.width50 {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    width: 50%;
    min-height: 1px;
}

.detay-urun-fiyat-net {
    font-size: 2.5rem;
    color: #212529;
    text-align: left;
}

.detay-urun-fiyat-kusurat {
    font-size: 1.5rem;
    position: absolute;
    color: #212529;
}

.detay-urun-fiyat {
    padding-top:15px;
}

#siparis_ver {
    padding: 20px 60px;
    font-size: 1.3rem;
    float: right;
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

/* Modern Price Container */
.modern-fiyat-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fiyat-sol {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.urun-baslik-ust {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.fiyat-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.fiyat-ana {
    font-size: 48px;
    font-weight: 800;
    color: #27ae60;
    line-height: 1;
}

.fiyat-kusurat {
    font-size: 24px;
    font-weight: 600;
    color: #27ae60;
}

.fiyat-sag {
    flex-shrink: 0;
}

.siparis-ver-modern {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.siparis-ver-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.5);
}

.siparis-ver-modern:active {
    transform: translateY(0);
}

.siparis-ver-pasif {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    cursor: not-allowed;
    opacity: 0.8;
}

/* Product Detail Price Features */
.col {
    display:flex;
    margin-left:5px;
}

.urun-detay-fiyat-ozellik {
    width:33%;
    display: flex;
    align-items: center;
    float: left;
    margin-bottom: 0.8rem;
    margin-top: 0.8rem;
}

.urun-detay-fiyat-sol {
    float: left;
}

.urun-detay-fiyat-sag {
    float: left;
    margin-left: 15px;
}

.urun-detay-fiyat-ozellik span {
    display: block;
    font-size: 13px;
    line-height: 16px;
    color: #666;
}

/* Tabs Styles */
.htabs {
    width:10%
}

.tags {
    width:90%;
    text-align:left;
    padding-top:2px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media screen and (max-width: 992px) {
    .teslimat-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .modern-fiyat-container {
        flex-wrap: nowrap;
        padding: 16px 20px;
        gap: 12px;
    }

    .fiyat-sol {
        flex: 0 1 auto;
        gap: 12px;
    }

    .fiyat-sag {
        flex: 0 1 auto;
    }

    .fiyat-ana {
        font-size: 44px;
    }

    .fiyat-kusurat {
        font-size: 22px;
    }

    .siparis-ver-modern {
        padding: 14px 32px;
        font-size: 15px;
        white-space: nowrap;
    }
}

@media screen and (max-width: 768px) {
    .detay-saat-kolon {
        cursor: pointer;
        width: 140px;
        position: relative;
        overflow: hidden;
        text-align: center;
        float: left;
        margin: 0px 1% 0px;
    }

    .teslimat-bolge-container {
        border-radius: 12px;
        margin: 16px 0;
    }

    .teslimat-content-box {
        padding: 22px 20px;
    }

    .teslimat-header-title {
        font-size: 16px;
    }

    .badge-canli {
        font-size: 11px;
        padding: 4px 10px;
    }

    .teslimat-description {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .select-icon-wrapper {
        display: none !important;
    }

    .teslimat-select {
        font-size: 13px;
        padding: 13px 40px 13px 13px;
        text-align: center;
    }

    .selectize-input {
        padding: 13px 40px 13px 13px !important;
        font-size: 14px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .selectize-input input {
        text-align: center !important;
        font-weight: 600 !important;
        font-size: 14px !important;
    }

    .selectize-input input::placeholder {
        color: #000000 !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        text-align: center !important;
    }

    .selectize-input .item {
        text-align: center !important;
    }

    .selectize-dropdown .option {
        font-size: 11px !important;
    }

    .teslimat-features {
        gap: 12px;
        margin-top: 16px;
    }

    .feature-badge {
        font-size: 12px;
        gap: 7px;
    }

    .feature-icon {
        width: 30px;
        height: 30px;
    }

    .feature-icon.green svg {
        width: 17px;
        height: 17px;
    }

    .detay-urun-fiyat-net {
        font-size: 2rem!important;
    }

    .detay-urun-fiyat-kusurat {
        font-size: 1rem!important;
    }

    #siparis_ver {
        padding: 15px 20px!important;
        font-size: 1rem!important;
    }

    .modern-fiyat-container {
        padding: 18px 16px;
    }

    .fiyat-ana {
        font-size: 40px;
    }

    .fiyat-kusurat {
        font-size: 20px;
    }

    .siparis-ver-modern {
        padding: 14px 32px;
        font-size: 15px;
    }

    .urun-detay-fiyat-sag {
        margin-left: 0px!important;
        width:90%;
    }

    .m-d-n {
        display: none!important;
    }

    .urun-detay-fiyat-ozellik img {
        width:90%;
    }

    .urun-detay-fiyat-ozellik {
        padding-right: 5px;
    }

    .htabs {
        width:40%
    }

    .tags {
        width:60%;
        padding-top:0px;
    }
}

@media screen and (max-width: 767px) {
    #image-additional {
        display:none;
    }
}

@media (max-width: 550px) {
    .image-container {
        pointer-events: none;
    }
}

@media screen and (min-width: 500px) {
    .span7 {
        box-shadow: inset -3px -4px 11px 0px rgba(0, 0, 0, 0.08);
        padding: 17px;
        border-radius: 17px;
    }
}

@media (max-width: 480px) {
    .teslimat-bolge-container {
        margin: 12px 0;
    }

    .teslimat-content-box {
        padding: 18px 16px;
    }

    .teslimat-header-wrapper {
        gap: 8px;
    }

    .teslimat-header-title {
        font-size: 15px;
    }

    .badge-canli {
        font-size: 10px;
        padding: 3px 8px;
    }

    .teslimat-description {
        font-size: 11px;
    }

    .teslimat-select {
        font-size: 13px;
        padding: 12px 38px 12px 12px;
        background-size: 14px;
        text-align: center;
    }

    .selectize-input {
        padding: 12px 38px 12px 12px !important;
        font-size: 13px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .selectize-input input {
        text-align: center !important;
        font-weight: 600 !important;
        font-size: 13px !important;
    }

    .selectize-input input::placeholder {
        color: #000000 !important;
        font-weight: 600 !important;
        font-size: 13px !important;
        text-align: center !important;
    }

    .selectize-input .item {
        text-align: center !important;
    }

    .selectize-dropdown .option {
        font-size: 10px !important;
    }

    .teslimat-features {
        gap: 10px;
        margin-top: 14px;
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-badge {
        font-size: 11px;
        gap: 6px;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
    }

    .feature-icon.green svg {
        width: 16px;
        height: 16px;
    }

    .modern-fiyat-container {
        padding: 16px 12px;
    }

    .fiyat-ana {
        font-size: 36px;
    }

    .fiyat-kusurat {
        font-size: 18px;
    }

    .siparis-ver-modern {
        padding: 13px 28px;
        font-size: 14px;
    }
}

@media screen and (max-width: 432px) {
    .select {
        font-size:10px;
        font-weight:bold;
    }
}
