.body {
    margin: 0px;
    background-image: url("./Resources/store_elements/ai_bar.png");
    background-position: top;
    background-size: 120%;
    background-repeat: no-repeat;
}

.logo {
    padding-top: 0px;
    display: inline-block;
}

.logoimg {
    position: fixed;
    height: 60px;
    width: auto;
    background-size: cover;
    cursor: pointer;
    transition: 0.2s;
}

.header {
    display: flex;
}

.buttonbar {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: end;
    gap: 6%;
}

.t1,
.t2,
.t3,
.t4 {
    font-family: "Boldonse", system-ui;
    font-size: 15px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 20;
    background: #fff;
    background-image: linear-gradient(to right, #000000, #000000);
    background-size: 200% 100%;
    background-position: -100%;
    display: inline-block;
    padding: 5px 0;
    position: relative;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease-in-out;
}

.t1:before,
.t2:before,
.t3:before,
.t4:before,
.t5:before {
    content: "";
    background: #ff0000;
    display: block;
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    transition: all 0.5s ease-in-out;
}

.t1:hover,
.t2:hover,
.t3:hover,
.t4:hover,
.t5:hover {
    background-position: 0;
}

.t1:hover::before,
.t2:hover::before,
.t3:hover::before,
.t4:hover::before,
.t5:hover::before {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.t5 {
    font-family: "Boldonse", system-ui;
    font-size: 15px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 20;
    background: #fff;
    background-image: linear-gradient(to right, #000000, #000000);
    background-size: 200% 100%;
    background-position: -100%;
    display: inline-block;
    padding: 5px 0;
    position: relative;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 10%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 10px;
    animation: fadeInDown 0.5s ease-in-out;

}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: "Boldonse", system-ui;
    font-size: 14px;
    transition: background-color 0.5s ease;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.5s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart {
    margin-top: -0.3rem;
    width: 3.5rem;
    margin-right: 2rem;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff3b30;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    font-weight: bold;
    border: 2px solid #fff;
}

.cart img {
    width: 3.5rem;
    cursor: pointer;
}

.cart img:hover {
    background-image: url("./Resources/store_elements/cart_hover_light.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
}

/* Toast Notification */
.cart-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.cart-toast.show {
    transform: translateX(-50%) translateY(0);
}

#ai_txt {
    width: 20%;
    position: absolute;
    top: 0;
}

.topadv {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 130px;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.topadv img {
    margin-top: 10%;
    justify-content: center;
    width: 60%;
}

.center {
    display: flex;
    justify-content: center;
    font-family: "Boldonse", system-ui;
    color: black;
    text-decoration: none;
    font-weight: 50;
    background: #fff;
    width: 100%;
}

.grid {
    display: flex;
    flex-direction: row;
    gap: 5rem;
    justify-content: space-evenly;
}

.arrow {
    display: inline-block;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.arrow img {
    height: 1rem;
    margin-left: 0.5rem;
}

.iphonetile,
.ipadtile,
.mactile,
.audiotile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    text-decoration: none;
    color: #000;
}

.iphonetile a,
.ipadtile a,
.mactile a,
.audiotile a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000;
}

.i17pm img,
.i17p img,
.iair img,
.i7 img {
    width: 15rem;
}

.rowname {
    font-family: "Boldonse", system-ui;
    color: black;
    text-decoration: none;
    font-weight: 50;
    background: #fff;
}

.iphonelist {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iphonelist a p {
    margin-top: -2.5rem;
}

.ipadpro img,
.ipadair img,
.ipadmini img,
.ipad11th img {
    width: 15rem;
}

.ipadlist {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ipadlist a p {
    margin-top: -2.5rem;
}

.maclist {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.maclist a p {
    margin-top: -0.6rem;
}

.imac img,
.macpro img,
.macbookair img,
.macmini img {
    margin-top: 4.2rem;
    width: 15rem;
}

.audiolist {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.airpodspro img,
.airpods4 img,
.airpodsmax img,
.applemusic img {
    margin-top: 2rem;
    width: 15rem;
}

/* Footer Styles */
.footer {
    background-color: #f5f5f7;
    padding: 3rem 2rem 1.5rem;
    margin-top: 5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.footer-section a {
    display: block;
    color: #86868b;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: #ff0000;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #d2d2d7;
    text-align: center;
}

.footer-bottom p {
    color: #86868b;
    font-size: 0.9rem;
}

/* Button Groups and Selection UI */
.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}

.color-btn.active {
    border-color: #007aff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,122,255,0.3);
}

.color-btn[data-color="Orange"] { background: #ff9500; }
.color-btn[data-color="Blue"] { background: #007aff; }
.color-btn[data-color="White"] { background: #f2f2f7; }

.storage-btn {
    padding: 8px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: 0.2s;
}

.storage-btn.active {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f5f5f7;
    padding: 5px;
    border-radius: 12px;
    width: fit-content;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#quantity {
    width: 40px;
    text-align: center;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive Design Enhancements */
@media (max-width: 1024px) {
    .grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3rem;
    }
    
    .buttonbar {
        gap: 4%;
    }
}

@media (max-width: 768px) {
    .logoimg {
        position: relative;
        height: 50px;
        margin-left: 1rem;
    }

    .header {
        flex-direction: column;
        align-items: center;
    }

    .buttonbar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        padding: 1rem;
        margin-top: 0;
    }

    .topadv img {
        width: 90%;
    }

    .grid {
        flex-direction: column;
        gap: 4rem;
    }

    .iphonetile img, .ipadtile img, .mactile img, .audiotile img {
        width: 12rem;
    }

    .cart {
        margin-right: 0;
        margin-top: 1rem;
    }

    #ai_txt {
        width: 40%;
        position: relative;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .t1, .t2, .t3, .t4, .t5 {
        font-size: 13px;
    }

    .buttonbar {
        gap: 1rem;
    }

    .logoimg {
        height: 40px;
    }
}

/* Responsive Design for Footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}