html {
    overflow-x: hidden;
}

body {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    height: 3800px;
    position: relative;
}

/* Responsive scaling: keeps the exact design and zooms the whole page to fit
   any screen width. Driven by the script at the bottom of the HTML. */
.scale-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 3800px;
    transform-origin: top left;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 70px;
    background-color: #212121;
    opacity: 0.9;
}

.header-logo {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.header-logo img {
    width: 70px;
    height: auto;
}

.site-header a {
    text-decoration: none;
}

.header-name {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 30px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 30px;
    color: #fffdf4;
    /* offset half a letter-spacing so the wide tracking stays optically centered */
    padding-left: 30px;

}

.social-media {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== In-stock ("მარაგში") section ===== */
.news {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    font-family: 'Noto Sans Georgian', sans-serif;
}

.news-title {
    text-align: center;
    font-family: 'Noto Serif Georgian', serif;
    font-weight: 500;
    font-size: 50px;
    letter-spacing: 12px;
    color: #212121;
    margin: 0 0 10px;
    text-transform: uppercase;
    /* nudge to keep the wide tracking optically centered */
    text-indent: 12px;
}

/* red underline accent matching the site's sale theme */
.news-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 5px;
    margin: 18px auto 0;
    background-color: rgb(150, 1, 1);
    border-radius: 3px;
}

.news-subtitle {
    text-align: center;
    font-family: 'Noto Serif Georgian', serif;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 6px;
    color: grey;
    margin: 14px 0 0;
    text-transform: uppercase;
    text-indent: 6px;
}

/* thin line separating the title block from the products */
.news-divider {
    border: none;
    border-top: 1px solid #e2e2e2;
    max-width: 1120px;
    margin: 40px auto 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.news-card {
    display: flex;
    flex-direction: column;
}

.news-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
}

/* two stacked pictures: first is shown, second appears on hover */
.news-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.news-text {
    display: flex;
    justify-content: center;
    top: 500px;
}

.news-text h2{
    text-align: center;
    font-family: 'Noto Serif Georgian', serif; 
    font-weight: 350;
}
.news-thumb img:first-of-type  { opacity: 1; }
.news-thumb img:nth-of-type(2) { opacity: 0; }

.news-thumb:hover img:first-of-type  { opacity: 0; }
.news-thumb:hover img:nth-of-type(2) { opacity: 1; }
.news-thumb:hover img { transform: scale(1.05); }

.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background-color: rgb(150, 1, 1);
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    transform-origin: top left;
    transition: transform 0.8s ease;
}

/* badge zooms in sync with the picture on hover */
.news-thumb:hover .stock-badge {
    transform: scale(1.05);
}

/* minimalist yellow "1+1" pair-deal badge, top-right so it sits opposite
   the red percentage badge */
.news-badge.deal {
    left: auto;
    right: 12px;
    transform-origin: top right;
    background-color: #f4c430;
    color: #212121;
}

.news-name {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1px;
    color: #212121;
    margin: 16px 0 6px;
}



/* minimalist "end of products" ornament: thin line + small red diamond */
.news-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 700px;
    margin: 50px auto 0;
    margin-top: 200px;
}

.news-end-line {
    flex: 1;
    height: 1px;
    background-color: #e2e2e2;
}

.news-end-dot {
    width: 7px;
    height: 7px;
    background-color: rgb(150, 1, 1);
    transform: rotate(45deg);
}

/* ===== Footer section (copied from GEORGETTI.html, top offsets rebased -3000px
   so the block sits right under the header instead of 3000px down the page) ===== */
.footer-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1500px;
    overflow: hidden;
}

.company-name-2 {
    position: absolute;
    top: 500px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
    color: rgb(255, 255, 255);
    text-align: center;
    text-transform: uppercase;
    font-size: 250px;
    letter-spacing: 5px;
}

.minaweri {
    position: absolute;
    top: 938px;
    left: 20%;
    transform: translateX(-50%);
    color: rgb(255, 255, 255);
    text-align: center;
    font-size: 20px;
    letter-spacing: 2px;
}

.underline {
    text-decoration: underline;
    text-decoration-color: rgb(150, 1, 1);
    text-decoration-thickness: 8px;
    text-underline-offset: 15px;
}

.misamarti {
    position: absolute;
    top: 510px;
    left: 20%;
    transform: translateX(-50%);
    color: rgb(0, 0, 0);
    font-family: 'Noto Sans Georgian', sans-serif;
    text-align: center;
    width: auto;
}

.misamarti h4,
.misamarti h6 {
    text-align: center;
    margin: 0 auto;
    width: 45%;
}

.misamarti h4 {
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: rgb(0, 0, 0);
}

.misamarti h6 {
    color: grey;
}

.dagvikavshirdit {
    position: absolute;
    top: 510px;
    left: 47%;
    transform: translateX(-50%);
    color: rgb(0, 0, 0);
    font-family: 'Noto Sans Georgian', sans-serif;
    text-align: center;
    width: auto;
}

.dagvikavshirdit h4,
.dagvikavshirdit h6 {
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.dagvikavshirdit h4 {
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.dagvikavshirdit h6 {
    color: grey;
}

.samushao-saatebi {
    position: absolute;
    top: 510px;
    left: 75%;
    transform: translateX(-50%);
    color: rgb(0, 0, 0);
    font-family: 'Noto Sans Georgian', sans-serif;
    text-align: center;
    width: auto;
}

.samushao-saatebi h4,
.samushao-saatebi h6 {
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.samushao-saatebi h4 {
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.samushao-saatebi h6 {
    color: grey;
}

.map {
    position: absolute;
    color: rgb(0, 0, 0);
    top: 10px;
    width: 100%;
    transform: translateX(-50%);
    text-align: center;
    left: 50%;
    display: flex;
    justify-content: center;
    border-top: 2px solid #000;
    filter: grayscale(100%) hue-rotate(180deg) brightness(100%) contrast(90%);
}

.hr4 {
    position: absolute;
    top: 700px;
    color: black;
    width: 100%;
    border: none;
    border-bottom: 800px solid black;
}

.footer1 {
    position: absolute;
    top: 1050px;
    left: 36%;
    transform: translateX(-50%);
    color: rgb(255, 255, 255);
    text-align: center;
    font-family: 'Noto Sans Georgian', sans-serif;
    width: 1%;
}

.footer1 h5 {
    color: grey;
}

.footer2 {
    position: absolute;
    top: 1050px;
    right: 90%;
    transform: translateX(-50%);
    color: rgb(255, 255, 255);
    text-align: center;
    font-family: 'Noto Sans Georgian', sans-serif;
    width: 1%;
}

.footer2 h5 {
    color: grey;
}

.footer3 {
    position: absolute;
    top: 1050px;
    left: 23%;
    transform: translateX(-50%);
    color: rgb(255, 255, 255);
    text-align: center;
    font-family: 'Noto Sans Georgian', sans-serif;
    width: 1%;
}

.footer3 h5 {
    color: grey;
}

.footer4text {
    position: absolute;
    color: rgb(255, 255, 255);
    top: 1060px;
    right: 200px;
    font-family: 'Noto Sans Georgian', sans-serif;
    font-size: 8px;
}

.footer4 {
    position: absolute;
    top: 1110px;
    right: 200px;
    display: flex;
    gap: 15px;
}

.footer4 img {
    height: 30px;
    width: 30px;
}

.vl1 {
    position: absolute;
    top: 505px;
    left: 630px;
    transform: translateX(-50%);
    height: 80px;
    border-left: 2px solid rgb(0, 0, 0);
}

.vl2 {
    position: absolute;
    top: 505px;
    left: 1170px;
    transform: translateX(-50%);
    height: 80px;
    border-left: 2px solid rgb(0, 0, 0);
}
