/* goole font link */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
/* General Body Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

/* Dark Mode */
body[data-theme='dark'] {
    background-color: #1e1e1e;
    color: #e6e6e6;
}

/* Header Styling */
header {
    background-color: #444;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

header[data-theme='dark'] {
    background-color: #222;
}

#shop-logo {
    height: 40px;
    margin-right: 10px;
}

h1 {
    margin: 0;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
}

/* Navigation Styling */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav a:hover, nav a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    order: 1;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 50px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

input:checked + .slider {
    background-color: #444;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Main Section Styling */
main {
    padding: 2rem;
    margin-top: 80px;
    margin-bottom: 80px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#shop-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.item {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    width: calc(50% - 20px);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body[data-theme='dark'] .item {
    background: #2c2c2c;
    color: #ddd;
    border-color: #555;
}

.item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.item h3 {
    margin: 10px 0;
    font-size: 1.5rem;
    color: #333;
}

body[data-theme='dark'] .item h3 {
    color: #ddd;
}

/* Buy Now Button Styling */
button.buy-btn {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button.buy-btn:hover, button.buy-btn:focus {
    background-color: #218838;
    transform: scale(1.05);
}

body[data-theme='dark'] button.buy-btn {
    background-color: #218838;
}

/* Sold Out Styling */
.sold-out {
    color: #d9534f;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: background-color 0.3s ease, color 0.3s ease;
}

footer[data-theme='dark'] {
    background-color: #222;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

/* Clear Data Button */
.clear-data-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 20px;
}

.clear-data-btn:hover, .clear-data-btn:focus {
    background-color: #e60000;
    transform: scale(1.05);
}

/* Checkout Form Styling */
#checkout {
    margin-top: 2rem;
}

#checkout-form {
    display: flex;
    flex-direction: column;
}

#checkout-form label {
    margin: 0.5rem 0;
    font-weight: bold;
}

#checkout-form input {
    margin-bottom: 1rem;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

body[data-theme='dark'] #checkout-form input {
    background-color: #333;
    color: #eee;
    border-color: #555;
}

/* Star rating styling */
#star-rating {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s, transform 0.2s;
}

.star.selected {
    color: #ffd700;
}

.star:hover {
    transform: scale(1.2);
}

/* Submit button styling */
.submit-btn {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.submit-btn:hover, .submit-btn:focus {
    background-color: #218838;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    #shop-items {
        flex-direction: column;
    }

    .theme-switcher {
        margin-top: 10px;
    }

    .item {
        width: 100%;
    }
}

/* Form group styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

textarea {
    resize: none;
    height: 100px;
}
.order{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 0;
    background: var(--dark);
    position: relative;
    height: 63px;
    width: 240px;
    padding: 0;
    outline: none;
    cursor: pointer;
    border-radius: 32px;
    -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    transition: all;
}

.order span{
    --o: 1;
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    top: 19px;
    line-height: 24px;
    color: var(--white);
    font-size: 16px;
    opacity: var(--o);
    transition: opacity 0.3s ease;
}

.order span.default{
    transition-delay: 0.3s;
}

.order span.success{
    --offset: 16px;
    --o: 0;
}

.order span.success svg{
    width: 12px;
    height: 10px;
    display: inline-block;
    vertical-align: top;
    fill: none;
    margin: 7px 0 0 4px;
    stroke: var(--green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: var(--offset);
    transition: stroke-dashoffset 0.3s ease;
}

.order:active{
    transform: scale(0.96);
}

.order .lines{
    opacity: 0;
    position: absolute;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    width: 6px;
    top: 30px;
    left: 100%;
    box-shadow: 15px 0 0 var(--white),
                30px 0 0 var(--white),
                45px 0 0 var(--white),
                60px 0 0 var(--white),
                75px 0 0 var(--white),
                90px 0 0 var(--white),
                105px 0 0 var(--white),
                120px 0 0 var(--white),
                135px 0 0 var(--white),
                150px 0 0 var(--white),
                165px 0 0 var(--white),
                180px 0 0 var(--white),
                195px 0 0 var(--white),
                210px 0 0 var(--white),
                225px 0 0 var(--white),
                240px 0 0 var(--white),
                255px 0 0 var(--white),
                270px 0 0 var(--white),
                285px 0 0 var(--white),
                300px 0 0 var(--white),
                315px 0 0 var(--white),
                330px 0 0 var(--white);
}

.order .back,
.order .box{
    --start: var(--white);
    --stop: var(--gray-light);
    border-radius: 2px;
    background: linear-gradient(var(--start), var(--stop));
    position: absolute;
}

.order .truck{
    width: 60px;
    height: 41px;
    left: 100%;
    z-index: 1;
    top: 11px;
    position: absolute;
    transform: translateX(24px);
}

.order .truck::before,
.order .truck::after{
    --r: -90deg;
    content: "";
    height: 2px;
    width: 20px;
    right: 58px;
    position: absolute;
    display: block;
    background: var(--white);
    border-radius: 1px;
    transform-origin: 100% 50%;
    transform: rotate(var(--r));
}

.order .truck::before{
    top: 4px;
}

.order .truck::after{
    --r: 90deg;
    bottom: 4px;
}

.order .truck .back{
    left: 0;
    top: 0;
    width: 60px;
    height: 41px;
    z-index: 1;
}

.order .truck .fronts{
    overflow: hidden;
    position: absolute;
    border-radius: 2px 9px 9px 2px;
    width: 26px;
    height: 41px;
    left: 60px;
}

.order .truck .fronts::before,
.order .truck .fronts::after{
    content: "";
    position: absolute;
    display: block;
}

.order .truck .fronts::before{
    height: 13px;
    width: 2px;
    left: 0;
    top: 14px;
    background: linear-gradient(var(--gray), var(--gray-dark));
}

.order .truck .fronts::after{
    border-radius:  2px 9px 9px 2px;
    background: var(--primary);
    width: 24px;
    height: 41px;
    right: 0
}

.order .truck .fronts .window{
    overflow: hidden;
    border-radius: 2px 8px 8px 2px;
    background: var(--primary-light);
    transform: perspective(4px) rotateY(3deg);
    width: 22px;
    height: 41px;
    position: absolute;
    top: 0;
    z-index: 1;
    transform-origin: 0 50%;
}

.order .truck .fronts .window::before,
.order .truck .fronts .window::after{
    content: "";
    position: absolute;
    right: 0;
}

.order .truck .fronts .window::before{
    top: 0;
    bottom: 0;
    width: 14px;
    background: var(--dark);
}

.order .truck .fronts .window::after{
    width: 14px;
    top: 7px;
    height: 4px;
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    transform: skewY(14deg);
    box-shadow:  0 7px 0 rgba(255, 255, 255, 0.14);
}

.order .truck .light{
    width: 3px;
    height: 8px;
    left: 83px;
    transform-origin: 100% 50%;
    position: absolute;
    border-radius: 2px;
    transform: scaleX(0.8);
    background: #f0dc5f;
}

.order .truck .light::before{
    content: "";
    height: 4px;
    width: 7px;
    opacity: 0;
    transform: perspective(2px) rotateY(-15deg) scaleX(0.94);
    position: absolute;
    transform-origin: 0 50%;
    left: 3px;
    top: 50%;
    margin-top: -2px;
    background: linear-gradient(90deg, #f0dc5f, rgba(240, 220, 95, 0.7), rgba(240, 220, 95, 0));
}

.order .truck .light.top{
    top: 4px;
}

.order .truck .light.bottom{
    bottom: 4px;
}

.order .box{
    --start:var(--sand-light);
    --stop: var(--sand);
    width: 21px;
    height: 21px;
    right: 100%;
    top: 21px;
}

.order .box::before, 
.order .box::after{
    content:  "";
    top: 10px;
    position: absolute;
    left: 0;
    right: 0;
}

.order .box::before{
    height: 3px;
    margin-top: -1px;
    background: rgba(0, 0, 0, 0.1);
}

.order .box::after{
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.order.animate .default{
    --o: 0;
    transition-delay: 0s;
}

.order.animate .success{
    --offset: 0;
    --o: 1;
    transition-delay: 7s;
}

.order.animate .success svg{
    transition-delay: 7.3s;
}

.order.animate .truck{
    -webkit-animation: truck 10s ease forwards;
    animation: truck 10s ease forwards;
}

.order.animate .truck::before {
    -webkit-animation: door1 2.4s ease forwards 0.3s;
    animation: door1 2.4s ease forwards 0.3s;
}

.order.animate .truck::after{
    -webkit-animation: door2 2.4s ease forwards 0.6s;
    animation: door2 2.4s ease forwards 0.6s;
}

.order.animate .truck .light::before,
.order.animate .truck .light::after{
    -webkit-animation: light 10s ease forwards;
    animation: light 10s ease forwards;
}

.order.animate .box{
    -webkit-animation: box 10s ease forwards;
    animation: box 10s ease forwards;
}

.order.animate .lines{
    -webkit-animation: lines 10s ease forwards;
    animation: lines 10s ease forwards;
}

@-webkit-keyframes truck {
    10%, 30%{
        transform: translateX(-164px);
    }

    40%{
       transform: translateX(-104px); 
    }

    60%{
        transform: translateX(-224px);
    }

    75%, 100%{
        transform: translateX(24px);
    }
}

@keyframes truck {
    10%, 30%{
        transform: translateX(-164px);
    }

    40%{
       transform: translateX(-104px); 
    }

    60%{
        transform: translateX(-224px);
    }

    75%, 100%{
        transform: translateX(24px);
    }
}

@-webkit-keyframes lines{
    0%, 30%{
        opacity: 0;
        transform: scaleY(0.7) translateX(0);
    }

    35%, 65%{
        opacity: 1;
    }

    70%{
        opacity: 0;
    }

    100%{
        transform: scaleY(0.7) translateX(-400px);
    }
}


@keyframes lines{
    0%, 30%{
        opacity: 0;
        transform: scaleY(0.7) translateX(0);
    }

    35%, 65%{
        opacity: 1;
    }

    70%{
        opacity: 0;
    }

    100%{
        transform: scaleY(0.7) translateX(-400px);
    }
}

@-webkit-keyframes light{
    0%, 30%{
        opacity: 0;
        transform: perspective(2px) rotateY(-15deg) scaleX(0.88);
    }

    40%, 100%{
        opacity: 1;
        transform: perspective(2px) rotateY(-15deg) scaleX(0.94);
    }
}

@keyframes light{
    0%, 30%{
        opacity: 0;
        transform: perspective(2px) rotateY(-15deg) scaleX(0.88);
    }

    40%, 100%{
        opacity: 1;
        transform: perspective(2px) rotateY(-15deg) scaleX(0.94);
    }
}

@-webkit-keyframes door1{
    30%, 50%{
        transform: rotate(32deg);
    }
}

@keyframes door1{
    30%, 50%{
        transform: rotate(32deg);
    }
}

@-webkit-keyframes door2{
    30%, 50%{
        transform: rotate(-32deg);
    }
}

@keyframes door2{
    30%, 50%{
        transform: rotate(-32deg);
    }
}

@-webkit-keyframes box{
    8%, 10%{
        transform: translateX(40px);
        opacity: 1;
    }

    25%{
        transform: translateX(112px);
        opacity: 1;
    }

    26%{
        transform: translateX(112px);
        opacity: 0;
    }

    27%, 100%{
        transform: translateX(0px);
        opacity: 0;
    }
}


@keyframes box{
    8%, 10%{
        transform: translateX(40px);
        opacity: 1;
    }

    25%{
        transform: translateX(112px);
        opacity: 1;
    }

    26%{
        transform: translateX(112px);
        opacity: 0;
    }

    27%, 100%{
        transform: translateX(0px);
        opacity: 0;
    }
}
