.module-text {
    font-family: 'tt-supermolot';
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    font-style: italic;
}

.head-text {
	font-family: 'anuphan';
	font-size: 64px;
	font-weight: 700;
	line-height: 72px;
	margin-top: 16px;
	margin-bottom: 40px;
}

#brand-main .sc-content {padding-bottom: 0;}

/* Swiper Container */
.swiper {
	width: 100%;
	height: auto;
}

/* Swiper Slide (ทุกหน้าจอ) */
.brand-swipe .swiper-slide {
	text-align: center;
	font-size: 18px;
	background: #444;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 16px;
	overflow: hidden;
	width: 350px !important;
	height: 500px !important;
}

/* Mobile (<=767px) */
@media (max-width: 767px) {
	.brand-swipe .swiper-wrapper {
		display: flex;
	}
	.brand-swipe .swiper-slide {
		width: 85% !important;
		height: auto !important;
		aspect-ratio: 300 / 500; /* รักษาอัตราส่วน */
	}
  #brand-main .head-text {
    font-size: 40px !important;
    line-height: 130% !important;
  }
}

/* Tablet & Desktop (>=768px) */
@media (min-width: 768px) {

	.brand-swipe .swiper-wrapper {
		display: flex;
		flex-wrap: wrap;
		gap: 20px;
		justify-content: flex-start;
		flex-direction: row;
        margin-left: 20px;
	}
	.swiper-button-next,
	.swiper-button-prev {
		display: none !important;
	}
}

/* Slide Image */
.brand-swipe .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Brand Flex Content */
.brand-swipe .swiper-slide .brand-flex {
	display: flex;
	flex-direction: column;
	padding: 36px 19px 20px 19px;
	position: absolute;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	width: 100%;
	transform: translateY(40%);
	transition: transform 200ms ease-in-out;
}

.brand-swipe .swiper-slide:hover .brand-flex {
	transform: translateY(0);
}

.brand-flex .thumb {
	max-width: 118px;
}

.brand-flex .detail {
	display: flex;
	flex-direction: row;
	padding: 16px 15px;
	gap: 26px;
	background: #ffffff14;
	box-shadow: inset 0px 2px 4px 0px #ffffff66;
	backdrop-filter: blur(15px);
	border-radius: 10px;
	width: 100%;
	justify-content: space-between;
}

.brand-flex .detail p:first-child {
	font-family: 'anuphan';
	font-size: 15px;
	font-weight: 600;
	line-height: 150%;
	color: #fff;
	white-space: break-spaces;
  width: 220px;
}

.brand-flex .detail p {
	text-align: left;
}

/* Action Button */
.brand-flex .detail .action {
	position: relative;
	width: 40px;
	height: 40px;
	right: 0;
	background: #ffffff33;
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Arrow Icon */
.brand-flex .detail .action .arrow-top-right {
	position: relative;
	width: 16px;
	height: 2px;
	border-radius: 9999px;
	background-color: #fff;
	transform: rotate(315deg);
}

.brand-flex .detail .action .arrow-top-right::before,
.brand-flex .detail .action .arrow-top-right::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 10px;
	height: 2px;
	border-radius: 9999px;
	background-color: #fff;
	transform-origin: calc(100% - 1px) 50%;
}

.brand-flex .detail .action .arrow-top-right::before {
	transform: rotate(45deg);
}

.brand-flex .detail .action .arrow-top-right::after {
	transform: rotate(-45deg);
}


#other-brand {background: #FAFAFA;}

#other-brand .module-text{font-family: 'anuphan';font-size: 36px;font-weight: 600;line-height: 44px;font-style: normal; text-align: left;}

#other-brand .sc-heading {margin-bottom: 32px;}

/* Swiper Slide Card */
.other-brand-swipe .swiper-slide {
  width: 300px;
  border-radius: 16px;
  border: 1px solid #D5D7DA;
  box-sizing: border-box;
  background: #fff;
}

/* Card Content (Flexbox) */
.other-brand-flex {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  height: 100%;
}

/* Thumb (Image Container) */
.other-brand-flex .thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Detail Section */
.other-brand-flex .detail {
    margin-top: 24px;
    display: flex
;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.other-brand-flex .detail p {
  margin-bottom: 16px;
  font-family: 'anuphan';
  font-weight: 600;
  font-size: 16px;
  color: #444;
  line-height: 24px;
}

/* "รู้จักแบรนด์" Link */
.other-brand-flex .detail .action {
  display: inline-block;
  text-decoration: none;
  font-family: 'anuphan';
  font-size: 14px;
  line-height: 20px;
  color: #181D27;
  font-weight: 400;
}


.other-brand-flex .detail .action:hover {
  text-decoration: underline;
  font-weight: 700;
}

/* Section Heading */
.other-brand-swipe .sc-heading h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
}

/* Swiper Navigation */
  .other-brand-swipe .swiper-button-next,
  .other-brand-swipe .swiper-button-prev {
  color: #000;
}



/* ----------------------------------
  Mobile (<= 767px)
-----------------------------------*/
@media (max-width: 767px) {
    .other-brand-swipe .swiper-slide {
    width: 85% !important;
    height: 350px;
  }
}

/* ----------------------------------
  Tablet & Desktop (>= 768px)
-----------------------------------*/
@media (min-width: 768px) {
    .other-brand-swipe .swiper-wrapper {
        display: flex;
        flex-wrap: wrap; /* ทำให้กล่องขึ้นบรรทัดใหม่เมื่อเต็มแถว */
        justify-content: flex-start; /* จัดเรียงกล่องจากซ้ายไปขวา */
        gap: 20px; /* เพิ่มระยะห่างระหว่างกล่อง */
        height: 100%;
    }

    .other-brand-swipe .swiper-slide {
        width: calc(25% - 15px) !important; /* กำหนดความกว้าง 4 กล่องต่อแถว และเว้นช่องว่าง */
        height: 350px;
    }

    /* ซ่อนปุ่ม navigation ของ Swiper เมื่อเป็นหน้าจอ desktop */
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}


#online-store .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

#online-store .sc-content {
    height: 358px;
    width: 100%;
    border-radius: 16px;
    background: url("/assets/page/brand/img/online-shop-path.png") no-repeat, #004DA7;
    background-size: inherit;
    background-position: right 20px bottom 0;
}


@media (max-width: 767px) {

#online-store .sc-content {
background-size: 100%;
background-position: right 40px bottom 0;
height: 600px;
}

#other-brand .module-text{font-size: 30px;}

#other-brand .sc-heading {margin-bottom: 32px;}

}



/* --- Mobile View (Default) --- */
#online-store .sc-content {
    position: relative; /* **สำคัญ:** ทำให้ลูกที่ใช้ position: absolute อ้างอิงจากตรงนี้ */
    display: flex;
    flex-direction: column; 
    align-items: center;
    /* กำหนด padding หลัก */
    padding: 30px 20px 0 20px; /* **สำคัญ:** กำหนด padding ด้านล่างเป็น 0 หรือน้อยมากเพื่อให้รูปภาพติดขอบ */
    text-align: center;
    color: #fff; 
    overflow: hidden; /* ป้องกันการเลื่อนด้านข้างหากรูปภาพใหญ่เกินไป */
}

/* 1. Content ที่ไม่ทะลุ (Text, Logo, Button) */
#online-store .store-text-content {
    width: 100%;
    z-index: 2; /* ทำให้ข้อความอยู่ด้านบนรูปภาพ */
    padding-bottom: 30px; /* เพิ่ม padding ด้านล่างให้กับ text content เพื่อไม่ให้ชนกับรูปภาพ */
}

#online-store .logo {
    width: 150px; 
    margin-bottom: 20px;
}

#online-store h1 {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 15px;
    font-family: 'anuphan';
}

#online-store p {
    font-size: 16px;
    margin-bottom: 30px;
    font-family: 'anuphan';
}

/* Button Styling (ตามเดิม) */
#online-store .btn-online-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; 
    color: #004c8f; 
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px; 
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

/* 2. Image Container ที่ทะลุ (iPad Image) */
#online-store .store-image-container {
    position: absolute; /* **สำคัญ:** จัดตำแหน่งแบบอิสระ */
    bottom: -10px; /* **สำคัญ:** ดันให้รูปภาพติดขอบล่าง (หรือทะลุเล็กน้อย) */
    left: 50%; /* จัดกึ่งกลางแนวนอน */
    transform: translateX(-50%); /* จัดกึ่งกลางที่แท้จริง */
    width: 100%;
    max-width: 350px; /* ควบคุมขนาดรูปภาพ */
    height: auto;
    z-index: 1; /* ให้อยู่ด้านหลังข้อความ */
    font-family: 'anuphan';
}

#online-store .ipad-image {
    width: 70%;
    height: auto;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}

/* --- Desktop/Tablet View --- */
@media (min-width: 768px) {
    #online-store .sc-content {
        flex-direction: row; 
        text-align: left;
        /* **สำคัญ:** กำหนด padding ด้านล่างให้ข้อความมีพื้นที่หายใจ */
        padding: 50px 80px 70px 80px; 
        align-items: flex-start; /* จัดเรียงด้านบน */
    }

    /* 1. Content ที่ไม่ทะลุ (Text, Logo, Button) */
    #online-store .ipad-image {
        width: 70%;
        height: auto;
        display: block;
        position: absolute;
        left: 50%;
        top: 12%;
        transform: translateX(-50%);
    }

    #online-store .logo {
        width: 200px; 
        margin-bottom: 25px;
    }

    #online-store h1 {
        font-size: 38px; 
        margin-bottom: 20px;
    }

    #online-store p {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    /* 2. Image Container ที่ทะลุ (iPad Image) */
    #online-store .store-image-container {
        position: absolute; /* ยังคงเป็น absolute */
        bottom: 0; /* **สำคัญ:** ติดขอบล่างของ sc-content */
        right: 80px; /* **สำคัญ:** จัดตำแหน่งให้ติดกับ padding ด้านขวา */
        left: auto;
        transform: none; /* ไม่ต้องใช้ transform: translateX(-50%) อีกต่อไป */
        width: 100%;
        max-width: 450px; /* ควบคุมขนาดรูปภาพบน Desktop */
        height: 100%;
        max-height: 450px;
        z-index: 1;
    }
}



@media (min-width: 768px) {
  .brand-swipe .swiper-slide,
  .other-brand-swipe .swiper-slide {
    margin-right: 0 !important;
  }

  
}


@media (max-width: 767px) {
  .brand-swipe .swiper-slide,
  .other-brand-swipe .swiper-slide {
    width: 85% !important;
  }

  /* .brand-swipe {overflow: visible !important;}

  .other-brand-swipe {overflow: visible !important;} */

  .brand-swipe .swiper-button-next, .brand-swipe .swiper-button-prev {
        width: 40px;
        height: 40px;
        background: #333333f2;
    color: #fff;
    border-radius: 50%;
    }

    .other-brand-swipe .swiper-button-next, .other-brand-swipe .swiper-button-prev {
        width: 40px;
        height: 40px;
    background: #333333f2;
    color: #fff;
    border-radius: 50%;
}

.brand-swipe .swiper-button-next::after, .brand-swipe .swiper-button-prev::after {
            font-size: 20px;
}

.other-brand-swipe .swiper-button-next::after, .other-brand-swipe .swiper-button-prev::after {
            font-size: 20px;
}
}


@media (min-width: 768px) and (max-width: 820px) {
  .brand-swipe .swiper-slide {width: 325px !important;}
  .other-brand-swipe .swiper-slide {width: calc(33% - 15px) !important;}
  #online-store .ipad-image {        width: 50%;left: 87%;
        top: 40%;}
  #online-store .sc-content {padding: 50px 40px 70px 40px;}
}

@media (min-width: 1020px) and (max-width: 1030px) {
  .brand-swipe .swiper-slide {width: 440px !important;
    height: 550px !important;}
}

@media (max-width: 768px) {
  #online-store h1 {
    font-size: 30px !important;
  }
  #online-store p {
    font-size: 18px;
  }
  #online-store .ipad-image {
    bottom: -74px;
  }
}