/* ============================================
   Terlikevim - Cartoon Store (Full Redesign)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(175deg, #74c6f0 0%, #9ed8f8 45%, #b8e8c8 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ======= CLOUDS ======= */
.clouds-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.cloud { position: absolute; background: #fff; border-radius: 60px; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.c1 { width: 110px; height: 38px; top: 8%; animation: cloudMove 55s linear infinite; left: -130px; }
.c1::before { width: 48px; height: 48px; top: -24px; left: 14px; }
.c1::after  { width: 65px; height: 65px; top: -32px; right: 12px; }
.c2 { width: 150px; height: 48px; top: 22%; animation: cloudMove 72s linear infinite -22s; left: -180px; }
.c2::before { width: 62px; height: 62px; top: -31px; left: 18px; }
.c2::after  { width: 82px; height: 82px; top: -41px; right: 16px; }
.c3 { width: 90px;  height: 30px; top: 5%;  animation: cloudMove 42s linear infinite -8s;  left: -110px; }
.c3::before { width: 38px; height: 38px; top: -19px; left: 10px; }
.c3::after  { width: 52px; height: 52px; top: -26px; right: 8px; }
@keyframes cloudMove { 0%{transform:translateX(0)} 100%{transform:translateX(120vw)} }

/* ======= FLOATING CART ======= */
.fcart {
    position: fixed; top: 18px; right: 18px; z-index: 9999;
    background: #eed95b; border: 3px solid #2b2725; border-radius: 50px;
    padding: 9px 15px; display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 1rem; cursor: pointer;
    box-shadow: 4px 4px 0 #2b2725; transition: transform .2s;
}
.fcart:hover { transform: scale(1.06); }
.fcart-badge {
    background: #c93e2a; color: #fff; border: 2px solid #2b2725;
    border-radius: 50%; width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
@keyframes wobble {
    0%,100%{transform:scale(1) rotate(0)} 25%{transform:scale(1.22) rotate(-12deg)} 75%{transform:scale(1.22) rotate(12deg)}
}
.wobble { animation: wobble .55s ease; }

/* ======= PAGE WRAP ======= */
.wrap {
    position: relative; z-index: 10;
    max-width: 840px; width: 96%;
    margin: 0 auto; padding-bottom: 30px;
}

/* ======= ROOF ======= */
.roof-section { position: relative; }

.chimney {
    position: absolute; top: -52px; right: 16%;
    width: 60px; height: 100px;
    background: #9c2918; border: 3px solid #2b2725; border-radius: 5px;
    box-shadow: 4px 4px 0 #2b2725; z-index: 4;
}
.chimney::before {
    content: ''; position: absolute; top: -13px; left: -8px;
    width: 76px; height: 20px; background: #6b1810;
    border: 3px solid #2b2725; border-radius: 4px;
}
.smoke {
    position: absolute; top: -58px; right: 14px;
    width: 24px; height: 24px; background: rgba(255,255,255,.78);
    border-radius: 50%; filter: blur(4px);
    animation: puff 5.5s ease-in-out infinite;
}
@keyframes puff {
    0%   { transform: translateY(22px) scale(.2); opacity: 0; }
    35%  { opacity: .85; }
    100% { transform: translateY(-68px) translateX(-14px) scale(1.8); opacity: 0; }
}

.roof-svg { width: 100%; display: block; position: relative; z-index: 3; }

/* Logo sign on ridge */
.logo-board {
    position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
    background: #fff; border: 3.5px solid #2b2725; border-radius: 38px;
    padding: 5px 40px; z-index: 30; white-space: nowrap;
    box-shadow: 5px 5px 0 #2b2725;
}
.logo-board h1 {
    font-size: 2.8rem; font-weight: 900; color: #2b2725; margin: 0;
    text-shadow: 3px 3px 0 #eed95b; letter-spacing: -1px;
}

/* ======= FACADE WALL ======= */
.facade {
    background: #f7df96;
    border-left: 16px solid #b3793e;
    border-right: 16px solid #b3793e;
    border-bottom: 14px solid #b3793e;
    border-radius: 0 0 14px 14px;
    box-shadow: 8px 8px 0 #2b2725;
    padding: 30px 24px 0 24px;
    position: relative; overflow: visible; z-index: 3;
}

/* Brick texture on facade sides (pseudo overlay) */
.facade::before, .facade::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 40px;
    background-color: #d4734a;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 14px, #2b2725 14px, #2b2725 16px),
        repeating-linear-gradient(90deg, transparent, transparent 18px, #2b2725 18px, #2b2725 20px);
    background-size: 40px 16px;
    z-index: 1;
}
.facade::before { left: -16px; }
.facade::after  { right: -16px; }

/* ======= NAV BAR ======= */
.nav-bar {
    background: #c93e2a;
    border-top: 3px solid #2b2725; border-bottom: 3px solid #2b2725;
    margin: 22px -24px 26px -24px;
    padding: 8px 24px;
    display: flex; justify-content: space-around; align-items: center;
    position: relative; z-index: 5;
}
.nav-bar a {
    color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 700;
    text-shadow: 1px 2px 0 rgba(0,0,0,.4); padding: 2px 8px; border-radius: 7px;
    transition: background .2s, color .2s;
}
.nav-bar a:hover { background: #fff; color: #c93e2a; text-shadow: none; }
.nav-sep { color: rgba(255,255,255,.5); font-size: 1.3rem; font-weight: 200; }

/* ======= UPPER WINDOWS ======= */
.upper-wins {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
    position: relative; z-index: 5; margin-bottom: 0;
}
.win-col { display: flex; flex-direction: column; align-items: center; }
.win-arch {
    width: 100%; max-width: 175px; height: 118px;
    border: 3px solid #2b2725; border-radius: 55px 55px 6px 6px;
    box-shadow: 4px 4px 0 #2b2725; overflow: hidden; position: relative;
    background: #ddd;
}
.win-arch svg { width: 100%; height: 100%; }
/* Windowsill ledge */
.win-sill {
    width: 108%; height: 12px;
    background: #e8d07a; border: 2.5px solid #2b2725; border-radius: 3px;
    box-shadow: 2px 2px 0 #2b2725; margin-top: -2px;
}
.win-label {
    background: #fff; border: 2.5px solid #2b2725; border-radius: 22px;
    padding: 2px 12px; margin-top: 6px; font-size: .9rem; font-weight: 700;
    box-shadow: 2px 2px 0 #2b2725; white-space: nowrap;
    width: 100%; max-width: 175px; text-align: center;
}
.win-label.blue  { color: #1b4965; }
.win-label.pink  { color: #c41060; }
.win-label.green { color: #1d6b18; }
.win-label.teal  { color: #0a7060; }

/* ======= MIDDLE ROOF OVERHANG ======= */
.mid-overhang {
    position: relative;
    margin: 22px -24px 0 -24px;
    z-index: 6;
}
/* The red overhang body */
.mid-roof-body {
    height: 30px; background: #c93e2a;
    border-top: 3.5px solid #2b2725; border-bottom: 3.5px solid #2b2725;
    position: relative; z-index: 2;
}
/* Scalloped/kiremit bottom edge of mid-roof */
.mid-roof-scallop {
    height: 20px; overflow: hidden; position: relative; z-index: 2;
}
.mid-roof-scallop svg { width: 100%; height: 20px; display: block; }

/* "Hadi İçeri Gel!" sign centered on mid-roof */
.mid-sign {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: #eed95b; border: 3px solid #2b2725; border-radius: 14px;
    padding: 3px 20px; font-weight: 800; font-size: 1rem; z-index: 10;
    box-shadow: 3px 3px 0 #2b2725; white-space: nowrap;
}

/* ======= GROUND FLOOR ======= */
.ground-floor {
    display: grid; grid-template-columns: 1fr 180px 1fr;
    gap: 20px; align-items: flex-end;
    padding: 26px 0 0 0;
    position: relative; z-index: 5;
}
.ground-win-col {
    display: flex; justify-content: center;
}
.ground-win-arch {
    width: 100%; height: 138px;
    border: 3px solid #2b2725; border-radius: 55px 55px 6px 6px;
    box-shadow: 4px 4px 0 #2b2725; overflow: hidden;
}
.ground-win-arch svg { width: 100%; height: 100%; }

/* ======= DOOR ======= */
.door-col {
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 10;
}
.door-top-sign {
    background: #eed95b; border: 3px solid #2b2725;
    border-radius: 12px 12px 0 0; box-shadow: 2px 2px 0 #2b2725;
    padding: 4px 16px; font-weight: 800; font-size: .95rem; z-index: 5;
    margin-bottom: -3px;
}
.door-frame {
    width: 175px; height: 200px;
    border: 3px solid #2b2725; border-bottom: none;
    border-top-left-radius: 90px 100%; border-top-right-radius: 90px 100%;
    background: #2e1508; position: relative; perspective: 800px;
}
.door-inside {
    position: absolute; inset: 0;
    border-top-left-radius: 88px 100%; border-top-right-radius: 88px 100%;
    background: radial-gradient(ellipse, #7a4f2a 30%, #2e1508 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; text-align: center; padding: 12px; z-index: 1; gap: 3px;
}
.coupon-tag {
    background: #eed95b; color: #2b2725; border: 2px solid #2b2725;
    border-radius: 8px; font-weight: 800; padding: 2px 10px; font-size: .85rem;
}
.door-panel {
    position: absolute; inset: 0; cursor: pointer;
    background: #9a5520;
    background-image: repeating-linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.06) 1px, transparent 1px, transparent 12px);
    border: 3px solid #2b2725; border-bottom: none;
    border-top-left-radius: 88px 100%; border-top-right-radius: 88px 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transform-origin: left center; transition: transform .85s cubic-bezier(.35,0,.2,1);
    z-index: 5; gap: 8px;
}
.door-panel::before {
    content: ''; position: absolute; inset: 8px;
    border: 2px dashed rgba(255,255,255,.18);
    border-top-left-radius: 80px 100%; border-top-right-radius: 80px 100%;
}
.door-knob {
    position: absolute; right: 16px; top: 54%;
    width: 14px; height: 14px; background: #eed95b;
    border: 3px solid #2b2725; border-radius: 50%;
}
.door-cta {
    background: #c93e2a; color: #fff; border: 3px solid #2b2725;
    border-radius: 9px; padding: 5px 14px; font-weight: 800; font-size: .9rem;
    box-shadow: 2px 2px 0 #2b2725; pointer-events: none; font-family: 'Fredoka', sans-serif;
}
.door-frame.open .door-panel { transform: rotateY(-118deg); }

/* Wall lanterns (beside door) */
.lantern {
    position: absolute; width: 30px; top: 30px;
    z-index: 8; filter: drop-shadow(2px 2px 0 #2b2725);
}
.lantern-l { left: -40px; }
.lantern-r { right: -40px; }

/* Potted plants (beside door at base) */
.plant {
    position: absolute; width: 58px; bottom: -8px; z-index: 12;
}
.plant-l { left: -70px; }
.plant-r { right: -70px; }

/* ======= BRICK BASE at facade bottom ======= */
.brick-base {
    height: 42px; margin: 8px -24px 0 -24px;
    background: #b02e1e;
    border-top: 3.5px solid #2b2725;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 34px, rgba(0,0,0,.35) 34px, rgba(0,0,0,.35) 37px),
        repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(0,0,0,.35) 12px, rgba(0,0,0,.35) 15px);
    background-size: 74px 21px;
    border-radius: 0 0 8px 8px;
}

/* ======= OUTDOOR GROUND SECTION (TV + Carpet + Phone) ======= */
.outdoor-ground {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 0;
    margin-top: 10px;
    z-index: 5;
}

/* CRT TV (left of carpet) */
.outdoor-tv {
    flex-shrink: 0;
    width: 148px;
    position: relative;
    z-index: 15;
    margin-right: -20px;  /* overlap carpet slightly */
    margin-bottom: 25px;
    filter: drop-shadow(4px 4px 2px rgba(0,0,0,.3));
}

/* Phone + table (right of carpet) */
.outdoor-phone {
    flex-shrink: 0;
    width: 138px;
    position: relative;
    z-index: 15;
    margin-left: -20px;  /* overlap carpet slightly */
    margin-bottom: 25px;
    filter: drop-shadow(4px 4px 2px rgba(0,0,0,.3));
}

/* ======= CARPET SECTION ======= */
.carpet-section {
    flex: 1;
    position: relative;
    z-index: 10;
}

.carpet-body {
    background: #e85535;
    border: 3.5px solid #2b2725;
    border-radius: 50% / 40px;   /* oval oval shape */
    padding: 22px 18px 24px 18px;
    position: relative;
    background-image:
        radial-gradient(#eed95b 13%, transparent 14%),
        radial-gradient(#eed95b 13%, transparent 14%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    box-shadow: 6px 6px 0 #2b2725;
}

/* Fringe at bottom of carpet */
.carpet-body::after {
    content: '';
    position: absolute; bottom: -13px; left: 10%; right: 10%;
    height: 13px;
    background: repeating-linear-gradient(90deg,
        #f7df96, #f7df96 6px, transparent 6px, transparent 12px);
    border-left: 3px solid #2b2725; border-right: 3px solid #2b2725;
}

/* ======= PRODUCTS ON CARPET ======= */
.carpet-products {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
}
.prod-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: rgba(255,255,255,.12);
    border-radius: 16px; padding: 8px 6px 10px;
    backdrop-filter: blur(2px);
}
.prod-slipper {
    width: 100%; height: 88px; display: flex; align-items: flex-end; justify-content: center;
    margin-bottom: 6px;
}
.prod-slipper svg { width: 100%; max-height: 86px; filter: drop-shadow(3px 4px 2px rgba(0,0,0,.3)); }
.prod-name { font-size: .82rem; font-weight: 700; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.4); margin-bottom: 2px; line-height: 1.2; }
.prod-price { font-size: 1.1rem; font-weight: 900; color: #ffe04a; text-shadow: 1px 1px 0 #c93e2a; margin-bottom: 6px; }
.prod-price sup { font-size: .7rem; vertical-align: super; }
.add-btn {
    background: #3e7ecf; color: #fff; border: 2.5px solid #fff;
    border-radius: 20px; padding: 4px 10px; font-weight: 700; font-size: .78rem;
    cursor: pointer; box-shadow: 2px 2px 0 rgba(0,0,0,.25);
    font-family: 'Fredoka', sans-serif; display: flex; align-items: center; gap: 5px;
    width: 100%; justify-content: center; transition: all .15s;
}
.add-btn:hover { background: #eed95b; color: #2b2725; border-color: #2b2725; transform: translateY(-2px); }
.add-btn:active { transform: translateY(1px); }

/* ======= FEATURES BAR ======= */
.features-bar {
    background: #eed95b; border: 3.5px solid #2b2725; border-radius: 14px;
    box-shadow: 5px 5px 0 #2b2725; padding: 14px 20px;
    display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
    margin-top: 18px;
}
.feat-item { display: flex; align-items: center; gap: 10px; }
.feat-icon {
    background: #fff; border: 2.5px solid #2b2725; border-radius: 50%;
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; box-shadow: 3px 3px 0 rgba(0,0,0,.12);
}
.feat-icon svg { width: 28px; height: 28px; }
.feat-label { font-size: 1rem; font-weight: 800; color: #2b2725; }

/* ======= FOOTER ======= */
.site-footer {
    background: #efe7d5; border-top: 3.5px solid #2b2725;
    padding: 20px 20px 14px; margin-top: 20px;
}
.footer-inner {
    max-width: 840px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
/* Contact card */
.contact-card {
    background: #fff; border: 3px solid #2b2725; border-radius: 14px;
    box-shadow: 4px 4px 0 #2b2725; width: 230px;
    position: relative; overflow: hidden; cursor: pointer;
    padding: 10px 12px 34px 14px;
}
.contact-inner { display: flex; align-items: center; gap: 8px; }
.contact-phone-svg { width: 72px; flex-shrink: 0; }
.contact-lbl { font-size: 1.05rem; font-weight: 800; color: #2b2725; }
.contact-strip {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: #25d366; border-top: 2.5px solid #2b2725;
    color: #fff; font-weight: 800; font-size: .9rem;
    padding: 4px 0; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
/* Footer nav */
.footer-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: #2b2725; text-decoration: none; font-size: .95rem; font-weight: 700; transition: color .2s; }
.footer-nav a:hover { color: #c93e2a; }
.footer-dot { color: #aaa; font-size: .75rem; }
/* Social */
.socials { display: flex; gap: 10px; }
.soc-btn {
    width: 42px; height: 42px; border: 2.5px solid #2b2725; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; text-decoration: none;
    box-shadow: 3px 3px 0 #2b2725; transition: transform .2s;
}
.soc-btn:hover { transform: translateY(-3px); color: #fff; }
.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.fb { background: #3b5998; }
.wa { background: #25d366; }

.footer-copy {
    text-align: center; margin-top: 14px; padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,.15); font-size: .8rem; color: #7b7167;
}

/* ======= FLY ANIMATION ======= */
.fly-item {
    position: fixed; pointer-events: none; z-index: 9999;
    transition: all .72s cubic-bezier(.2,1,.4,1);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 720px) {
    .upper-wins { grid-template-columns: repeat(2,1fr); }
    .ground-floor { grid-template-columns: 1fr; gap: 20px; }
    .door-col { width: 150px; margin: 0 auto; }
    .outdoor-ground { flex-direction: column; align-items: center; }
    .outdoor-tv, .outdoor-phone { margin: 0; }
    .carpet-products { grid-template-columns: repeat(2,1fr); }
    .features-bar { grid-template-columns: repeat(2,1fr); }
    .footer-inner { flex-direction: column; text-align: center; }
    .plant-l, .plant-r, .lantern-l, .lantern-r { display: none; }
}
