html {
    min-height: 100%;
}

body {
    background-color: rgb(247, 247, 247);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main{
    flex: 1 0 auto;
}

.site-footer{
    flex-shrink: 0;
    background: linear-gradient(to right,#050505,#121212);
    padding: 60px 90px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 40px;
}

.site-footer-item{
    text-align: center;
}

.site-footer-icon svg{
    width: 42px;
    height: 42px;
    color: #c9a45c;
    margin-bottom: 16px;
}

.site-footer-title{
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.site-footer-text{
    color: #aaa;
}

@media(max-width:1100px){
    .site-footer{
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:700px){
    .site-footer{
        grid-template-columns: 1fr;
        padding-left: 25px;
        padding-right: 25px;
    }
}

/*addmin show page styles */
       .page { background: #f4f6f9; min-height: 100vh; }

    .topbar {
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        padding: 12px 24px;
        display: flex; align-items: center;
        gap: 8px; font-size: 13px; color: #888;
    }
    .topbar a { color: #185FA5; text-decoration: none; }
    .topbar a:hover { text-decoration: underline; }

    .main { padding: 24px; max-width: 860px; margin: 0 auto; }

    .detail-card {
        background: #fff; border-radius: 14px;
        border: 1px solid #e8e8e8; overflow: hidden;
        display: grid; grid-template-columns: 1fr 1.2fr;
    }

    .img-side {
        background: #eef2f7; display: flex;
        align-items: center; justify-content: center;
        min-height: 320px; font-size: 56px;
        color: #bbc; overflow: hidden;
    }
    .img-side img { width: 100%; height: 100%; object-fit: cover; }

    .info-side { padding: 28px 24px; display: flex; flex-direction: column; }

    .info-id { font-size: 11px; color: #bbb; font-family: monospace; margin-bottom: 4px; }
    .info-name { font-size: 20px; font-weight: 600; color: #1a1a2e; margin-bottom: 20px; }

    .info-row {
        display: flex; align-items: flex-start;
        gap: 12px; padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .info-row:last-of-type { border-bottom: none; }
    .info-label {
        font-size: 11px; color: #888;
        text-transform: uppercase; letter-spacing: 0.05em;
        min-width: 90px; padding-top: 2px;
    }
    .info-val { font-size: 14px; color: #333; line-height: 1.6; }
    .price-val { font-size: 20px; font-weight: 700; color: #185FA5; }

    .actions { display: flex; gap: 10px; margin-top: 24px; }

    .btn-back {
        flex: 1; text-align: center; padding: 9px 0;
        border-radius: 8px; border: 1px solid #d0d0d0;
        color: #555; font-size: 13px; text-decoration: none;
        transition: background 0.15s;
    }
    .btn-back:hover { background: #f4f6f9; color: #333; }

    .btn-edit {
        flex: 1; text-align: center; padding: 9px 0;
        border-radius: 8px; background: #185FA5;
        color: #fff; font-size: 13px; text-decoration: none;
        font-weight: 500; transition: opacity 0.15s;
    }
    .btn-edit:hover { opacity: 0.9; color: #fff; }

    .btn-delete {
        flex: 1; text-align: center; padding: 9px 0;
        border-radius: 8px; border: 1px solid #e74c3c;
        color: #e74c3c; font-size: 13px;
        background: transparent; cursor: pointer;
        transition: background 0.15s;
        width: 100%;
    }
    .btn-delete:hover { background: #e74c3c; color: #fff; }

    @media (max-width: 600px) {
        .detail-card { grid-template-columns: 1fr; }
        .actions { flex-direction: column; }
    }
    /*end of admin show page styles */

/* deteil page styles */
/* =========================
   PRODUCT DETAIL PAGE
========================= */

.product-detail-page{
    background: #f5f6fa;
    min-height: 100vh;
    padding: 40px 80px;
}

/* BREADCRUMB */

.breadcrumb-bar{
    margin-bottom: 30px;
    font-size: 15px;
    color: #8c8c8c;
}

.breadcrumb-bar a{
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-bar span{
    margin: 0 5px;
}

/* WRAPPER */

.product-wrapper{
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 35px;
    align-items: start;
}

/* LEFT CARD */

.gallery-card{
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* MAIN IMAGE */

.main-image{

    background: #f8f9fc;

    border-radius: 24px;

    height: 600px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    padding: 40px;
}

/* BILD IMMER SCHÖN GLEICH */

.main-image img{

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: 0.4s ease;
}

/* HOVER */

.main-image img:hover{
    transform: scale(1.04);
}

/* PLACEHOLDER */

.img-placeholder{
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #999;
    align-items: center;
}

.placeholder-icon{
    width: 70px;
    height: 70px;
    color: #999;
    stroke-width: 1.6;
}

/* THUMBNAILS */

.thumbs{
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.thumb{
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: #f5f5f5;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.thumb.active{
    border-color: #d4a94d;
}

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

/* RIGHT CARD */

.info-card{
    background: white;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* PRODUCT TITLE */

.top-info h1{
    font-size: 46px;
    margin-bottom: 15px;
    color: #111827;
    font-weight: 700;
}

/* RATING */

.rating{
    color: #d4a94d;
    font-size: 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-star{
    width: 19px;
    height: 19px;
    color: #d4a94d;
    fill: #d4a94d;
    stroke-width: 1.8;
}

.rating span{
    color: #777;
    margin-left: 10px;
    font-size: 15px;
}

/* PRICE */

.price{
    font-size: 52px;
    color: #1d5fbf;
    font-weight: 800;
    margin-bottom: 5px;
}

/* TAX */

.tax-info{
    color: #777;
    margin-bottom: 25px;
}

/* LINE */

.info-card hr{
    border: none;
    border-top: 1px solid #ececec;
    margin: 25px 0;
}

/* DESCRIPTION */

.label{
    font-size: 13px;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 15px;
    font-weight: 700;
}

.desc{
    color: #444;
    line-height: 1.8;
    font-size: 17px;
}

/* FEATURES */

.features-box{
    margin-top: 35px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    background: #faf8f3;
    border: 1px solid #eee4ca;

    border-radius: 20px;
    padding: 25px;
}

.feature{
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon{
    width: 45px;
    height: 45px;

    background: #d4a94d;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    flex-shrink: 0;
}

.feature-icon svg{
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.feature h4{
    margin: 0;
    font-size: 17px;
    color: #222;
}

.feature p{
    margin-top: 5px;
    color: #777;
    font-size: 14px;
}

/* BUTTONS */

.cart-btn{
    margin-top: 35px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    height: 65px;

    background: linear-gradient(135deg, #d4a94d, #c7932f);
    color: black;

    text-decoration: none;
    border-radius: 16px;

    font-size: 20px;
    font-weight: 700;

    transition: 0.3s ease;
}

.cart-btn svg{
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
}

.cart-btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212,169,77,0.4);
}

.back-btn{
    margin-top: 18px;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 60px;

    border: 2px solid #ececec;
    border-radius: 16px;

    text-decoration: none;
    color: #555;

    font-size: 17px;
    font-weight: 600;

    transition: 0.3s ease;
}

.back-btn:hover{
    background: #f8f8f8;
}

/* RESPONSIVE */

@media(max-width: 1100px){

    .product-wrapper{
        grid-template-columns: 1fr;
    }

    .top-info h1{
        font-size: 38px;
    }
}

@media(max-width: 768px){

    .product-detail-page{
        padding: 20px;
    }

    .main-image{
        height: 350px;
    }

    .features-box{
        grid-template-columns: 1fr;
    }

    .price{
        font-size: 40px;
    }

    .top-info h1{
        font-size: 30px;
    }
}
/*end of detail page styles */

/* start admin index page styles */

/* end of admin index page styles */