/* Root Variables */
:root {
    --primary-color: #f7c900;
    --secondary-color: #645f5f;
    --accent-color:  #491502; 
    --background: #ffffff; 
    --text-color: #2b2b2b; 
    --light-gray: #f8f8f8; 
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
        overflow-x: hidden;
}

body {
    font-family: "Cairo", sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    overflow-x: hidden;
    max-width: 100vw;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 15px;
}
::-webkit-scrollbar-track {
    background-color: var(--light-gray);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Container */
.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Row */
.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Button */
.btn {
    background: var(--secondary-color);
    color: var(--background);
    border: none;
    padding: 15px 20px;
    font-size: 19px;
    letter-spacing: 1.2px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 25px;
    font-family: "Cairo", sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    left: 0;
    top: 0;
    z-index: -1;
    transition: all 0.3s ease;
    border-radius: 25px;
}

.btn:hover::before,
.btn:active::before {
    width: 100%;
}

.btn:hover,
.btn:active {
    color: var(--accent-color);
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
        margin: 0 auto;
    }
    .row {
        gap: 20px;
    }
    .btn {
        padding: 8px 16px;
        font-size: 14px;
        width: auto;
        max-width: 200px;
    }
    * {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {
    .row {
        flex-direction: column;
        gap: 20px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 750px;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 970px;
    }
}

/* Navigation */
header nav {
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
}
header nav .brand {
    color: var(--primary-color);
    letter-spacing: 1.5px;
    font-family: "Merriweather", serif;
    font-size: 24px;
    cursor: pointer;
}
header nav .brand span {
    color: var(--secondary-color);
}
header nav .list {
    display: flex;
    gap: 25px;
}
header nav .icon {
    display: flex;
    gap: 15px;
}
header nav .icon a {
    font-size: 16px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
header nav .icon a:hover,
header nav .icon a:focus {
    color: var(--primary-color);
}
header nav .list .item {
    position: relative;
    padding: 15px 0;
}
header nav .list .item a {
    color: var(--secondary-color);
    font-size: 15px;
    text-transform: uppercase;
    padding: 8px 4px;
    transition: all 0.3s ease;
}
header nav .list .item a:hover,
header nav .list .item a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}
header nav .list .item:nth-child(3)::after {
    content: 'New';
    position: absolute;
    background-color: var(--primary-color);
    color: var(--background);
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 12px;
    top: -10px;
    left: 55px;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}
header nav .list .item:hover:nth-child(3)::after {
    background-color: var(--accent-color);
}
header nav .list .dropdown {
    position: absolute;
    background-color: var(--background);
    width: 180px;
    padding: 15px;
    top: 60px;
    border-top: 2px solid var(--primary-color);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
header nav .list .item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    top: 70px;
}
header nav .list .item .dropdown .drop a {
    color: var(--secondary-color);
    font-size: 13px;
    display: block;
    padding: 8px 0;
    transition: color 0.3s ease;
}
header nav .list .item .dropdown .drop:not(:last-child) a {
    border-bottom: 1px solid #eee;
}
header nav .list .item .dropdown .drop a:hover {
    color: var(--primary-color);
}
header nav .toggle-menu {
    display: none;
    font-size: 22px;
    color: var(--secondary-color);
    cursor: pointer;
}

@media (max-width: 767px) {
    header nav .list {
        display: none;
        position: absolute;
        top: 50px;
        left: 5px;
        width: 40%;
        background-color: rgba(43 43 43 / .8);
        flex-direction: column;
        padding: 5px 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }
    header nav .toggle-menu {
        display: block;
    }
    header nav .toggle-menu:hover ~ .list,
    header nav .list:hover {
        display: flex;
    }
    header nav .list .item {
        padding: 2px 0;
    }
    header nav .list .item a {
        font-size: 16px;
        padding: 0 10px  ;
        color: var(--background);
    }
    header nav .list .dropdown {
        display: none !important;
    }
    header nav .list .item:nth-child(3)::after {
        display: none;
    }
}
@media(max-width:480px) {
        header nav .list {
        width: 50%; 
        left: 10px;
    }
    header nav .list .item a {
        font-size: 14px;
        padding: 0 8px;
    }
}

/* Header Content */
.header-content {
    background-color: var(--light-gray);
    padding: 80px 0;
}
.header-content .row {
    gap: 60px;
    padding: 20px 0;
}
.header-content .content {
    max-width: 500px;
    animation: contentleft 0.8s ease forwards;
}

@keyframes contentleft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.header-content .content h1 {
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--accent-color);
    animation: fadein 1s ease forwards 0.8s;
}
.header-content .content p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: var(--secondary-color);
    animation: fadein 1s ease forwards 1.6s;
}
.header-content .content .btn {
    animation: fadein 1s ease forwards 2.4s;
}

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

.header-content .img-header {
    max-width: 600px;
}
.header-content .img-header img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
    animation: image 3s ease-in-out infinite alternate;
}

@keyframes image {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

@media (max-width: 767px) {
    .header-content {
        padding: 40px 0;
    }
    .header-content .row {
        gap: 30px;
    }
    .header-content .content {
        max-width: 100%;
        text-align: center;
    }
    .header-content .content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .header-content .content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .header-content .img-header {
        max-width: 100%;
        order: -1;
    }
    .header-content .img-header img {
        height: 300px;
    }
}
@media (max-width:480px) {
    .header-content .row {
        gap: 15px;
        padding: 10px 0;
    }
    
    .header-content .content h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .header-content .content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
}

/* New Product */
.new-product {
    padding: 120px 0;
}
.new-product .title {
    margin-bottom: 40px;
}
.new-product .title h2 {
    font-size: 40px;
    color: var(--accent-color);
}
.new-product .row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}
.new-product .product {
    text-align: center;
    max-width: 400px;
    flex: 1;
}
.new-product .product .img-product {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}
.new-product .product .img-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.new-product .product:hover .img-product img {
    transform: scale(1.05);
}
.new-product .product .content-product {
    margin: 20px 0;
}
.new-product .product .content-product a {
    color: var(--secondary-color);
    font-size: 22px;
    font-weight: 600;
    transition: color 0.3s ease;
}
.new-product .product:hover .content-product a {
    color: var(--accent-color);
}
.new-product .product .content-product p {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 767px) {
    
        .new-product .row {
        flex-direction: column;
        align-items: center;
    }
    .new-product .product {
        width: 300px;
    }
    .new-product .title {
    text-align: center;
    margin-bottom: 20px;
    }
    .new-product .title h2 {
        font-size: 28px;
    }
    .new-product .product .img-product {
        height: 300px;
    }
    .new-product .product .content-product a {
        font-size: 18px;
    }
    .new-product .product .content-product p {
        font-size: 16px;
    }
}
@media (max-width:480px) {
    .new-product .row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .new-product .product {
        width: 100%;
        max-width: 280px;
    }
}

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 30px;
    margin-bottom: 60px;
}
.grid-container .item {
    overflow: hidden;
    border-radius: 8px;
}
.grid-container .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}
.grid-container .item:hover img {
    transform: scale(1.05);
    filter: brightness(90%);
}
.grid-container .item:nth-child(1) {
    grid-column: 1/3;
    grid-row: 1/3;
}
.grid-container .item:nth-child(2) {
    grid-row: 1/3;
}

@media (max-width: 767px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 200px);
        gap: 15px;
    }
    .grid-container .item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    .grid-container .item:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 3 / 5;
    }
    .grid-container .item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    .grid-container .item:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
    }
}

@media (max-width:480px) {
    .grid-container {
        grid-template-columns: 1fr; 
        grid-template-rows: repeat(4, 200px);
        gap: 10px;
        margin: 0 auto 40px;
        padding: 0 10px;
    }
    .grid-container .item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    .grid-container .item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    .grid-container .item:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }
    .grid-container .item:nth-child(4) {
        grid-column: 1;
        grid-row: 4;
    }
}

/* Popular */
.popular {
    padding: 100px 0;
}
.popular h2 {
    font-weight: 400;
    font-size: 30px;
}
.popular .title {
    font-size: 15px;
    text-align: center;
    margin: 0 auto 60px;
    line-height: 1.6;
    color: var(--secondcolor);
}
.popular .title h2 {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.popular .title p {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    white-space: normal;
}
.popular .pairent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 40px;
}
.popular .pairent .child .box-top {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
}
.popular .pairent .child .box-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 4px solid var(--primary-color);
}
.popular .pairent .child .box-top .link-card {
    position: absolute;
    background-color: var(--primary-color);
    color: #fff;
    width: 100%;
    padding: 13px;
    text-align: center;
    bottom: -100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: all .4s ease;
}
.popular .pairent .child:hover .box-top .link-card {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}
.popular .pairent .child .box-top .link-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--secondary-color);
    opacity: 0;
    transition: all 0.3s ease;
}
.popular .pairent .child:hover .box-top .link-icon {
    opacity: 1;
    color: var(--accent-color);
}
.popular .pairent .child .box-bottom {
    text-align: center;
    margin-top: 30px;
}
.popular .pairent .child .box-bottom .link-bottom {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary-color);
}
.popular .pairent .child .box-bottom p {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 10px;
}
.popular .pairent .child:nth-child(7) {
    grid-column: 2/3;
    margin: 45px auto 0 ;
}

@media (max-width: 767px) {
    .popular .pairent {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .popular .title p {
        font-size: 16px;
        max-width: 90%;
    }
    .popular .pairent .child .box-top {
        height: 250px;
    }
        .popular .pairent .child .box-bottom {
        margin-top: 15px;
    }
    .popular .pairent .child:nth-child(7) {
        grid-column: 1 / -1;
        margin: 20px auto 0;
        text-align: center;
    }
    .popular .pairent .child:nth-child(7) .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .popular .pairent {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%; 
        max-width: 100%;
    }
        .popular .title p {
        font-size: 15px;
        max-width: 80%;
    }
    .popular .pairent .child {
        width: 100%;
        max-width: 300px; 
        margin: 0 auto; 
    }
    .popular .title {
        width: 100%; 
        max-width: 90%;
        margin: 0 auto 40px;
        padding: 0 10px;
    }
    .popular .title p {
        font-size: 15px;
        max-width: 100%;
        line-height: 1.5;
    }
}
/* Background Video */
.bg-video {
    background-image: url(../img/17.jpg);
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bg-video::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.bg-video:hover::before {
    background-color: rgba(0, 0, 0, 0.5);
}
.bg-video .btn-icon {
    width: 80px;
    height: 80px;
    background: none;
    color: var(--background);
    border: 3px solid var(--background);
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 1;
}
.bg-video:hover .btn-icon {
    transform: scale(1.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.bg-video .next-video {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    left: 0;
    bottom: 0;
    gap: 45px;
    color: var(--background);
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 25px 80px;
    transition: all 0.3s ease;
}
.bg-video .next-video .arrow {
    font-size: 20px;
    color: var(--background);
        transition: all 0.3s ease;
    margin-left: 20px;
}
.bg-video:hover .next-video .arrow {
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .bg-video {
        height: 400px;
    }
    .bg-video .btn-icon {
        width: 60px;
        height: 60px;
        font-size: 16px;
    }
    .bg-video .next-video{
        padding: 15px 30px;
    }
}

@media(max-width:480px) {
        .bg-video .next-video {
        padding: 10px 20px;
        font-size: 14px;
        gap: 20px;
    }
}

/* Show Accessories */
.show-accessories {
    padding: 150px 0;
}
.show-accessories .grid-accessories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 120px 55px;
    align-items: center;
}
.show-accessories .grid-accessories .content h2 {
    font-size: 42px;
    color: var(--accent-color);
    margin-bottom: 30px;
}
.show-accessories .grid-accessories .content p {
    font-size: 16px;
    color: var(--secondary-color);
    line-height: 1.5;
    max-width: 70%;
    margin-bottom: 30px;
}
.show-accessories .grid-accessories .content img {
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .show-accessories .grid-accessories {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .show-accessories .grid-accessories .content:nth-child(2) { order: 1; } 
    .show-accessories .grid-accessories .content:nth-child(1) { order: 2; } 
    .show-accessories .grid-accessories .content:nth-child(3) { order: 3; } 
    .show-accessories .grid-accessories .content:nth-child(4) { order: 4; } 

    .show-accessories .grid-accessories .content:not(:has(img)) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 10px;
    }
    .show-accessories .grid-accessories .content button {
        margin: 20px 0;
    }
    .show-accessories .grid-accessories .content p {
        margin-bottom: 20px;
    }
    .show-accessories .grid-accessories .content h2 {
        margin: 10px;
    }
    .show-accessories .grid-accessories .content img {
        height: 400px;
        object-fit: cover;
        border-radius: 8px;
        margin: 50px 0  0 0;
    }
}

@media (max-width:480px) {
        .show-accessories .grid-accessories .content p {
        max-width: 100%;
        font-size: 14px;
        padding: 0 10px;
    }
    .show-accessories .grid-accessories .content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
}

/* Shop Method Area */
.shop-method-area .method-area {
    background-color: var(--primary-color);
    padding: 80px 0;
    margin : 0 0 120px ;
}
.shop-method-area .method-area .row {
    gap: 30px;
}
.shop-method-area .method-area .single-method {
    text-align: center;
    color: var(--background);
    flex: 1;
}
.shop-method-area .method-area .single-method i {
    font-size: 30px;
    margin: 15px 0;
}
.shop-method-area .method-area .single-method h5 {
    font-size: 18px;
    margin-bottom: 10px;
}
.shop-method-area .method-area .single-method p {
    font-size: 14px;
    color: var(--light-gray);
}

@media (max-width: 767px) {
    .shop-method-area .method-area {
        margin: 0 0 120px;
        padding: 60px 15px;
    }
    .shop-method-area .method-area .row {
        gap: 25px;
    }
}

@media(max-width:480px) {
        .shop-method-area .method-area {
        margin: 0 0 80px;
        padding: 40px 10px;
    }
    .shop-method-area .method-area .single-method {
        padding: 0 5px;
    }
    .shop-method-area .method-area .single-method i {
        font-size: 24px;
    }
    .shop-method-area .method-area .single-method h5 {
        font-size: 16px;
    }
    .shop-method-area .method-area .single-method p {
        font-size: 13px;
    }
}

/* Footer */
footer {
    padding: 100px 0 20px;
    background-color: var(--light-gray);
}
footer .footer-top .row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
footer .footer-top .row .footer-item .brand {
    font-size: 28px;
    margin-bottom: 15px;
        color: var(--primary-color);
    letter-spacing: 1.5px;
    font-family: "Merriweather", serif;
}
footer .footer-top .row .footer-item p {
    font-size: 16px;
    color: var(--secondary-color);
    line-height: 1.6;
    max-width: 200px;
}
footer .footer-top .row .footer-item h5 {
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 10px;
}
footer .footer-top .row .footer-item .footer-list li {
    margin-bottom: 10px;
}
footer .footer-top .row .footer-item .footer-list li a {
    color: var(--trancolor);
    transition: color 0.4s ease-in, transform 0.4s ease-in;
    display: inline-block;
}
footer .footer-top .row .footer-item .footer-list li:hover a {
    transform: translateX(10px);
    color: var(--primary-color);
}
footer .footer-bottom .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
footer .footer-bottom .row p {
    font-size: 14px;
    color: var(--secondary-color);
}
footer .footer-bottom .row .footer-icon a {
    font-size: 18px;
    color: var(--secondary-color);
    margin-right: 15px;
    transition: all 0.3s ease;
}
footer .footer-bottom .row .footer-icon a i {
    transition: all 0.5s ease-in;
}
footer .footer-bottom .row .footer-icon a:hover i {
    color: var(--primary-color);
    transform: rotateY(180deg);
}
footer .footer-top .row .footer-item .brand span {
    color: var(--secondary-color);
}
span {
    color: var(--primary-color);
}
footer .footer-bottom .row p i {
    color: var(--primary-color);
}

@media (max-width: 767px) {
    footer .footer-top .row {
        flex-direction: column;
        align-items: flex-start;
    }
    footer .footer-top .row .footer-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10px;
        gap: 10px;
    }
    footer .footer-bottom .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    footer .footer-top .row .footer-item p {
    font-size: 15px;
    color: var(--secondary-color);
    line-height: 1.6;
    max-width: 80%;
    }
}

@media (max-width:480px) {
        footer .footer-top .row .footer-item p {
        font-size: 14px;
        max-width: 100%;
        line-height: 1.5;
    }
    footer .footer-bottom .row p {
        font-size: 12px;
        text-align: center;
        padding: 0 10px;
    }
}